Source

kmlutils /

Filename Size Date modified Message
lib
src
test/issue-1
work/input
xsd
300 B
small docs changes
97 B
build: added resolve & publish tasks (with ivy) ; version = 0.5.0
338 B
Added tag v0.5.5 for changeset 5259440cb964
384 B
initial version
3.0 KB
doc: fixed paths
3.8 KB
build: refactoring build-sonatype
14 B
version = 0.5.5
6.0 KB
build: publish: more logging
1.1 KB
graphml: added NodeXYWH (x, y, width, height)
664 B
build: ivy: added 'source' artifact
323 B
build: better ivy config
1.5 KB
build: added build-sonatype ; build.xml & pom-template updates
1.3 KB
changing snippets
743 B
adding svg2graphml (+NodeXY, ...)
753 B
added example: Brazil_Labelled_Map_v2.svg ; +small changes
857 B
doc: fixed paths
723 B
added new svg test file: SantaCatarina_MesoMicroMunicip_municipios.svg ; small logging changes
590 B
updating SantaCatarina_MesoMicroMunicip_municipios lat/long boundaries
278 B
test: added svg simple test cases
37 B
more power to snippets - random(), etc

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 <tbrugz@gmail.com>

License: GNU Lesser General Public License

svg2kml howto

  • build with ant (e.g.: ant dist or ant jar)
  • copy svg2kml-default.properties to svg2kml.properties
  • edit svg2kml.properties, set "svgin", "kmlout", "maxX", "minX", "maxY", "minY" properties
  • (optional) edit snippets.properties to set constant parts to be inserted in the KML file
  • (optional) edit idmappings.properties 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 svg2graphml.properties
  • run java -cp dist/svg2kml.jar;lib/commons-logging-1.1.1.jar;lib/log4j-1.2.15.jar tbrugz/geo/SVG2GraphML

Dependencies

  • 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: http://commons.wikimedia.org/wiki/File:Municipalities_of_the_South_Region_of_Brazil.svg licensed under: CC-BY-SA

SantaCatarina_MesoMicroMunicip_municipios.svg originated from: http://commons.wikimedia.org/wiki/File:SantaCatarina_MesoMicroMunicip.svg licensed under: CC-BY-SA

Brazil_Labelled_Map_v2.svg originated from: http://pt.wikipedia.org/wiki/Ficheiro:Brazil_Labelled_Map.svg licensed under: CC-BY-SA

KML Schema - urls

Specs...

Changelog?

see: https://bitbucket.org/tbrugz/kmlutils/commits/