Sunday, 12 June 2011

KML import thoughts

Recently, I am doing code review in Inkscape and experimenting transformations for converting KML polygon path to SVG. I have studied KML and SVG files further. I made several simple KML test files to try and see the conversion process. 

My first goal is to import a simple KML file and convert it to SVG.


I am thinking to do importing a simple KML file and converting it to SVG. In Inkscape, it seems complex. I am trying to find out: 
  1. How to implement kml2svg in Inkscape, or kml import, similar to other file format import.
  2. How transformations from kml to svg is done, and what rules they have. I may need to define many things, such as canvas, origin, anchor of objects/paths, dimensions and so on. 
  3. What libraries are needed. 
I have reviewed Inkscape code base and the Java KML conversion program. I should be able to write the Java program in C++. I need to write kml-import, and thought good examples in Inkscape should be available. 

A question: 
Does anyone know kml-import is similar to which file format import? I have seen dxf2svg as an good example. But kml2svg starts with importing an XML file...

No comments:

Post a Comment