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.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Getting shared coordinates between two features using mapshaper?

I'm trying to get the unshared coordinates of two features. I know you can get the shared coordinates as follows: -filter 'Name=="featurename1" || Name =="featurename2"' -innerlines Is there ...
0
votes
0answers
16 views

Joining two layers with different border color using mapshaper?

I am able to join two layers and merge. Is it possible to show different border color for different maplayer after joining them?
0
votes
0answers
56 views

How do I merge two layers in mapshaper's web interface?

I'm using mapshapers web interface and it looks like I should be able to collapse two layers with merge-layers: $ help merge-layers Command -merge-layers merge multiple layers into as few layers as ...
0
votes
0answers
15 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
329 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
448 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
127 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
199 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
324 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
313 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
170 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
393 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
116 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
968 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 ...
2
votes
1answer
365 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
338 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
723 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
181 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
773 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
496 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 ...