Bug#829163: trying to guess formats with ogrlineref

積丹尼 Dan Jacobson jidanni at jidanni.org
Fri Jul 1 06:20:35 UTC 2016


X-Debbugs-Cc: Frank Warmerdam <warmerdam at pobox.com>, Silke Reimer <silke at intevation.de>, polimax at mail.ru
Package: gdal-bin
Version: 2.1.0+dfsg-3

Here is a real life story of trying to guess formats.

$ ogrlineref -create -l zk1.kml -p zk0.kml -pm emds -o parts.kml -s 222

Warning: The target file has a 'kml' extension, which is normally used by the KML/LIBKML driver,
but the requested output driver is ESRI Shapefile. Is it really what you want ?
Segmentation fault
$ ogrlineref -f KML -create -l zk1.kml -p zk0.kml -pm emds -o parts.kml -s 222

Warning: The target file has a 'kml' extension, which is normally used by the KML/LIBKML driver,
but the requested output driver is KML. Is it really what you want ?
ERROR 4: Failed to create KML file parts.kml.
KML driver failed to create parts.kml
$ ogrlineref -f KML/LIBKML -create -l zk1.kml -p zk0.kml -pm emds -o parts.kml -s 222

Unable to find driver `KML/LIBKML'.
The following drivers are available:
  -> `PCIDSK'
  -> `netCDF'
  -> `JP2OpenJPEG'
  -> `PDF'
  -> `ESRI Shapefile'
  -> `MapInfo File'
  -> `UK .NTF'
  -> `OGR_SDTS'
  -> `S57'
  -> `DGN'
  -> `OGR_VRT'
  -> `REC'
  -> `Memory'
  -> `BNA'
  -> `CSV'
  -> `NAS'
  -> `GML'
  -> `GPX'
  -> `LIBKML'
  -> `KML'
...

So we think maybe it is mad about the .kml, so we remove it:

$ ogrlineref -f KML -create -l zk1.kml -p zk0.kml -pm emds -o parts -s 222
Segmentation fault



More information about the Pkg-grass-devel mailing list