[gdal-dev] Can anyone else replicate this bug?

Hermann Peifer peifer at gmx.eu
Tue Sep 2 22:52:02 PDT 2014


On 2014-09-03 1:24, Ravi Desai wrote:
> Hello everyone,
>    I unziped this file:
> http://www12.statcan.gc.ca/census-recensement/2011/geo/bound-limit/files-fichiers/gct_000a11a_e.zip
> ,
>    and then fed the directory into the following command:
>      ogr2ogr -t_srs epsg:4326 -f CSV output.csv
> canada_census_boundaries/ -lco GEOMETRY=AS_WKT
>
> Line 4 ends with
>    ...,-76.529666044999942
> 44.249647768000038))",5210015.00,0015.00,521,Kingston,B,35521,35,Ontario
> but line 5 ends with
>    ...-81.066175268999913
> 42.,5550100.01,0100.01,555,London,B,35555,35,Ontario
>
> As you can see, the geometry is truncated and the ending quotes are also
> not applied to it, creating invalid CSV.
>


See the post "OGR v1.11 CSV GEOM=AS_WKT truncated...", at 
http://lists.osgeo.org/pipermail/gdal-dev/2014-June/thread.html

The issue has been fixed already:
 > r27434 | rouault | 2014-06-04 21:38:05 +0200 (Wed, 04 Jun 2014)
 > CSV: fix to avoid truncation of WKT geometries to 8000 characters


I also mentioned a work-around in my reply back then.

Hermann


More information about the gdal-dev mailing list