Hello,

I need to get coordinates of all features but i find out that
getDefaultGeometry() method don't exist for org.opengis.feature.Feature. Can
someone help me how to do something like this with
org.opengis.feature.Feature:

Feature feature = null;
Geometry geom = null;
Coordinate [] coords;

while( featureIterator.hasNext() ) {
    feature = (Feature) featureIterator.next();
    geom = feature.getDefaultGeometry();
    coords = geom.getCoordinates();
    ...
}

Thanks.
-- 
View this message in context: 
http://n2.nabble.com/Feature_getDefaultGeometry%28%29-tp3390194p3390194.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to