- Geospatial Data Abstraction Library: http://www.gdal.org/
- RHC: https://developers.openshift.com/en/getting-started-client-tools.html
- Create OpenShift account: https://www.openshift.com/app/account/new
- Finding Data links: http://cadets.codemiller.com/#/2/3
- Converting with ogr2ogr:
ogr2ogr -f GeoJSON data.json data.vrt
ogr2ogr -f GeoJSON data.json data.shp
VRT format:
<OGRVRTDataSource>
<OGRVRTLayer name="NationalPublicToiletMap">
<SrcDataSource>NationalPublicToiletMap.csv</SrcDataSource>
<GeometryType>wkbPoint</GeometryType>
<LayerSRS>WGS84</LayerSRS>
<GeometryField encoding="PointFromColumns" x="Longitude" y="Latitude"/>
</OGRVRTLayer>
</OGRVRTDataSource>
rhc setup
rhc app create myapp python-2.7 mongodb-2 --from-code=https://github.com/codemiller/cloud-craft-python-au.git -s
rhc app create myapp php-5.4 mongodb-2 --from-code=https://github.com/codemiller/cloud-craft-php.git -s
rhc app create myapp python-3.3 mongodb-2 --from-code=https://github.com/codemiller/cloud-craft-python.git -s
mongoimport -d myappname -c toilets --type json --file data.json
mongo myappname --eval 'db.toilets.ensureIndex( { "geometry.coordinates" : "2dsphere" } )'
Mongo commands:
show databases
use myappname
db.toilets.find()
db.toilets.getIndexes()
python app.py
php -S localhost:8080 -t static app.php
git status
git add --all
git commit -m "Commit message"
git push