Last active
December 27, 2020 08:44
-
-
Save RP-3/0c4419276b6c05bc80cc5c9c36add4f1 to your computer and use it in GitHub Desktop.
Useful GIS manipulation commands
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
#convert SRID to _______ outputDirectory inputShapefileWithAdjacent .dbf, .prj, .shx files | |
ogr2ogr -t_srs EPSG:4326 ~/Desktop/london_boroughs greater_london_const_region.shpu | |
#convert to psql | |
# creating tables where necessary | |
# inputShapefileWithAdjacent .dbf, .prj, .shx files | |
# piping the output to this postgis database | |
shp2pgsql -c ~/Desktop/london_boroughs/greater_london_const_region.shp | psql -d os_boundaries | |
# BotsonGIS cheatsheet | |
http://www.bostongis.com/pgsql2shp_shp2pgsql_quickguide.bqg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment