[gdal-dev] kml file with line length too long

Joaquim Manuel Freire Luís jluis at ualg.pt
Fri Jun 28 05:05:02 PDT 2019


Even, still about this issue. My experimental gmt_ogrread() function crashes when used with this file. The crash occurs at
https://github.com/GenericMappingTools/gmt/blob/master/src/gmt_ogrread.c#L344
and happens more or less randomly in "iLayer" ~> 4. From this I deduce the trouble comes from those multiple (empty?) layers of this file.

It's strange because line 342 also accesses hSRS but it never crashed there.

|>-----Original Message-----
|>From: Joaquim Manuel Freire Luís <jluis at ualg.pt>
|>Sent: Thursday, June 27, 2019 11:06 PM
|>To: Joaquim Manuel Freire Luís <jluis at ualg.pt>; Even Rouault
|><even.rouault at spatialys.com>; gdal-dev at lists.osgeo.org
|>Cc: jratike80 <jukka.rahkonen at maanmittauslaitos.fi>
|>Subject: RE: [gdal-dev] kml file with line length too long
|>
|>OK, better but still some issues
|>
|>...
|>Warning 1: Invalid layer name for a shapefile: RGT 2 DOY-179 28-Jun-2019
|>06:28:18. Laundered to RGT 2 DOY-179 28-Jun-2019 06_28_18.
|>Warning 6: Normalized/laundered field name: 'Description' to 'Descriptio'
|>Warning 1: Invalid layer name for a shapefile: RGT 2 DOY-179 28-Jun-2019
|>06:29:18. Laundered to RGT 2 DOY-179 28-Jun-2019 06_29_18.
|>Warning 6: Normalized/laundered field name: 'Description' to 'Descriptio'
|>Warning 6: Normalized/laundered field name: 'Description' to 'Descriptio'
|>
|>At the end I get a directory with 196 .shp files, of which only "
|>IS2_RGT_0002_cycle4_28-Jun-2019.kml.shp" is good. The rest is a bunch of "
|>RGT 2 DOY-179 28-Jun-2019 06_29_18.shp" with only 136 bytes.
|>
|>
|>... and my gmt_ogrread() function still crashes my Julia GMT wrapper.
|>
|>
|>
|>
|>
|>|>-----Original Message-----
|>|>From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> On Behalf Of Joaquim
|>|>Manuel Freire Luís
|>|>Sent: Thursday, June 27, 2019 10:39 PM
|>|>To: Even Rouault <even.rouault at spatialys.com>;
|>|>gdal-dev at lists.osgeo.org
|>|>Cc: jratike80 <jukka.rahkonen at maanmittauslaitos.fi>
|>|>Subject: Re: [gdal-dev] kml file with line length too long
|>|>
|>|>Thanks. I'll try it.
|>|>
|>|>|>-----Original Message-----
|>|>|>From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> On Behalf Of Even
|>|>|>Rouault
|>|>|>Sent: Thursday, June 27, 2019 10:34 PM
|>|>|>To: gdal-dev at lists.osgeo.org
|>|>|>Cc: jratike80 <jukka.rahkonen at maanmittauslaitos.fi>
|>|>|>Subject: Re: [gdal-dev] kml file with line length too long
|>|>|>
|>|>|>> ERROR 1: Failed to create file lolo.shp\RGT 2 DOY-179 28-Jun-2019
|>|>|>> 04:55:18.shp: No error
|>|>|>
|>|>|>Ah, I see. There are ':' characters in the layername, which are
|>|>|>invalid characters for a filename on Windows. As I tested the
|>|>|>gisinternals builds on Wine, this limitation is probably not
|>|>|>emulated Anyway, I've just pushed code in the shapefile driver to
|>|>|>launder layer name
|>|>to get valid filenames. Ah shapefiles...
|>|>|>
|>|>|>Even
|>|>|>
|>|>|>--
|>|>|>Spatialys - Geospatial professional services
|>|>|>http://www.spatialys.com
|>|>|>_______________________________________________
|>|>|>gdal-dev mailing list
|>|>|>gdal-dev at lists.osgeo.org
|>|>|>https://lists.osgeo.org/mailman/listinfo/gdal-dev
|>|>_______________________________________________
|>|>gdal-dev mailing list
|>|>gdal-dev at lists.osgeo.org
|>|>https://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list