Re: [gdal-dev] Unable to open KMZ datasource using libkml

2024-04-25 Thread Johannes Paul via gdal-dev
Nice, thanks !

On Thu, 25 Apr 2024 at 14:38, Even Rouault 
wrote:

> Hi,
>
> you can try something kike ogrinfo /vsizip/your.kmz/your.kml
>
> Even
> Le 25/04/2024 à 14:32, Johannes Paul via gdal-dev a écrit :
>
> Hello,
> using GDAL 3.8.3 compiled with libkml, I'm unable to read a specific KMZ
> file, using ogrinfo (error "unable to open datasource ...")
> However if I extract the .kml index file for the kmz archive, GDAL can
> provide ogrinfo on this .kml index file.
> I noticed from the LIBKML driver documentation that GDAL will default to
> look for a *doc.kml* index file which is not the case here, so I tried to
> rename my index file and I also tried to use
> *--config LIBKML_USE_DOC.KML=NO* without success.
> Any idea to get GDAL to read the kmz file without unarchiving the kml
> index ?
> Thanks
> Johannes
>
> ___
> gdal-dev mailing 
> listgdal-dev@lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> -- http://www.spatialys.com
> My software is free, but my time generally not.
>
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Unable to open KMZ datasource using libkml

2024-04-25 Thread Even Rouault via gdal-dev

Hi,

you can try something kike ogrinfo /vsizip/your.kmz/your.kml

Even

Le 25/04/2024 à 14:32, Johannes Paul via gdal-dev a écrit :

Hello,
using GDAL 3.8.3 compiled with libkml, I'm unable to read a specific 
KMZ file, using ogrinfo (error "unable to open datasource ...")
However if I extract the .kml index file for the kmz archive, GDAL can 
provide ogrinfo on this .kml index file.
I noticed from the LIBKML driver documentation that GDAL will default 
to look for a /doc.kml/ index file which is not the case here, so I 
tried to rename my index file and I also tried to use 
/--config LIBKML_USE_DOC.KML=NO/ without success.
Any idea to get GDAL to read the kmz file without unarchiving the kml 
index ?

Thanks
Johannes

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


--
http://www.spatialys.com
My software is free, but my time generally not.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev