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

Get correct color on MapImage with MapInfo datasource

Topics: SharpMap Project
Jun 7, 2010 at 3:43 PM

Hi everyone.

As I know MapInfo format contains information about color of layers. When I load .tab file:

      var layer = new VectorLayer("Test");
      layer.DataSource = new Ogr("");

add this layer to Map and add this map to MapImage, I lose information about color. I mean all lines and polygons are black, and they are not black when I open .tab files using for example FME Viewer.

Is there any way I could get correct color on MapImage control just by loading MapInfo files and not setting vector layer's properties manually?

Thanks and sorry for my bad English :)

Jun 7, 2010 at 9:03 PM
Hello Gandzy, the symbol/line-/fillstyle information provided for MapInfo tab-files are currently not evaluated. cheers FObermaier