Skip to content

Instantly share code, notes, and snippets.

@venuatu
Last active November 2, 2015 22:54
Show Gist options
  • Save venuatu/76f707a6340257509372 to your computer and use it in GitHub Desktop.
Save venuatu/76f707a6340257509372 to your computer and use it in GitHub Desktop.
shopsmall-barangaroo.geojson
# Usage: pbpaste | amexsmall.py
import json, sys
output = [{
"type": "Feature",
"properties": {k: v for k, v in x.items() if v},
"geometry": {
"type": "Point",
"coordinates": [
x['ConLongitude'],
x['ConLatitude']
]
}
} for x in json.load(sys.stdin)
]
print(json.dumps({
"type": "FeatureCollection",
"features": output
}))
Display the source blob
Display the rendered blob
Raw
Loading
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