[mapguide-users] Getting error "Geometry Conversion error" when doing SpatialFilter in MgCurvePolygon

Rahul Gupta rahul.guptamcakiet at gmail.com
Wed Nov 14 20:41:47 PST 2012


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.


More information about the mapguide-users mailing list