[fdo-users] Spatial Filter Help Needed
surrounded
Rob.Sosnowski at itd.idaho.gov
Thu Oct 2 12:53:26 EDT 2008
Hi Gavin,
I've used ArcMap and ArcCatalog (ESRI software) to look at the field names,
they are shown as Shape. I've also tried shape, I will try SHAPE and let
you know. Thanks....
Gavin Cramer wrote:
>
> FDO property names are case-sensitive. For SHP, they are usually taken
> from field names, which are often uppercase by conventoin. Perhaps it is
> supposed to be SHAPE?
>
> Gavin
>
>
> -----Original Message-----
> From: fdo-users-bounces at lists.osgeo.org
> [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of surrounded
> Sent: Thursday, October 02, 2008 12:38 PM
> To: fdo-users at lists.osgeo.org
> Subject: [fdo-users] Spatial Filter Help Needed
>
>
> I'm trying to intersect a circle (created from input coordinates) with a
> shapefile. I've created the circle geometry and am now trying to set up
> the
> filter. In the code below, the statement
>
> while(reader.ReadNext())
>
> throws the follwing exception:
> "The property 'Shape' is not in the readers selected property set"
>
> SUGGESTIONS....THANKS
>
> **********************************************
>
> OSGeo.FDO.Expression.GeometryValue pGVal = new GeometryValue(pByteCircle);
> OSGeo.FDO.Expression.ComputedIdentifier pPropName = new
> ComputedIdentifier("Shape", new Identifier("Geometry"));
>
> IdentifierCollection pIDColl = sel.PropertyNames;
> pIDColl.Add(pPropName);
>
> OSGeo.FDO.Filter.Filter pPtLineFilter = new
> OSGeo.FDO.Filter.SpatialCondition(pPropName,
> OSGeo.FDO.Filter.SpatialOperations.SpatialOperations_Intersect, pGVal); }
>
> OSGeo.FDO.Commands.Feature.IFeatureReader reader = sel.Execute();
> while (reader.ReadNext())
> {
> ......some code....
> }
>
> --
> View this message in context:
> http://n2.nabble.com/Spatial-Filter-Help-Needed-tp1134329p1134329.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
> _______________________________________________
> fdo-users mailing list
> fdo-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fdo-users
>
>
--
View this message in context: http://n2.nabble.com/Spatial-Filter-Help-Needed-tp1134329p1134363.html
Sent from the FDO Users mailing list archive at Nabble.com.
More information about the fdo-users
mailing list