[fdo-users] Failed to process the given spatial condition

simon hope simonh at geobiz.co.nz
Mon Dec 10 15:06:34 EST 2007


Dan,

The InnerException is: {"Operation Failed (-1)"}

"Can you debug and see exactly where it fails?" 

I'm using the .Net API and it fails when trying to call Execute() on
OSGeo.FDO.Commands.Feature.ISelectImp

"What is in the spatial filter"

qryPropName = new OSGeo.FDO.Expression.Identifier("Shape");

poly =
(OSGeo.FDO.Geometry.IPolygon)geomFactory.CreateGeometry("POLYGON((176954.045
5914119.79, 1769564.823 5914473.302, 1770089.64 5914474.08, 1770091.198
5914117.454, 176954.045 5914119.79))");
geom = geomFactory.CreateGeometry(poly);

byteArray = geomFactory.GetFgf(geom);
OSGeo.FDO.Expression.GeometryValue qryGeomVal = new
OSGeo.FDO.Expression.GeometryValue(byteArray);

OSGeo.FDO.Filter.Filter fltr;
fltr = new OSGeo.FDO.Filter.SpatialCondition(qryPropName,
OSGeo.FDO.Filter.SpatialOperations.SpatialOperations_Intersects,
qryGeomVal);

qrySelect.SetFilter(fltr.ToString());

Cheers

Simon




Dan Stoica wrote:
> 
> Hi,
> 
> This is the default error message when ArcSDE returns an error in spatial
> condition cases. I'm surprised there is no native error message.
> 
> Can you debug and see exactly where it fails? What is in the spatial
> filter?
> 
> Dan.
> 
> 
> -----Original Message-----
> From: fdo-users-bounces at lists.osgeo.org
> [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of simon hope
> Sent: Sunday, December 09, 2007 3:20 PM
> To: fdo-users at lists.osgeo.org
> Subject: [fdo-users] Failed to process the given spatial condition
> 
> 
> Hello,
> 
> I've come across an issue which i think i may have come across before [1].
> I
> am using the ArcSDE provider:
> 
>   <FeatureProvider>
>     <Name>OSGeo.ArcSDE.3.2</Name>
>     <DisplayName>OSGeo FDO Provider for ArcSDE</DisplayName>
>     <Description>Read/write access to an ESRI ArcSDE-based data store,
> using
> Oracle and SQL Server.</Description>
>     <IsManaged>False</IsManaged>
>     <Version>3.2.1.0</Version>
>     <FeatureDataObjectsVersion>3.2.1.0</FeatureDataObjectsVersion>
>     <LibraryPath>ArcSDEProvider.dll</LibraryPath>
>   </FeatureProvider>
> 
> I am setting a spatial filter on the select query then attempting to set a
> feature reader by executing the query:
> 
> OSGeo.FDO.Commands.Feature.IFeatureReader featReader =
> qrySelect.Execute();
> 
> At which point i get an exception: 'Failed to process the given spatial
> condition'. Has anybody successfully managed to create a spatial filter
> using the ArcSDE 9.2 v3.2 provider?
> 
> Cheers
> 
> Simon
> 
> 
> [1].http://www.nabble.com/Failed-to-process-the-given-spatial-condition-to13205208s16610.html#a13223966
> --
> View this message in context:
> http://www.nabble.com/Failed-to-process-the-given-spatial-condition-tp14242828s18162p14242828.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://www.nabble.com/Failed-to-process-the-given-spatial-condition-tp14242828s18162p14260539.html
Sent from the fdo-users mailing list archive at Nabble.com.



More information about the fdo-users mailing list