Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mapshaper]

Mapshaper is an open source tool and online resource for simplifying maps and boundaries and working with geojson, topojson and other formats.

0
votes
0answers
4 views

Combining layers with mapshaper?

I have two layers of map data that I want to flatten into one. Bay Area Counties includes shapes for each county I want. California Place Names includes cities and towns. I used proj wgs84 to ...
0
votes
0answers
11 views

I have one GeoJSON file and get two output files for mapshaper

This is my command: mapshaper doc.geojson -simplify dp 1% -o format=geojson force doc1.geojson I get TWO output files doc1-1.geojson and doc1-2.geojson. How do I just get one output file?
3
votes
1answer
119 views

Coordinates offset when using Mapshaper to convert shapefile to GeoJSON

I'm a newbie to the GIS world and I'm trying to convert a shapefile to GeoJSON for use in Mapbox. When I view the resulting layer in Mapbox, most of the features appear southeast by 20-30 feet of ...
2
votes
1answer
322 views

D3 Map + TopoJSON (mapshaper) showing empty

Just started learn D3.js and TopoJSON. I had shapefile files and converted using mapshaper to TopoJSON, but when I tried on my local server my map showing empty page without any errors. I don't have ...
0
votes
0answers
104 views

Mapshaper running out of memory on R

I'm using rmapshaper, the R wrapper of MapShaper, to simplify polygons without slivers and it works well on small shapefiles. However, when I run it on a larger one (~150M, ~5000 shapes), it runs out ...
1
vote
1answer
161 views

Exporting identified intersections from mapshaper

I have a 3000 mile long line that has quite a few gps errors where the line self intersects itself. Mapshaper does the best job of all the tools identifying these intersections on import, QGIS's ...
1
vote
1answer
252 views

Prevent Mapshaper stripping out data

I'd like to use mapshaper to simplify shapefiles http://www.mapshaper.org/ The main reason is to reduce my file sizes in QGIS as the native tools are too rough / split countries apart. I can import ...
1
vote
1answer
255 views

How to target multiple specific layers when using -merge-layers

As part of trying to find an answer for How to -explode only one subfeature from only one feature? I created some fields in one layer only, then, after doing some operations, tried to merge that layer ...
2
votes
1answer
144 views

How to -explode only one subfeature from only one feature?

I have a topojson which treats French Guiana as part of the "France" feature (therefore also, part of the Western Europe layer). To match my dataset, I want to split this out from France, while ...
1
vote
1answer
306 views

How to restrict Mapshaper's `-dissolve` to merge only certain specified features on a layer

I'm try to merge a few specified features on a topojson map using Mapshaper. For this example, I'm trying to merge Somalia, Somaliland and Puntland to match a dataset that doesn't separate them. ...
0
votes
1answer
95 views

Export topojson from Mapshaper with an ID field that is a composite created from multiple fields

I've got some GIS data with many data fields for each feature. I'm using Mapshaper to simplify it into a light, lean topojson file. I want the ID fields of these features in the output to be a ...
1
vote
1answer
719 views

Delete / remove just one feature from a topojson

I've got a TOPOJSON file that is nearly perfect, but contains one item (a multi polygon) that I'd like to remove. Doing so manually from the code is difficult because it'd require manually counting ...
3
votes
1answer
309 views

Use UTF-8 encoding mapshaper

I want to convert a json into topoJson using mapshaper.org. The json file I am using has world wide names in it, hence is encoded in UTF-8. However, when I upload the file on mapshaper and then ...
1
vote
1answer
274 views

Mapshaper fails when converting files to .topojson due to file size?

I have a .gejson file that's about 378 meg (378,776k) and I'm trying to convert it to topojson. I was successful with files that sized to about 262 meg but files greater than that failed leaving the ...
1
vote
2answers
653 views

Simplify a shapefile/GeoJSON polygon without “uncovering” territory?

I've been using Mapshaper to simplify some very complex polygons (boundaries of countries). The goal is to create relatively simple polygons which can be used to determine whether a given lat/lon ...
1
vote
1answer
3k views

How to merge/combine files in Mapshaper using combine-files command?

I'm trying to simplify several geojson and topojson files at once to output them into one file with a consistent level of detail. I'm using Mapshaper because I like it's map simplification features. ...
1
vote
1answer
147 views

Viewing what properties exist in GeoJSON file loaded into MapShaper?

Suppose I have a large GeoJSON file loaded into Mapshaper. I want to convert a property to use as an ID field on export, but I don't know what the property naming schema is. The file is too large to ...
0
votes
1answer
719 views

How to preserve properties (like -p) in topojson conversion in Mapshaper?

I'm trying to use mapshaper.org to convert some geojson files to topojson, and I need the identifying properties to be preserved. Normally this would be done with the -p flag on the command line, but ...
0
votes
1answer
468 views

How to simplify shapefiles without losing attributes?

I want to simplify a huge shapefiles using mapshaper. However whenever I simplify the shapefile I loose a lot of data attributes. how can we simplify the shape files while retaining at least some of ...