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

Fetching FeatureDataTable from Map

Topics: SharpMap v0.9 / v1.x, SharpMap v2.0
May 17, 2015 at 4:57 AM
Having created vector layers using GeometryFeatureProvider I need to fetch the Datatables to save the file in SQLite need advise to fetch these tables from vector layers
May 21, 2015 at 11:54 AM
Using SpatiaLite extension or plain SQLite?

The SQLite provider is in the SharpMap.Extensions assembly/project. It has a CreateDataTable function (that I have not used yet) that should save a FeatureDataTable to a SQLite database. The code is optimizable, but may be sufficiant as a source of inspiration.

Generally speaking the publicly available SharpMap providers are read-only.
May 26, 2015 at 2:27 PM
thanks FObermaier

i had one additional question how can i fetch fetaures or featuredatable from vector layers which are made from GeometryFEatureProvider
May 27, 2015 at 9:28 AM
var fdt = ((SharpMap.Data.Providers.GeometryFeatureProvider)provider).Features;