This project has moved. For the latest updates, please go here.

failed in doing executeintersectionquery

Topics: SharpMap Project, SharpMap v0.9 / v1.x, Web Controls
Mar 16, 2008 at 3:39 PM
TryCast(myMap.Layers(0), SharpMap.Layers.VectorLayer).DataSource.ExecuteIntersectionQuery(ClickPnt, ds)
i wrote it in VB

i dont understand, sometimes i can do the intersectionquery but manytimes i cant , please somebody help.... why is it happen ??

here's the error message

Line 401: public new DataRowCollection Rows
Line 402: {
Line 403: get { throw (new NotSupportedException()); }
Line 404: set { throw (new NotSupportedException()); }
Line 405: }

Source File: C:\joane\software\SharpMap-20976\SharpMap\Data\FeatureDataSet.cs Line: 403

Stack Trace:

NotSupportedException: Specified method is not supported.
SharpMap.Data.FeatureDataTable.get_Rows() in C:\joane\software\SharpMap-20976\SharpMap\Data\FeatureDataSet.cs:403
SharpMap.Data.Providers.ShapeFile.ExecuteIntersectionQuery(Geometry geom, FeatureDataSet ds) in C:\joane\software\SharpMap-20976\SharpMap\Data\Providers\ShapeFile.cs:823
bukaNPWP.imgMap_Click(Object sender, ImageClickEventArgs e) +679
System.Web.UI.ImageClickEventHandler.Invoke(Object sender, ImageClickEventArgs e) +0
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +105
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102

Mar 16, 2008 at 4:18 PM
Hi Joane -

You have what appears to be a very old copy of the SharpMap source. When was the last time you got an update?
Mar 16, 2008 at 4:41 PM
hehehe.......... yeah you're right ........... it was so long after last time i've tried sharpmap.............
i miss it now .......... so i try run it again, but find an error ...........
would u tell me how can i do geometry query in the last version of sharpmap.

really thanks before
Mar 16, 2008 at 6:11 PM
ExecuteIntersectionQuery is the way to do it. What is the problem you are encountering?
Mar 16, 2008 at 8:59 PM
its produce the exception "NotSupportedException: Specified method is not supported." for few shapefile , but not for others.

i cant query at all
Mar 29, 2008 at 8:00 AM
the problem is about the NTS provider, still cant solve it
but the executeIntersection query already work out

really thanks