Re[fdo-users] turn geometries

Gavin Cramer gavin.cramer at autodesk.com
Wed Sep 17 11:48:19 EDT 2008


What is the definition for pCoords?

Also, as a performance hint, you only need one factory, so you can declare it outside of the 'while' loop.

Gavin


-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of surrounded
Sent: Wednesday, September 17, 2008 11:45 AM
To: fdo-users at lists.osgeo.org
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 =
(OSGeo.FDO.Commands.Feature.ISelect)connection.CreateCommand(OSGeo.FDO.Commands.CommandType.CommandType_Select);
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: http://n2.nabble.com/Return-geometries-tp1095647p1095647.html
Sent from the FDO Users mailing list archive at Nabble.com.

_______________________________________________
fdo-users mailing list
fdo-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-users


More information about the fdo-users mailing list