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

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


With --debug on I get

C:\v>ogr2ogr -f "ESRI shapefile" lolo.shp IS2_RGT_0002_cycle4_28-Jun-2019.kml --debug on
KML: Valid: 1 Version: 2.2
KML: Not handled: visibility
KML: Not handled: color
KML: Not handled: width
KML: Not handled: LineStyle
KML: Not handled: color
KML: Not handled: PolyStyle
KML: Not handled: Style
KML: Not handled: extrude
KML: Not handled: tesselate
KML: Not handled: visibility
KML: Not handled: color
KML: Not handled: scale
...
KML: Not handled: IconStyle
KML: Not handled: Style
KML: Not handled: id
GDAL: GDALOpen(IS2_RGT_0002_cycle4_28-Jun-2019.kml, this=00000242D7E059B0) succeeds as KML.
GDAL: GDALDriver::Create(ESRI Shapefile,lolo.shp,0,0,0,Unknown,0000000000000000)
ERROR 1: Failed to create file lolo.shp\RGT 2 DOY-179 28-Jun-2019 04:55:18.shp: No error
ERROR 1: Terminating translation prematurely after failed


|>-----Original Message-----
|>From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> On Behalf Of jratike80
|>Sent: Thursday, June 27, 2019 10:01 PM
|>To: gdal-dev at lists.osgeo.org
|>Subject: Re: [gdal-dev] kml file with line length too long
|>
|>Test with yesterdays GDAL 3.1.0dev from gisinternals creates a directory
|>"lolo.shp", writes the first shapefile into it but fails with the second.
|>Debug shows this:
|>
|>ogr2ogr -f "ESRI shapefile" lolo.shp IS2_RGT_0002_cycle4_28-Jun-2019.kml
|>--debug on
|>GDAL: Auto register C:\ohjelmat\gdal_dev\bin\gdal\plugins\gdal_BAG.dll using
|>GDALRegister_BAG.
|>GDAL: Auto register C:\ohjelmat\gdal_dev\bin\gdal\plugins\gdal_FITS.dll
|>using GDALRegister_FITS.
|>GDAL: Auto register C:\ohjelmat\gdal_dev\bin\gdal\plugins\gdal_GMT.dll using
|>GDALRegister_GMT.
|>GDAL: Auto register C:\ohjelmat\gdal_dev\bin\gdal\plugins\gdal_HDF4.dll
|>using GDALRegister_HDF4.
|>GDAL: Auto register
|>C:\ohjelmat\gdal_dev\bin\gdal\plugins\gdal_HDF4Image.dll
|>using GDALRegister_HDF4Image.
|>GDAL: Auto register C:\ohjelmat\gdal_dev\bin\gdal\plugins\gdal_HDF5.dll
|>using GDALRegister_HDF5.
|>GDAL: Auto register
|>C:\ohjelmat\gdal_dev\bin\gdal\plugins\gdal_HDF5Image.dll
|>using GDALRegister_HDF5Image.
|>GDAL: Auto register C:\ohjelmat\gdal_dev\bin\gdal\plugins\gdal_KEA.dll using
|>GDALRegister_KEA.
|>GDAL: Auto register C:\ohjelmat\gdal_dev\bin\gdal\plugins\gdal_MG4Lidar.dll
|>using GDALRegister_MG4Lidar.
|>GDAL: Auto register C:\ohjelmat\gdal_dev\bin\gdal\plugins\gdal_MrSID.dll
|>using GDALRegister_MrSID.
|>GDAL: Auto register C:\ohjelmat\gdal_dev\bin\gdal\plugins\gdal_netCDF.dll
|>using GDALRegister_netCDF.
|>GDAL: Auto register
|>C:\ohjelmat\gdal_dev\bin\gdal\plugins\ogr_AmigoCloud.dll
|>using RegisterOGRAmigoCloud.
|>GDAL: GDALOpen(IS2_RGT_0002_cycle4_28-Jun-2019.kml,
|>this=0000018665149690) succeeds as LIBKML.
|>GDAL: GDALDriver::Create(ESRI
|>Shapefile,lolo.shp,0,0,0,Unknown,0000000000000000)
|>Shape: DBF Codepage = LDID/87 for
|>lolo.shp\IS2_RGT_0002_cycle4_28-Jun-2019.kml.shp
|>Shape: Treating as encoding 'ISO-8859-1'.
|>Warning 6: Normalized/laundered field name: 'description' to 'descriptio'
|>Warning 6: Field timestamp create as date field, though DateTime requested.
|>Warning 6: Field begin create as date field, though DateTime requested.
|>Warning 6: Field end create as date field, though DateTime requested.
|>Warning 6: Normalized/laundered field name: 'altitudeMode' to 'altitudeMo'
|>GDALVectorTranslate: 1 features written in layer 'IS2_RGT_0002_cycle4_28-
|>Jun-2019.kml'
|>ERROR 1: Failed to create file lolo.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)
|>GDAL: GDALClose(lolo.shp, this=000001866542C1F0)
|>GDAL: GDALClose(IS2_RGT_0002_cycle4_28-Jun-2019.kml,
|>this=0000018665149690)
|>
|>
|>-Jukka Rahkonen-
|>
|>
|>
|>
|>--
|>Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
|>_______________________________________________
|>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