All Projects → mbloch → Mapshaper

mbloch / Mapshaper

Licence: other
Tools for editing Shapefile, GeoJSON, TopoJSON and CSV files

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Mapshaper

GeoConvert
Converting between Geojson and GIS file formats
Stars: ✭ 32 (-98.86%)
Mutual labels:  geojson, gis, shapefile
Gis Dataset Brasil
Geographic Information Systems (GIS) Dataset Brasil - Coleção de shapefiles, GeoJSON e TopoJSON prontas para uso
Stars: ✭ 121 (-95.7%)
Mutual labels:  gis, geojson, shapefile
Geotools
Official GeoTools repository
Stars: ✭ 1,109 (-60.58%)
Mutual labels:  gis, geojson, shapefile
Countries
World countries in JSON, CSV, XML and Yaml. Any help is welcome!
Stars: ✭ 5,379 (+91.22%)
Mutual labels:  csv, geojson, topojson
nl
geojson and topojson for common dutch areas
Stars: ✭ 30 (-98.93%)
Mutual labels:  topojson, geojson, gis
Agstoshapefile
Convert ArcGIS Server Dynamic Map Service to GeoJSON and Shapefile
Stars: ✭ 172 (-93.89%)
Mutual labels:  gis, geojson, shapefile
Leaflet Geoman
🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers
Stars: ✭ 1,088 (-61.32%)
Mutual labels:  gis, geojson
Indonesia Postal And Area
Indonesia Postal Code & Area (BPS)
Stars: ✭ 64 (-97.72%)
Mutual labels:  csv, geojson
Pyearth
🌐 A lightweight 3D visualization of the earth in 150 lines of Qt/OpenGL
Stars: ✭ 78 (-97.23%)
Mutual labels:  gis, shapefile
Svg To Geojson
Upload SVG, return GeoJSON.
Stars: ✭ 88 (-96.87%)
Mutual labels:  geojson, svg
Centerline
Calculate the polygon's centerline
Stars: ✭ 94 (-96.66%)
Mutual labels:  gis, shapefile
Geojson2svg
Converts geojson to svg string given svg viewport size and maps extent.
Stars: ✭ 117 (-95.84%)
Mutual labels:  geojson, svg
Joiner
A simple utility for SQL-like joins with Json, GeoJson or dbf data in Node, the browser and on the command line. Also creates join reports so you can know how successful a given join was. Try it in the browser -->
Stars: ✭ 47 (-98.33%)
Mutual labels:  csv, geojson
Featureserver
An open source Geoservices Implementation
Stars: ✭ 66 (-97.65%)
Mutual labels:  gis, geojson
Csv To Geojson
Convert a CSV to GeoJSON
Stars: ✭ 46 (-98.36%)
Mutual labels:  csv, geojson
Shapefile.jl
Parsing .shp files in Julia
Stars: ✭ 40 (-98.58%)
Mutual labels:  gis, shapefile
Aerialbot
A simple yet highly configurable bot that tweets geotagged aerial imagery of a random location in the world.
Stars: ✭ 157 (-94.42%)
Mutual labels:  gis, shapefile
Tiler
A no nonsense Vector Tile pipeline
Stars: ✭ 132 (-95.31%)
Mutual labels:  geojson, shapefile
Mapshaper Plus
Generate geojson files for Echarts Map,base on mapshaper(Echarts 地图数据压缩转换)
Stars: ✭ 163 (-94.21%)
Mutual labels:  gis, geojson
Django Rest Framework Gis
Geographic add-ons for Django REST Framework. Maintained by the OpenWISP Project.
Stars: ✭ 830 (-70.49%)
Mutual labels:  gis, geojson

Mapshaper

Introduction

Mapshaper is software for editing Shapefile, GeoJSON, TopoJSON, CSV and several other data formats, written in JavaScript.

Mapshaper supports essential map making tasks like simplifying shapes, editing attribute data, clipping, erasing, dissolving, filtering and more.

See the project wiki for documentation on how to use mapshaper.

To suggest improvements, add an issue.

Command line tools

Mapshaper includes several command line programs, which can be run under Mac OS X, Linux and Windows.

  • mapshaper Runs mapshaper commands.
  • mapshaper-xl Works the same as mapshaper, but runs with more RAM to support larger files.
  • mapshaper-gui Runs the mapshaper Web interface locally.

The project wiki has an introduction to using the command line tool that includes many simple examples.

For a detailed reference, see the Command Reference.

Interactive web interface

Visit the public website at www.mapshaper.org or use the web UI locally via the mapshaper-gui script.

All processing is done in the browser, so your data stays private, even when using the public website.

The web UI works in recent desktop versions of Chrome, Firefox, Safari and Internet Explorer. Safari before v10.1 and IE before v10 are not supported.

User-contributed resources

rmapshaper is an R package written by Andy Teucher that gives R users access to many of mapshaper's editing commands.

Here are resources for using mapshaper with Docker, provided by Christian Weiss.

You can find a number of mapshaper tutorials online, including a two part guide to command line cartography by Dylan Moriarty and this introduction by Jack Dougherty.

Large file support

Web interface

Firefox is able to load Shapefiles and GeoJSON files larger than 1GB. Chrome has improved in recent versions, but is still prone to out-of-memory errors when importing files larger than several hundred megabytes.

Command line interface

There are hard limits for reading and writing most file types. The maximum output size of a single file of any type is 2GB. Some file types (GeoJSON, CSV, .shp) are read incrementally, so much larger files can be imported.

When working with very large files, mapshaper may become unresponsive or crash with the message "JavaScript heap out of memory."

One option is to run mapshaper-xl, which allocates more memory than the standard mapshaper program (8GB by default). Starting with version 0.4.131, you can specify the amount of memory to allocate like this: mapshaper-xl 20gb [commands].

Another solution is to run Node directly with the --max-old-space-size option. The following example (Mac or Linux) allocates 16GB of memory:

$ node  --max-old-space-size=16000 `which mapshaper` <mapshaper commands>

Installation

Mapshaper requires Node.js.

With Node installed, you can install the latest release version of mapshaper using npm. Install with the "-g" flag to make the executable scripts available systemwide.

npm install -g mapshaper

To install and run the latest development code from github:

git clone [email protected]:mbloch/mapshaper.git
cd mapshaper
npm install       # install dependencies
npm run build     # bundle source code files
npm link          # (optional) add global symlinks so scripts are available systemwide

Building and testing

From the project directory, run npm run build to build both the cli and web UI modules.

Run npm test to run mapshaper's tests.

License

This software is licensed under MPL 2.0.

According to Mozilla's FAQ, "The MPL's ‘file-level’ copyleft is designed to encourage contributors to share modifications they make to your code, while still allowing them to combine your code with code under other licenses (open or proprietary) with minimal restrictions."

Acknowledgements

My colleagues at The New York Times, for countless suggestions, bug reports and general helpfulness.

Mark Harrower, for collaborating on the original "MapShaper" program at the University of Wisconsin–Madison.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].