This project has moved and is read-only. For the latest updates, please go here.

Get FeatureDataTable from Vector Layer

Topics: SharpMap Project, SharpMap v2.0, WinForms Controls
Dec 10, 2014 at 9:22 AM
Hi Team,
Which is the best way to get FeatureDataTable from Vector Layer .
I am using getexecuteIntersectionQuery proving vectorLayer's Envelope to it . as it is taking lot of time to respond in case of heavy files.
Please provide some different Idea/ Approach to achieve this.

Dec 11, 2014 at 12:09 PM
you could try a foreach loop by using the dataproviders GetFeatureCount and GetFeature(rowId) methods.

That should just iterate the table and return a row for each feature.
Dec 11, 2014 at 12:24 PM
No i need to get the whole FeatureDataTable but by using __GetFeatureCount __ It only provides me a Count and by using GetFeature it provides Data row by row . Do you really think getting FeatureDatatable Row by row is the best way to achieve this.
Dec 11, 2014 at 2:52 PM
There is nothing faster than ExecuteIntersectionQuery on VectorLayer.
You could bypass reprojection by accessing DataSource.ExecuteIntersectionQuery directly.

Why do you need the whole FeatureDataTable?
Jan 7, 2015 at 10:13 AM
I need that because i have to make some operations on the data.
I will achieve this by ExecuteIntersectionQuery.