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

KML styles??

Topics: General Topics
Nov 29, 2013 at 3:19 PM
Can anyone answer this quick question?

Does sharpmap (or the ogr reader) provide access to the styles in a KML file?

I'd like to be able to load a kml and it automatically style based on the kml, but I know that's a bit of a long shot.

So is there a way to access the styling in the KML file without having to parse it?
Nov 29, 2013 at 6:51 PM
I see two ways to achive this

1. Provider

  • Create a KmlProvider based on
  • Create a KmlTheme based on
  • Use both with standard VectorLayer
  • You may be able to use OGR provider, but I am not sure if it keeps style information

2. Layer

  • Create KmlLayer based on
  • This way you don't have to worry about table schema :)
Hth FObermaier