KML styles??

Topics: General Topics
Editor
Nov 29, 2013 at 3:19 PM
Hi,
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?
Coordinator
Nov 29, 2013 at 6:51 PM
I see two ways to achive this

1. Provider

  • Create a KmlProvider based on sharpkml.codeplex.com
  • Create a KmlTheme based on sharpkml.codeplex.com
  • 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 sharpkml.codeplex.com
  • This way you don't have to worry about table schema :)
Hth FObermaier