I have a collection of SVG vector images I need to display on a map, probably using OpenLayers/KML. Is there any way to convert a vector image from SVG to KML? Or would it make more sense just to use PNG? I would prefer to use vectors because the images will be rotated and need to scale properly when zooming.

up vote 1 down vote accepted

As SVG is a vector format (image is made on the fly by client software), you can check GDAL/Ogr utility ogr2ogr, I guess it can convert svg to kml.

  • Actually, it can't. – tubewurm Feb 3 '12 at 7:02
  • 1
    It is because svg driver is not compiled by default, if you want convert data from svg to kml you need to compile ogr2ogr with svg support. And currently, driver will only read SVG files that are the output from Cloudmade Vector Stream Server. – drnextgis Feb 6 '12 at 9:07

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.