Re[fdo-users] turn geometries

Dan Stoica dan.stoica at
Wed Sep 17 11:56:50 EDT 2008

I don't see any problem with that loop. Unless you get somehow an exception and the loop beaks after the 1st retrieval. But you say you get successfully one feature. So just to make sure: how many features are in the SHP file?

-----Original Message-----
From: fdo-users-bounces at [mailto:fdo-users-bounces at] On Behalf Of surrounded
Sent: Wednesday, September 17, 2008 11:45 AM
To: fdo-users at
Subject: Re[fdo-users] turn geometries

Using shapefiles,  trying to return all geometries for all features within
the shapefile.  Using the logic below, the geometry is returned for only one
of the features within the shapefile.  How do I expand this logic to return
all geometries.   Thanks....

OSGeo.FDO.Commands.Feature.ISelect sel =
sel.SetFeatureClassName(sSplit[1]);      //Where sSplit[1] is the name of
the shapefile
reader = sel.Execute();

while (reader.ReadNext())
    pCoords = reader.GetGeometry("Geometry");
    FgfGeometryFactory gFac = new FgfGeometryFactory();
    IGeometry geo = gFac.CreateGeometryFromFgf(pCoords);
View this message in context:
Sent from the FDO Users mailing list archive at

fdo-users mailing list
fdo-users at

More information about the fdo-users mailing list