Ticket #4003 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

LIBKML driver ingests whole .zip file into memory even if it is not a valid KMZ

Reported by: rouault Owned by: rouault
Priority: normal Milestone: 1.8.1
Component: OGR_SF Version: 1.8.0
Severity: normal Keywords: libkml
Cc:

Description

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.

Change History

Changed 2 years ago by rouault

  • status changed from new to closed
  • resolution set to fixed

Fixed in trunk (r21982) and in branches/1.8 (r21983)

Note: See TracTickets for help on using tickets.