Skip to content

hacky script to convert conditionally-styled SVG to map tiles

Notifications You must be signed in to change notification settings

miketahani/svg2map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#svg2map convert conditionally-styled SVG to raster map tiles.

###huh?

  • rip SVG layer out of the frontend
  • strip out anything you don't want
  • add XML headers to the SVG data, save as a .svg
  • get the lat/lng coordinate pair of the NW corner of your SVG bounding box
  • modify the script to fit your data
  • run script, get tiles

###requirements needs pycairo (easy_install pycairo) and the python bindings for librsvg (sudo apt-get install python-rsvg).

###todo

  • clean up the code, first and foremost
  • render only a specified extent of the SVG
  • render zoom levels LESS than the initial scale of the raw, initial SVG
  • SVG headers: what does cairo/rsvg need? wikipedia SVG files work, most others don't
  • some way to tie geojson, svg, and this script together without so much work on the part of the user

About

hacky script to convert conditionally-styled SVG to map tiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published