Hi, sorry to bother you once again, but I can't get this to run...
- All FeatureTypeFactory methods are deprecated. Looks like we are supposed to use FeatureTypeBuilder, but javadoc says that a builder instance is instanciated thanks to a FeatureTypeFactory.newInstance() method, which is deprecated... - Even inside deprecated methods, I don't see any CoordinateReferenceSystem parameter - What is the string that I am supposed to pass to MemoryDataStore.getFeatureSource(String) ? Thanks a lot, Sami Dalouche Quoting Jody Garnett <[EMAIL PROTECTED]>: > 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 expect > them > >to. > >With the coordinates that appear here : > >Point point2 = geomFac.createPoint(new Coordinate(10.0, 10.0)); > >are these coordinates supposed to be latitude / longitude ? If not, what 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 tends > to work fine. I think there is even a java constant somewhere around > with this common value. > > CoordainteReferenceSystem crs = 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 very > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------- 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 very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
