|
Hi there,
I'm an absolute beginner with DotSpatial.
I have to build an application that reads a polygon shapefile, converts it to a grid (as file or even better as an array in RAM) and passes this with a bunch of parameters to an already existing .dll which processes the data.
So I'm now trying to 'rebuild' the shp2grid-Plugin for MapWindow4 (mapwingis) on the DotSpatial-Library. But after severals hours of trying I couldn't find a way to access the field names of the shapefile so that the user can choose the attribute field for
the grid cell values.
Can anyone help me with this or has even already built a tool based on DotSpatial that converts shapefile to grid?
Another question: is there a possibility to remove a single layer (by layer or by count) from the map? I only found DotSpatial.Controls.Map.ClearLayers() which removes all layers in one.
Thanks for your help.
Claudia
|