Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-941

Detecting KML / KMZ files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1
    • 1.2, 1.6
    • mime

    Description

      KML format is subtype of application/xml with a "kml" root node and (an optional?) "http://www.opengis.net/kml/2.2" namespace.

      <mime-type type="application/vnd.google-earth.kml+xml">
      <root-XML localName="kml"/>
      <root-XML namespaceURI="http://www.opengis.net/kml/2.2" localName="kml"/>
      <acronym>KML</acronym>
      <_comment>Keyhole Markup Language</_comment>
      <glob pattern="*.kml"/>
      <sub-class-of type="application/xml"/>
      </mime-type>

      KMZ files (https://developers.google.com/kml/documentation/kmzarchives) are zip archives with a KML file inside (the file should be called doc.kml) and one or more folder. A naive approach consists in adding a further check in ZipContainerDetector (find attached).

      Attachments

        1. ZipContainerDetector.java
          9 kB
          Marco Quaranta

        Activity

          People

            jukkaz Jukka Zitting
            101000 Marco Quaranta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: