Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2, 1.6
    • Component/s: mime
    • Labels:

      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).

        Activity

        Hide
        jukkaz Jukka Zitting added a comment -

        Thanks! I committed your changes in revision 1355674 and followed up with some further improvements in revision 1355683.

        Show
        jukkaz Jukka Zitting added a comment - Thanks! I committed your changes in revision 1355674 and followed up with some further improvements in revision 1355683.
        Hide
        gagravarr Nick Burch added a comment -

        I've added some unit tests in r1355776, covering both the mime magic + glob detecton, and the zip container detector.

        Show
        gagravarr Nick Burch added a comment - I've added some unit tests in r1355776, covering both the mime magic + glob detecton, and the zip container detector.
        Hide
        101000 Marco Quaranta added a comment - - edited

        Please add the following namespace to kml mime-type declaration:

        <root-XML namespaceURI="http://earth.google.com/kml/2.0" localName="kml" />
        <root-XML namespaceURI="http://earth.google.com/kml/2.1" localName="kml" />
        <root-XML namespaceURI="http://earth.google.com/kml/2.2" localName="kml" />

        Show
        101000 Marco Quaranta added a comment - - edited Please add the following namespace to kml mime-type declaration: <root-XML namespaceURI="http://earth.google.com/kml/2.0" localName="kml" /> <root-XML namespaceURI="http://earth.google.com/kml/2.1" localName="kml" /> <root-XML namespaceURI="http://earth.google.com/kml/2.2" localName="kml" />
        Hide
        gagravarr Nick Burch added a comment -

        Thanks, additional namespaces added in r1593315.

        Show
        gagravarr Nick Burch added a comment - Thanks, additional namespaces added in r1593315.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development