Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 40618

ogr2ogr is an open source command line utility popular for converting to and from various vector spatial data formats.

21 votes
1 answer
29k views

Import a shapefile to postgis with ogr2ogr gives: Unable to open datasource

I want to use ogr2ogr in order to import a shapefile in a postgis database. … I have successfully installed ogr2ogr and I run from the pgsql the following command: ogr2ogr -f "PostgreSQL" PG:"host=localhost user=user_1 password=***** dbname=imports" world_boundaries.shp What …
user1919's user avatar
  • 2,694
9 votes
1 answer
3k views

Use ogr2ogr to delete content of table and load new data from shapefile

I want to do this using ogr2ogr. … Is there something like this in ogr2ogr? …
user1919's user avatar
  • 2,694
1 vote
1 answer
702 views

Failed once again to import shapefile to PostGIS DB using ogr2ogr

I have checked everything: Permissions of files, Path of shapefiles, Validity of shapefile, triple checked my ogr2ogr command, used ogrinfo to validate my connection to the DB and check the shapefile … This is my ogr2ogr command: ogr2ogr -f "PostgreSQL" PG:"host=localhost user=my_user password=my_pass dbname=my_db_name" -nlt GEOMETRY my_shape_file.shp And the error I get (also checked the PostgreSQL …
user1919's user avatar
  • 2,694
1 vote
0 answers
241 views

Use ogr2ogr to get KML out of PostGIS

I am trying to export a Postgis database table into KML using ogr2ogr. … When I execute this command in terminal (Ubuntu 12) I just get the "documentation" back but no result or error: ogr2ogr -f "KML" mykml.kml PG:"host=localhost user=**** dbname=nga_test password=***" "public.chalandri …
user1919's user avatar
  • 2,694
0 votes
0 answers
410 views

Installation and execution of GDAL

I checked the location of my GDAL with: which ogr2ogr command and I get: /usr/bin/which: **no ogr2ogr in** (/Library/Frameworks/GDAL.framework/Programs:/Library/Frameworks/Python.framework/Versions/2.7 …
user1919's user avatar
  • 2,694