Opened 9 years ago
Closed 9 years ago
#5856 closed defect (fixed)
PROMOTE_TO_MULTI generate an empty wkb_geometry
Reported by: | juanignaciosl | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | major | Keywords: | |
Cc: |
Description
We've been using ogr2ogr for some time, always with PROMOTE_TO_MULTI parameter. With a recent version (trunk @ rev 28335) there's a change in the behaviour: if we import a csv file without a "wkb_geometry" column, the command will create it, empty for all rows. Previous versions didn't, and if I remove that parameter, it won't create it.
This is the command: /usr/bin/ogr2ogr -f PostgreSQL PG:"host=127.0.0.1 port=5432 user=db_user dbname=db_name password=db_pass" /tmp/csv_provoking_wkb_geometry.csv -nln target_schema.target_table -nlt PROMOTE_TO_MULTI
Attachments (1)
Change History (2)
by , 9 years ago
Attachment: | csv_provoking_wkb_geometry.csv added |
---|
comment:1 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
trunk r28548 "Fix OGR_GT_GetCollection() to return wkbNone when input is wkbNone, so that ogr2ogr -nlt PROMOTE_TO_MULTI has no effect on a layer without geometry (#5856, trunk only)"