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

Joaquim Manuel Freire Luís jluis at ualg.pt
Thu Jun 27 14:27:14 PDT 2019


Nope. I'm aware of that but no. Trying with a new name makes no difference.

ogr2ogr -f "ESRI Shapefile" lalaralala.shp IS2_RGT_0002_cycle4_28-Jun-2019.kml
ERROR 1: Failed to create file lalaralala.shp\RGT 2 DOY-179 28-Jun-2019 04:55:18.shp: No error
ERROR 1: Terminating translation prematurely after failed
translation of layer RGT 2 DOY-179 28-Jun-2019 04:55:18 (use -skipfailures to skip errors)

But I suspect something with my built. In Mirone I have a MEX based on GDAL ~2.3 and it crashes. In GMT I have an experimental ogrread (GDAL3) and it crashes too. Is there anything particular with the KML format that I can look for?

|>-----Original Message-----
|>From: Even Rouault <even.rouault at spatialys.com>
|>Sent: Thursday, June 27, 2019 9:41 PM
|>To: Joaquim Manuel Freire Luís <jluis at ualg.pt>
|>Cc: gdal-dev at lists.osgeo.org
|>Subject: Re: [gdal-dev] kml file with line length too long
|>
|>On jeudi 27 juin 2019 20:17:22 CEST Joaquim Manuel Freire Luís wrote:
|>> But not for me with a master (~1-2 weeks old) GDAL
|>>
|>> ogr2ogr -f "ESRI Shapefile" test.shp
|>> IS2_RGT_0002_cycle4_28-Jun-2019.kml
|>> ERROR 1: Failed to create file test.shp\RGT 2 DOY-179 28-Jun-2019
|>> 04:55:18.shp: No error ERROR 1: Terminating translation prematurely
|>> after failed translation of layer RGT 2 DOY-179 28-Jun-2019 04:55:18
|>> (use -skipfailures to skip errors)
|>>
|>
|>Ah, I suspect you might have a file "test.shp" already existing, but here as it a
|>multi-layer KML file, the shapefile drivers tries to create a "test.shp"
|>directory. A bit of cleanup in your working dir should fix that.
|>
|>--
|>Spatialys - Geospatial professional services http://www.spatialys.com


More information about the gdal-dev mailing list