Skip to content

Instantly share code, notes, and snippets.

@imlucas
Last active August 5, 2019 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imlucas/d6e728d1962e809379f32173f63d1a66 to your computer and use it in GitHub Desktop.
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)
#! /usr/bin/env bash
jq -c -r '{type: .type , features: [ .features[]| select( .properties.TOWN == "Stonington") ] }' Maine_Boundaries_Town_Polygon.geojson > stonington.geojson
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment