- Download the Maine Town Polygon shape files
npm i -g shp2json
Maine_Boundaries_Town_Polygon.zip Maine_Boundaries_Town_Polygon.geojson
./extract_stonington_geojson.sh
stonington.geojson
is now ready to play with
Last active
August 5, 2019 06:13
-
-
Save imlucas/d6e728d1962e809379f32173f63d1a66 to your computer and use it in GitHub Desktop.
How to get geoJSON data for my town in maine (HT https://webgeodatavore.com/jq-json-manipulation-command-line-with-geojson.html)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
jq -c -r '{type: .type , features: [ .features[]| select( .properties.TOWN == "Stonington") ] }' Maine_Boundaries_Town_Polygon.geojson > stonington.geojson |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment