Mapshaper is an open source tool and online resource for simplifying maps and boundaries and working with geojson, topojson and other formats.
Questions tagged [mapshaper]
16 questions
9
votes
1 answer
How to fix geojson to satisfy the needs of a mongodb 2dsphere index
I have ~400K documents in a mongo collection, all with geometry of type:Polygon. It is not possible to add a 2dsphere index to the data as it currently stands because the geometry apparently has self-intersections.
In the past we had a hacky…

dan-man
- 2,949
- 2
- 25
- 44
1
vote
1 answer
Problems converting shapefile to topojson with features
I downloaded a shape file from the U.S. Census and passed it through http://mapshaper.org/, which gave me a working topojson file to use in D3.
However, I realized the topojson file had all the features labels stripped. So there is no way identify…

mikey8989
- 484
- 5
- 14
1
vote
1 answer
QGIS generated shapefile malformed when converted to topojson by mapshaper
So I started with a really small example that is working well. I used QGIS to draw a line and then converted it to topojson with mapshaper. Then I use D3.js to load and visualize it. This is the bigger but not working example:…

kwoxer
- 3,734
- 4
- 40
- 70
1
vote
1 answer
D3.js display Topojson
I've been having a problem drawing Venezuela using topojson. I got the GeoJson data for Venezuela from: http://code.highcharts.com/mapdata/countries/ve/ve-all.geo.json
After, I tried to approaches using the topojson console utility and importing it…

Ricardo Macario
- 213
- 1
- 3
- 13
1
vote
0 answers
d3 toposjon map troubleshooting … why does it look like all zig zags and shards?
UPDATE: solved, kind of. I spent some time learning ogr2ogr and topojson and made a topojson that works beautifully in D3. I'm not sure why the file spit out by mapshaper.org turned into shards in my hands; on their site, the file displays fine. …

Maggie
- 1,975
- 3
- 15
- 17
0
votes
1 answer
How can I provide a variable percentage to mapshaper via the cli?
I need to simplify Admin 0 – Details > map units 10m NaturalEarthData ( file ). It is 25mb and I would like to get it down to around 1mb or less. This should be easy because the 110m near-equivalent data is ~1mb (it is missing features I…

Eric G
- 340
- 1
- 12
0
votes
1 answer
ms_simplify from rmapshaper creates corrupted geojson file
I am trying to use rmapshaper ms_simplify function, using the system version as I am working with a large shapefile. The first steps of the simplification seem to work well but then I get an error that a temporary file created by ms_simplify is…

Victor Cazalis
- 11
- 2
0
votes
0 answers
Is there a way to simplify shapefiles such that smaller polygons have more detail, and larger polygons have less detail?
I have a shapefile representing territories, some large and some small, that I would like to reduce in size. If I simplify the shapefile a lot, the larger territories are still easily recognisable, but the small ones lose a lot of detail and become…

michael
- 153
- 1
- 11
0
votes
1 answer
Interactive farm maps
In my use case I need to create interactive farm maps where I can select fields.
I'm trying to do this using the react-simple-maps component.
what was done
I created the farm Shapfile map in QGIS.
Converted to TopoJSON using Mapshaper as per this…

Cleiton Freitas
- 387
- 7
- 18
0
votes
2 answers
Using a Power BI Custom Shape Map
I have been trying to use a custom shape map in Power BI and I can not get it to work.
The idea behind all this is to start from a .shp file, .dbf file and a .prj file and export it to a TopoJson file that actually works in Power BI in order to show…

PBI-experimenter
- 3
- 2
0
votes
0 answers
Zoomed out d3 map from mapshaper.org
Can someone pls tell me what i'm doing wrong. I exported a topojson from mapshaper.org. Then I drew the map using the d3. But the map appears zoomed out(very small). How do I get it to be properly scaled and centered. Pls note that i've used some…

Jobie J
- 117
- 5
0
votes
1 answer
running a global node application from Web API application using process
I have a WEB API application, done in ASP.NET framework 4.7, where I want to call an application in NodeJs using the command line, therefore, using the System.Diagnostic.Process.
The NodeJs application has been installed using
npm install -g…

Giox
- 4,785
- 8
- 38
- 81
0
votes
0 answers
Is there a way to show grib2 or netcdf data on shapefiles using web interface?
I want to show some weather data on a given shapefile. I was checking if it's possible using mapshaper or web mercator but didn't find a suitable procedure.
Any help is highly appreciated.

SB1990
- 43
- 9
0
votes
1 answer
is there any chance to change projection for geojson(mapshaper)
Hello all,
i am using OpenLayers 5, Angular 6, mapshaper tool(converting shp to json).
MapshaperTool, Git Code
my process
i have installed npm mapshaper --save
i am able to upload different .shp files and able to get json features data.
i have 2…

kks
- 342
- 5
- 25
0
votes
2 answers
How does mapshaper work to show a shapefile?
I just want to show my shp / json file as in http://mapshaper.org/ . How can I carry it out?
I want to use similar platform to display my shapefile in web.

Sharma Aashish
- 43
- 1
- 11