Digital Geography

Mapshaper.org – easy editing polygon and polyline datasets for mapping purposes

Mapshaper by mbloch is one of my favourite “swiss army knife”-tools if you need fast data reduction and topology first aid in polygon data handling. There a two versions of mapshaper. The first is a hosted webservice: www.mapshaper.org, where you can easily upload .shp-, GeoJson- or TopoJson-Files via drag&drop or folder selection. Afterwards you have to chose your simplification method (Douglas-Peucker, Visvalingam or modified Visvalingam) and some other options like “repair intersections”, “auto snap” and “prevent shape removal” and you’re ready to go.




The second mapshaper-version is for your command line (which make it scriptable – very nice!) and requires Node.js. Once installed, you can start working on your data and code your own scipts to convert data (e.g. .shp to geoJson), get data informations, simplificate with snapping and rounding, make data field calculations, filter, join and much more. The full command reference your get here: https://github.com/mbloch/mapshaper/wiki/Command-Reference.

What mapshaper does:

  1. File merge/combine
  2. Coordinate rounding and snapping
  3. Topology identification
  4. Table join
  5. Simplification
  6. Filter
  7. Expression calculation
  8. Split
  9. Subdivide
  10. Dissolve
  11. Post-filter
  12. Boundary classification
  13. Merge layers
  14. Split-on-grid

My example of data simplification with mapshaper.org


100 % dataset without simplification

5.7 % dataset simplified with mapshaper.org


5
Leave a Reply

avatar
3 Comment threads
2 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
4 Comment authors
KurtJakobŁukaszJRobinson Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
newest oldest most voted
Notify of
JRobinson
Guest
JRobinson

The neat thing about mapshaper, is even the web version is all local to your machine. Nothing actually gets uploaded to their server.

Łukasz
Guest
Łukasz

Excellent tool! Thanks.

Kurt
Guest
Kurt

Is there a how-to-setup-instruction for mapshaper on my local pc(guess I need a local webserver?) for non-nerds?