This project is read-only.
2

Closed

SelectByAttributes - Unhandled Exception

description

Create a new FeatureSet (FeatureType.Point) and add it as a layer to the map.
In DemoMap main menu, go to Selection - Select By Attribute
An unhandled exception is thrown in SQLQueryControl.cs :
Unable to cast object of type 'System.Data.DataColumn' to type 'DotSpatial.Data.Field'.
This exception occurs for all types of shapefiles.
Closed Feb 28 at 9:04 AM by jany_
This issue list is no longer active. This issue has been copied to our issue list on github (https://github.com/DotSpatial/DotSpatial/issues)

Please check there to find out whether this issue was fixed.

comments

jirikadlec2 wrote Mar 5, 2011 at 5:54 AM

This issue only occurs when the FeatureSet is in-memory or when the Shapefiles are opened with OgrVectorProvider.

olivier57 wrote Mar 5, 2011 at 9:44 AM

I think that this is not the only problem with SelectByAttribute.

http://dotspatial.codeplex.com/discussions/247502