I'm not sure if curvePolygons are actually supported..<br><br>what FDO datasource are you using? it may depend on the provider<br><br><br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 3:41 PM, Rahul Gupta <span dir="ltr"><<a href="mailto:rahul.guptamcakiet@gmail.com" target="_blank">rahul.guptamcakiet@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello zspitzer , Thanks for Reply<br>
<br>
This is the error log in stacktrace<br>
"- MgFeatureServiceHandler.ProcessOperation() line 83 file<br>
c:\mg-2.4-x86\mgdev\server\src\services\feature\FeatureServiceHandler.cpp<br>
<br>
- MgOpSelectFeatures.Execute() line 109 file<br>
c:\mg-2.4-x86\mgdev\server\src\services\feature\OpSelectFeatures.cpp<br>
<br>
- MgServerFeatureService.SelectFeatures() line 462 file<br>
c:\mg-2.4-x86\mgdev\server\src\services\feature\ServerFeatureService.cpp<br>
<br>
- MgServerSelectFeatures.SelectFeatures() line 325 file<br>
c:\mg-2.4-x86\mgdev\server\src\services\feature\ServerSelectFeatures.cpp"<br>
<br>
and i am trying to do Spatial Filter in a Circle. for this purpose<br>
1) I created a circle(Done.but there is no direct method for creating a<br>
circle so i created a circle through MgGeometryFactory.CreateCurvePolygon<br>
and i also checked it is closed . and this method reture   MgCurvePolygon )<br>
<br>
2) putting the condition.(Done like<br>
 MgCurvePolygon CurvePolygon = this.CreatePolygonFromGeomText(data);<br>
 MgGeometry geometry =<br>
(MgGeometry)CurvePolygon.Transform(csInverseTransform);<br>
 queryOptions.SetSpatialFilter(featureGeometry,<br>
geometry,MgFeatureSpatialOperations.Intersects);)<br>
<br>
3) Accessing the Selected Feature (Getting error in this particular line)<br>
 MgFeatureReader featureReader = featureService.SelectFeatures(resId,<br>
layer.GetFeatureClassName(), queryOptions);<br>
<br>
But same thing i am doing in MgPolygon than it is working . i don't know<br>
whether this option(Spatial filter in MgCurvePolygon ) is there or not. if<br>
not than what else i can do.................<br>
<br>
<br>
Thanks in advance....<br>
<br>
<br>
<br>
<br>
-----<br>
Rahul Gupta<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Getting-error-Geometry-Conversion-error-when-doing-SpatialFilter-in-MgCurvePolygon-tp5014745p5016466.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/Getting-error-Geometry-Conversion-error-when-doing-SpatialFilter-in-MgCurvePolygon-tp5014745p5016466.html</a><br>


<div class="HOEnZb"><div class="h5">Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Zac Spitzer<br>Solution Architect / Director<br>Ennoble Consultancy Australia<br>+61 405 847 168<br><br><br>
</div>