Tell me more ×  I've got some SimpleFeatureCollections and now I
want to get the Centroid of every SimpleFeature in the
collection. Unfortunally I've only found a centroid method for
Geometry.  Is there any way to get the centroid?  share|improve
this question Geometry geom = (Geometry)
feature.getAttribute("the_geom");
System.out.println(geom.getCentroid()); this works for me – 
ABLX Feb 19 '12 at 2:27 add comment   Your Answer    Browse
other questions tagged or ask your own question.