[
https://issues.apache.org/jira/browse/TIKA-941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13841397#comment-13841397
]
Marco Quaranta edited comment on TIKA-941 at 12/6/13 4:33 PM:
--------------------------------------------------------------
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" />
was (Author: 101000):
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" />
> 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 was sent by Atlassian JIRA
(v6.1#6144)