Skip to content

Instantly share code, notes, and snippets.

@samuelestabrook
Last active August 29, 2015 14:24
Show Gist options
  • Save samuelestabrook/0b64ccda389fba8d9dc2 to your computer and use it in GitHub Desktop.
Save samuelestabrook/0b64ccda389fba8d9dc2 to your computer and use it in GitHub Desktop.
How to create polylines to symbolize a shared boundary

How to create polylines to symbolize a shared boundary

  • Download and install Mapshaper
$ npm install -g mapshaper
  • Using a topologically-sound polygon dataset as the input, run and -innerlines tag on the mapshaper command:
$ mapshaper boundary_polygons.shp -innerlines -o
  • This will output “boundary_polygons-ms.shp” polylines suitable for symbolizing the the inner, shared boundaries of an administrative structure.

    • NOTE: This will strip the resultant polyline geometries of all attributes. The original polygons should be used for labels or other symbolizations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment