[mapguide-users] Getting error "Geometry Conversion error" when doing SpatialFilter in MgCurvePolygon
Zac Spitzer
zac.spitzer at gmail.com
Wed Nov 14 21:02:02 PST 2012
I'm not sure if curvePolygons are actually supported..
what FDO datasource are you using? it may depend on the provider
On Thu, Nov 15, 2012 at 3:41 PM, Rahul Gupta
<rahul.guptamcakiet at gmail.com>wrote:
> Hello zspitzer , Thanks for Reply
>
> This is the error log in stacktrace
> "- MgFeatureServiceHandler.ProcessOperation() line 83 file
> c:\mg-2.4-x86\mgdev\server\src\services\feature\FeatureServiceHandler.cpp
>
> - MgOpSelectFeatures.Execute() line 109 file
> c:\mg-2.4-x86\mgdev\server\src\services\feature\OpSelectFeatures.cpp
>
> - MgServerFeatureService.SelectFeatures() line 462 file
> c:\mg-2.4-x86\mgdev\server\src\services\feature\ServerFeatureService.cpp
>
> - MgServerSelectFeatures.SelectFeatures() line 325 file
> c:\mg-2.4-x86\mgdev\server\src\services\feature\ServerSelectFeatures.cpp"
>
> and i am trying to do Spatial Filter in a Circle. for this purpose
> 1) I created a circle(Done.but there is no direct method for creating a
> circle so i created a circle through MgGeometryFactory.CreateCurvePolygon
> and i also checked it is closed . and this method reture MgCurvePolygon )
>
> 2) putting the condition.(Done like
> MgCurvePolygon CurvePolygon = this.CreatePolygonFromGeomText(data);
> MgGeometry geometry =
> (MgGeometry)CurvePolygon.Transform(csInverseTransform);
> queryOptions.SetSpatialFilter(featureGeometry,
> geometry,MgFeatureSpatialOperations.Intersects);)
>
> 3) Accessing the Selected Feature (Getting error in this particular line)
> MgFeatureReader featureReader = featureService.SelectFeatures(resId,
> layer.GetFeatureClassName(), queryOptions);
>
> But same thing i am doing in MgPolygon than it is working . i don't know
> whether this option(Spatial filter in MgCurvePolygon ) is there or not. if
> not than what else i can do.................
>
>
> Thanks in advance....
>
>
>
>
> -----
> Rahul Gupta
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/Getting-error-Geometry-Conversion-error-when-doing-SpatialFilter-in-MgCurvePolygon-tp5014745p5016466.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
--
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
+61 405 847 168
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20121115/82a5f58e/attachment.html>
More information about the mapguide-users
mailing list