Stack Exchange Network

Stack Exchange network consists of 174 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.

2
votes
1answer
31 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 ...
0
votes
0answers
18 views

Installed Mapshaper but commands cannot be found

Installed Mapshaper with npm. Then tried to check version and the command is not found. Other commands like -h and -info aren't working. This was working last week for me but I'm not sure what ...
2
votes
1answer
258 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
90 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
139 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
221 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
230 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
139 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
257 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
91 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
635 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
274 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
253 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
611 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
123 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
701 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
454 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 ...