Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. # download the data
  2. wget "http://giscience.tw.rpi.edu/rpi_group_projects/watershedders/data/gas_station.geojson"
  3.  
  4. # convert the downloaded file to shapefile format
  5. ogr2ogr -f "ESRI Shapefile" gas_station.shp gas_station.geojson
  6.  
  7. # convert the shapefile back into geojson
  8. ogr2ogr -f "GeoJSON" gas_station2.geojson gas_station.shp
  9.  
  10. {
  11. "type": "FeatureCollection",
  12.  
  13. "features": [
  14.  
  15. GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
  16.  
  17. ogr2ogr -f "GeoJSON" gas_station3.geojson gas_station.geojson
  18.  
  19. # top lines of gas_station3:
  20. {
  21. "type": "FeatureCollection",
  22. "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement