Last active
November 2, 2015 22:54
-
-
Save venuatu/76f707a6340257509372 to your computer and use it in GitHub Desktop.
shopsmall-barangaroo.geojson
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
# 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 | |
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment