Ticket #2821 (closed defect: fixed)
ogr2ogr -overwrite option does not work with -lco SCHEMA= option
| Reported by: | hdus | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | default | Version: | unspecified |
| Severity: | major | Keywords: | |
| Cc: |
Description
I try to load an ESRI shape file into a PG schema, different from public with -lco SCHEMA=myschema. The schema "myschema" exists and is empty. When I load the shape to PG everything works fine. But when I want to overwrite these data with the ogr2ogr -overwrite option ogr2ogr stops with the error: "relation xxxx already exists". Running ogr2ogr with CPL_DEBUG=ON the output shows: "CREATE TABLE "myschema"."xxxx" ....". IMO ogr2ogr should delete the the table xxxx before createing a new one.
The -overwrite option works fine without using -lco SCHEMA=myschema.
Change History
Note: See
TracTickets for help on using
tickets.
