Skip to content
polyakova edited this page Feb 18, 2013 · 11 revisions

To convert shp file to svg run shp2svg with arguments:

  • -p, required, path to the shapefile
  • -a, required, name of shapefile metadata attribute to find matching id
  • -w, optional, width of svg, default value is 900
  • -h, optional, height of cvg, default value if 600
  • -t, optional, tolerance of smoothing, default value is 3. Min value 1
  • -m, optional, generate file with shapefile metadata.

Note: Regions file should be called "Regions.json" and located in the same directory with shapefile.

Utility will generate .svg file for every .shp file in specified catalog.

Example

  • shp2svg -p c:\Users\Polyakova\Downloads\DZA_adm -a name_2
  • shp2svg -p c:\Users\Polyakova\Downloads\DZA_adm -a name_2 -w 400 -h 150 -t 4

Clone this wiki locally