You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Marco Quaranta (JIRA)" <ji...@apache.org> on 2012/06/21 10:43:43 UTC

[jira] [Created] (TIKA-941) Detecting KML / KMZ files

Marco Quaranta created TIKA-941:
-----------------------------------

             Summary: Detecting KML / KMZ files
                 Key: TIKA-941
                 URL: https://issues.apache.org/jira/browse/TIKA-941
             Project: Tika
          Issue Type: Improvement
          Components: mime
    Affects Versions: 1.1
            Reporter: Marco Quaranta


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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TIKA-941) Detecting KML / KMZ files

Posted by "Nick Burch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TIKA-941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404573#comment-13404573 ] 

Nick Burch commented on TIKA-941:
---------------------------------

I've added some unit tests in r1355776, covering both the mime magic + glob detecton, and the zip container detector.
                
> Detecting KML / KMZ files
> -------------------------
>
>                 Key: TIKA-941
>                 URL: https://issues.apache.org/jira/browse/TIKA-941
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime
>    Affects Versions: 1.1
>            Reporter: Marco Quaranta
>            Assignee: Jukka Zitting
>            Priority: Minor
>              Labels: google, kml, kmz
>             Fix For: 1.2
>
>         Attachments: ZipContainerDetector.java
>
>
> 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). 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TIKA-941) Detecting KML / KMZ files

Posted by "Marco Quaranta (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marco Quaranta updated TIKA-941:
--------------------------------

    Attachment: ZipContainerDetector.java
    
> Detecting KML / KMZ files
> -------------------------
>
>                 Key: TIKA-941
>                 URL: https://issues.apache.org/jira/browse/TIKA-941
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime
>    Affects Versions: 1.1
>            Reporter: Marco Quaranta
>              Labels: google, kml, kmz
>         Attachments: ZipContainerDetector.java
>
>
> 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). 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (TIKA-941) Detecting KML / KMZ files

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved TIKA-941.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2
         Assignee: Jukka Zitting

Thanks! I committed your changes in revision 1355674 and followed up with some further improvements in revision 1355683.
                
> Detecting KML / KMZ files
> -------------------------
>
>                 Key: TIKA-941
>                 URL: https://issues.apache.org/jira/browse/TIKA-941
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime
>    Affects Versions: 1.1
>            Reporter: Marco Quaranta
>            Assignee: Jukka Zitting
>            Priority: Minor
>              Labels: google, kml, kmz
>             Fix For: 1.2
>
>         Attachments: ZipContainerDetector.java
>
>
> 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). 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TIKA-941) Detecting KML / KMZ files

Posted by "Marco Quaranta (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marco Quaranta updated TIKA-941:
--------------------------------

    Priority: Minor  (was: Major)
    
> Detecting KML / KMZ files
> -------------------------
>
>                 Key: TIKA-941
>                 URL: https://issues.apache.org/jira/browse/TIKA-941
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime
>    Affects Versions: 1.1
>            Reporter: Marco Quaranta
>            Priority: Minor
>              Labels: google, kml, kmz
>         Attachments: ZipContainerDetector.java
>
>
> 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). 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira