Home » Articles » ArcView Shapefile to SVG converter

ArcView Shapefile to SVG converter

For many interactive Webmapping applications the data should be converted from a GIS format. ArcView Shapefiles are a common source format for GIS data exchange. This format can be read and written by many commercial and open source GIS applications. The OGR Simple Features Library can be used to convert from different formats to the ESRI shapefile format. The “ogis2svg.pl” converter builds on the freely available “shp2pgsl” converter developed by the Postgis project. The ogis2svg.pl converter takes the text input from shp2pgsql and converts it to SVG files.

ogis2svg.pl has the following features:

  • Converts OGC “Simple Features for SQL” format to SVG (Currently only POINT, MULTILINESTRING and MULTIPOLYGON supported)
  • POINT features are converted to either circles or symbols
  • Output as relative coordinates (may reduce filesize)
  • Output can be rounded (may reduce filesize)
  • Automatically detects the viewBox according to min/max corner points; alternatively, the user may specify a viewBox (in input units)
  • Attributes from the dbase file can be selected and included as attributes in a separate namespace
  • The output file also contains a DTD extension for the GIS non-graphical attributes within the file header
  • A selected unique attribute can be used as a unique svg id
  • The user can select events that he wants to attach to the path-elements
  • The user can select a group attribute. Attributes that share the same value are grouped and can share the same styles
  • groups can be sorted ascending or descending
  • Use of a stylesheet text file to attach styles to a group when using the group feature
  • Conversion of XML reserved characters (e.g. &, < >) within attribute data
  • A scale factor and input/output units can be specified to reduce GIS data to a map scale. This is useful when importing shapefiles via SVG to Adobe Illustrator

Source : http://www.carto.net/papers/svg/utils/shp2svg/


1 Comment

  1. far loss says:

    Nice post. I used to be checking constantly this blog and I’m inspired! Extremely useful info specially the closing part :) I take care of such info much. I used to be seeking this particular info for a long time time}. Thanks and good luck.

Leave a comment

Your email address will not be published. Required fields are marked *