Ticket #1916 (new defect)
Opened 6 years ago
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.

