Opened 11 years ago

Closed 8 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 Changed 11 years ago by dr

Keywords: ogr2ogr gdal added; og2 removed

comment:2 Changed 11 years ago by rouault

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 Changed 8 years ago by jef

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