{"id":13426431,"url":"https://github.com/mbloch/mapshaper","last_synced_at":"2025-05-10T12:10:37.918Z","repository":{"id":7025327,"uuid":"8297971","full_name":"mbloch/mapshaper","owner":"mbloch","description":"Tools for editing Shapefile, GeoJSON, TopoJSON and CSV files","archived":false,"fork":false,"pushed_at":"2025-01-01T18:36:11.000Z","size":133997,"stargazers_count":3902,"open_issues_count":139,"forks_count":544,"subscribers_count":123,"default_branch":"master","last_synced_at":"2025-05-08T22:37:34.503Z","etag":null,"topics":["csv","geojson","gis","shapefile","svg","topojson"],"latest_commit_sha":null,"homepage":"http://mapshaper.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbloch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-02-19T19:49:05.000Z","updated_at":"2025-05-07T23:33:38.000Z","dependencies_parsed_at":"2023-02-10T11:33:00.738Z","dependency_job_id":"2e2b4aaa-d7a6-4960-a09c-2299de2216e4","html_url":"https://github.com/mbloch/mapshaper","commit_stats":{"total_commits":3163,"total_committers":10,"mean_commits":316.3,"dds":0.09294973126778372,"last_synced_commit":"c18936117413f6a90c53e54794a0e27569fd1056"},"previous_names":[],"tags_count":477,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbloch%2Fmapshaper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbloch%2Fmapshaper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbloch%2Fmapshaper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbloch%2Fmapshaper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbloch","download_url":"https://codeload.github.com/mbloch/mapshaper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253166473,"owners_count":21864467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","geojson","gis","shapefile","svg","topojson"],"created_at":"2024-07-31T00:01:34.378Z","updated_at":"2025-05-10T12:10:37.890Z","avatar_url":"https://github.com/mbloch.png","language":"JavaScript","readme":"# Mapshaper\n\n## Introduction\n\nMapshaper is software for editing Shapefile, GeoJSON, [TopoJSON](https://github.com/mbostock/topojson/wiki), CSV and several other data formats, written in JavaScript.\n\nMapshaper supports essential map making tasks like simplifying shapes, editing attribute data, clipping, erasing, dissolving, filtering and more.\n\nSee the [project wiki](https://github.com/mbloch/mapshaper/wiki) for documentation on how to use mapshaper.\n\nTo suggest improvements, add an [issue](https://github.com/mbloch/mapshaper/issues).\n\n\n## Command line tools\n\nMapshaper includes several command line programs, which can be run under Mac OS X, Linux and Windows.\n\n* `mapshaper` Runs mapshaper commands.\n* `mapshaper-xl` Works the same as `mapshaper`, but runs with more RAM to support larger files.\n* `mapshaper-gui` Runs the mapshaper Web interface locally.\n\nThe project wiki has an [introduction](https://github.com/mbloch/mapshaper/wiki/Introduction-to-the-Command-Line-Tool) to using the command line tool that includes many simple examples.\n\nFor a detailed reference, see the [Command Reference](https://github.com/mbloch/mapshaper/wiki/Command-Reference).\n\n\n## Interactive web interface\n\nVisit the public website at [www.mapshaper.org](http://www.mapshaper.org) or use the web UI locally via the `mapshaper-gui` script. \n\nAll processing is done in the browser, so your data stays private, even when using the public website.\n\nThe 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.\n\n## User-contributed resources\n\n[rmapshaper](https://github.com/ateucher/rmapshaper) is an R package written by Andy Teucher that gives R users access to many of mapshaper's editing commands.\n\n[Here](https://hub.docker.com/r/freifunkhamm/mapshaper) are resources for using mapshaper with Docker, provided by Christian Weiss.\n\nYou can find a number of mapshaper tutorials online, including a [two](https://moriartynaps.org/command-carto-part-one/) [part](https://moriartynaps.org/command-line-carto-two/) guide to command line cartography by Dylan Moriarty and [this introduction](https://handsondataviz.org/mapshaper.html) by Jack Dougherty.\n\n\n## Large file support\n\n**Web interface**\n\nFirefox 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.\n\n**Command line interface**\n\nThere 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, .dbf) are read incrementally, so much larger files can be imported.\n\nWhen working with very large files, mapshaper may become unresponsive or crash with the message \"JavaScript heap out of memory.\"\n\nYou can use `mapshaper-xl` as a replacement for the standard `mapshaper` program to allocate more heap memory (8GB by default). You can allocate even more memory like this: `mapshaper-xl 20gb [commands]`.\n\nAnother option is to run Node directly with the `--max-old-space-size` option. The following example (Mac or Linux) allocates 16GB of heap memory:\n```bash\n$ node  --max-old-space-size=16000 `which mapshaper` \u003cmapshaper commands\u003e\n```\n\n## Installation\n\nMapshaper requires [Node.js](http://nodejs.org).\n\nWith 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.\n\n```bash\nnpm install -g mapshaper\n```\n\nTo install and run the latest development code from github:\n\n```bash\ngit clone git@github.com:mbloch/mapshaper.git\ncd mapshaper\nnpm install       # install dependencies\nnpm run build     # bundle source code files\nnpm link          # (optional) add global symlinks so scripts are available systemwide\n```\n\n## Building and testing\n\nFrom the project directory, run `npm run build` to build both the cli and web UI modules.\n\nRun `npm test` to run mapshaper's tests.\n\n## License\n\nThis software is licensed under [MPL 2.0](http://www.mozilla.org/MPL/2.0/).\n\nAccording to Mozilla's [FAQ](http://www.mozilla.org/MPL/2.0/FAQ.html), \"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.\"\n\n\n\n## Acknowledgements\n\nMy colleagues at The New York Times, for countless suggestions, bug reports and general helpfulness.\n\nMark Harrower, for collaborating on the original \"MapShaper\" program at the University of Wisconsin\u0026ndash;Madison.\n","funding_links":[],"categories":["JavaScript","Data conversion tools","gis","Javascript frontend frameworks and librairies","Geospatial Library"],"sub_categories":["Visual data analysis","JavaScript"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbloch%2Fmapshaper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbloch%2Fmapshaper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbloch%2Fmapshaper/lists"}