kmlutils /

Filename Size Date modified Message
300 B
97 B
338 B
384 B
3.0 KB
4.9 KB
14 B
6.1 KB
1.2 KB
664 B
323 B
1.5 KB
1.3 KB
743 B
753 B
857 B
723 B
590 B
278 B
37 B

kmlutils - utils for KML files

The purpose of this project is to provide functions for XML-based "visual" file formats. Main Focus is KML, SVG and GraphML file formats.

The main functionality of this project is a tool for converting SVG files into KML files. Currently it (svg2kml) partially converts polygons (tbrugz.geo.SVG2KML)

This project also provides a conversion tool for SVG to GraphML (tbrugz.geo.SVG2GraphML)

The project's wiki also have some useful information.

Author: Telmo Brugnara <>

License: GNU Lesser General Public License

svg2kml howto

  • build with ant (e.g.: ant dist or ant jar)
  • copy to
  • edit, set "svgin", "kmlout", "maxX", "minX", "maxY", "minY" properties
  • (optional) edit to set constant parts to be inserted in the KML file
  • (optional) edit to translate IDs from the SVG file to the KML file
  • run java -cp dist/jars/kmlutils.jar;lib/commons-logging-1.1.1.jar;lib/log4j-1.2.15.jar tbrugz/geo/SVG2KML

svg2graphml howto

  • similar to svg2kml ;) but you have to edit
  • run java -cp dist/svg2kml.jar;lib/commons-logging-1.1.1.jar;lib/log4j-1.2.15.jar tbrugz/geo/SVG2GraphML


  • jdk 1.5+
  • log4j (included)
  • commons-logging (included)
  • ant (not included - build only)
  • ivy (not included - build only)

Running - classes with main()

  • tbrugz.geo.SVG2KML (main)
  • tbrugz.geo.SVG2GraphML
  • tbrugz.geo.test.Test
  • tbrugz.xml.test.Test

Included media

Municipalities_of_RS.svg originated from: licensed under: CC-BY-SA

SantaCatarina_MesoMicroMunicip_municipios.svg originated from: licensed under: CC-BY-SA

Brazil_Labelled_Map_v2.svg originated from: licensed under: CC-BY-SA

KML Schema - urls