Opened 14 years ago

Closed 11 years ago

#206 closed defect (worksforme)

ogr2ogr throws an error while exporting geojson data to postgis database

Reported by: dr Owned by: osgeo4w-dev@…
Priority: critical Component: Package
Version: Keywords: ogr2ogr, gdal
Cc:

Description

Try to upload data from *.geojson file to PostGIS database with ogr2ogr utility. All works fine. But if set -lco GEOMETRY_NAME='the_geom' option - get an error: "ERROR 1: AddGeometryColumn failed for layer ogrgeojson, layer creation has failed". GDAL version - 1.7.3.

Change History (3)

comment:1 by dr, 14 years ago

Keywords: ogr2ogr gdal added; og2 removed

comment:2 by rouault, 13 years ago

Did you check that the user used to connect to the PostGIS DB has write rights on the geometry_columns (and spatial_ref_sys) tables ?

comment:3 by jef, 11 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.