SimpleFeature.getDefaultGeometry() is your friend. Michael
On 19 February 2012 11:46, ablx <[email protected]> wrote: > Hi Guys. > I've got some SimpleFeatureCollections. > Now I want to get the centroid of each simple feature. > > As far as I know, JTS is able to do this on /Geometry/ - but I can't figure > out how to convert a SimpleFeature to a geometry?! > > Hope you can help me, > kind regards > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Get-the-Centroid-of-a-SimpleFeature-tp4484380p4484380.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > GeoTools-GT2-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
