Ticket #4003 (closed defect: fixed)
LIBKML driver ingests whole .zip file into memory even if it is not a valid KMZ
|Reported by:||rouault||Owned by:||rouault|
The LIBKML driver tries to recognize .zip files as kmz files. So it loads the whole zip file into memory before passing it to libkml. However all zip files are not valid kmz files, so ogrinfo can spend a lot of time for nothing. The fix is to scan the filenames of the zip file first to search for a .kml file inside it.