Update Creating GeoJSON Files from Census Geography authored by Josh Wier's avatar Josh Wier
...@@ -23,16 +23,21 @@ Obviously, our little web map doesn't need to be quite this precise enough to se ...@@ -23,16 +23,21 @@ Obviously, our little web map doesn't need to be quite this precise enough to se
MapShaper is available as a [Node.js-based CLI](https://www.npmjs.com/package/mapshaper), but it's easiest to use through its simple, free web interface that processes everything in-browser. MapShaper is available as a [Node.js-based CLI](https://www.npmjs.com/package/mapshaper), but it's easiest to use through its simple, free web interface that processes everything in-browser.
![image](uploads/d0facd51a56dca240120598c63ffb739/image.png) ![image](uploads/d0facd51a56dca240120598c63ffb739/image.png)
Simply drag in your zipped Shapefile... Simply drag in your zipped Shapefile...
![image](uploads/fec75d38d7f253bc495b988fa29b45b1/image.png) ![image](uploads/fec75d38d7f253bc495b988fa29b45b1/image.png)
Import with default settings... Import with default settings...
![image](uploads/3d989c47c76f5ce1fc46d777c6636fc7/image.png) ![image](uploads/3d989c47c76f5ce1fc46d777c6636fc7/image.png)
Choose "Simplify" from the top toolbar. You can play around with what algorithm works best, but I'd recommend just going with "Visvalingam / effective area". Choose "Simplify" from the top toolbar. You can play around with what algorithm works best, but I'd recommend just going with "Visvalingam / effective area".
![image](uploads/04c7779973ca3b877bfa95d902770fd2/image.png) ![image](uploads/04c7779973ca3b877bfa95d902770fd2/image.png)
This will give you a slider that you can use to visually find the highest acceptable level of simplification. The percentage shown by the slider is the percentage of points retained — so a rough proxy for file size. If you find this a little arbitrary, you could open the console and run the [`-simplify` command](https://github.com/mbloch/mapshaper/wiki/Command-Reference#-simplify) with its `interval=` option, which lets you specify a tolerance in meters (presumably that means square meters for Visvalingam) or latitude/longitude degrees. This will give you a slider that you can use to visually find the highest acceptable level of simplification. The percentage shown by the slider is the percentage of points retained — so a rough proxy for file size. If you find this a little arbitrary, you could open the console and run the [`-simplify` command](https://github.com/mbloch/mapshaper/wiki/Command-Reference#-simplify) with its `interval=` option, which lets you specify a tolerance in meters (presumably that means square meters for Visvalingam) or latitude/longitude degrees.
![image](uploads/bf24a5e06fd8fdcaaeb5e2eaad72c1c1/image.png) ![image](uploads/bf24a5e06fd8fdcaaeb5e2eaad72c1c1/image.png)
Once you're done, hit "Export" and choose "GeoJSON" as your format. Once you're done, hit "Export" and choose "GeoJSON" as your format.