Last active
August 29, 2015 14:07
-
-
Save leighghunt/87a8a76ae4f7c09fe883 to your computer and use it in GitHub Desktop.
ogr2ogr Shapefile -> SQL Server
This file contains 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
ogr2ogr -overwrite -f "MSSQLSpatial" "MSSQL:server=.;database=geo;tables=wellington_footprints2;trusted_connection=yes" "wellington-city-building-footprints.shp" -progress -lco GEOM_TYPE=GEOGRAPHY -gt 1000 | |
ogr2ogr -overwrite -f "MSSQLSpatial" "MSSQL:server=.;database=geo;tables=wellington_footprints2;trusted_connection=yes" "wellington-city-building-footprints.shp" -progress -lco GEOM_TYPE=GEOGRAPHY -a_srs "EPSG:4326" | |
ogr2ogr -overwrite -f "MSSQLSpatial" "MSSQL:server=.;database=geo;trusted_connection=yes" "buildings-subset.shp" -progress -lco GEOM_TYPE=GEOGRAPHY -a_srs "EPSG:4326" | |
ogr2ogr -overwrite -f "MSSQLSpatial" "MSSQL:server=WIN-GN1RC53EIN1;database=geo;trusted_connection=yes" "buildings-subset.shp" -progress -lco GEOM_TYPE=GEOGRAPHY -a_srs "EPSG:4326" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment