Opened 17 years ago
Closed 8 years ago
#1916 closed defect (wontfix)
Problem fetching linestring or polygon geometries with OGR ODBC driver from CSV files
Reported by: | cabellen | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | 1.4.1 |
Severity: | normal | Keywords: | |
Cc: |
Description
A command <ogr2ogr output.shp "ODBC:polygons,polygons.csv(GEOMETRIA)"> (where polygons is an ODBC text DSN pointing to a folder containing the polygons.csv file which I enclose) causes "ERROR 1: GetNextRawFeature(): Unrecognized error" while reading the big element which I have marked with field values "2;2;2;2". As a consequence, the command is unable to create the geometry for the element. The same element works fine when written to a more simple CSV file, with few rows. I have made sure that the problem is not related to a bad formatting of the CSV file nor to the Windows ODBC text driver. The problem occurs with polygons and linestrings. In my opinion, it should be a malloc/realloc problem about row 740 cpl_odbc.cpp CPLODBCStatement::Fetch.
Attachments (1)
Change History (2)
by , 17 years ago
Attachment: | polygons.zip added |
---|
comment:1 by , 8 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Fixed or not but reading CSV file through ODBC can't be common. The CSV driver in GDAL 2.1-dev read geometries from the attached zip without problems. I tag this with "wontfix" and close.