Hi Ppl, I have some geometry data on a PostgreSQL/PostGIS database. The java application is accessing via Hibernate, using type com.vividsolutions.jts.geom.Geometry (as at http://www.hibernatespatial.org/tutorial.html). The question: how can I plot a "com.vividsolutions.jts.geom.Geometry" in a GeoTools Map? I could find how to get information from a ShapeFile, as follows: ... *FileDataStore store = FileDataStoreFinder.getDataStore(file)*; FeatureSource featureSource = store.getFeatureSource(); MapContext map = new DefaultMapContext(); map.addLayer(featureSource, null); ... Is there any way to get a FeatureSource from a com.vividsolutions.jts.geom.Geometry (or from a collection of "Geometry" )? Thank you for help. Att, PA
------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
