|
From: Sami D. <sk...@fr...> - 2005-09-22 23:50:14
|
Hi, sorry to bother you once again, but I can't get this to run... - All FeatureTypeFactory methods are deprecated. Looks like we are suppos= ed to use FeatureTypeBuilder, but javadoc says that a builder instance is instanciated thanks to a FeatureTypeFactory.newInstance() method, which i= s deprecated... - Even inside deprecated methods, I don't see any CoordinateReferenceSyst= em parameter - What is the string that I am supposed to pass to MemoryDataStore.getFeatureSource(String) ? Thanks a lot, Sami Dalouche Quoting Jody Garnett <jga...@re...>: > Sami Dalouche wrote: > > >Hi, > > > >I tried the MemoryDataStore approach, but don't really understand the = String > I'm > >supposed to pass to getFeatureSource..Javadoc doesn't help me either..= . > > > >So, I tried the approach explained on : > >http://www.geotools.org/The+Map > > > >it does display points, but does not seem to display them where I expe= ct > them > >to. > >With the coordinates that appear here : > >Point point2 =3D geomFac.createPoint(new Coordinate(10.0, 10.0)); > >are these coordinates supposed to be latitude / longitude ? If not, wh= at is > the > >way to specify latitudes / longitudes ? > > > > > When you construct your FeaureType (of the feature you are about to add > to the MemoryDataStore) be sure to include a valid > CoordinateReferenceSystem object representing lat long - EPSG:4326 tend= s > to work fine. I think there is even a java constant somewhere around > with this common value. > > CoordainteReferenceSystem crs =3D CRS.decode("EPSG:4326); > > You will need to assoicate this with your GeometryAttribute as the > "metadata" paraemter provided to the FeatureTypeFactory. > Cheers, > Jody > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv or your v= ery > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.p= hp > _______________________________________________ > Geotools-gt2-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |