我制作了一个KML文件,我希望将其用于Google我的地图。在地图中,当我点击导入>从您的计算机中选择一个文件,我收到消息“该文件包含无效或不支持的数据,或者该文件太大而无法解析”。为什么Google我的地图不会导入我的文件?
非常感谢任何帮助。
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Folder>
<name>PowerPoints/videos/posters/books</name>
<Placemark>
<name>Taranaki Basin Maari Oil Field</name>
<description>
<![CDATA[
<p><a href="http://static.dgbes.com/images/PPT/Chimney-Atlas-Maari-OIl-Field.pptx" download>Download PowerPoint</a></p>
]]>
</description>
<Point>
<coordinates>173.29406,-39.9861,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Gippsland Basin West Seahorse Oil Field</name>
<description>
<![CDATA[
<p><a href="http://static.dgbes.com/images/PPT/Chimney-Atlas-Seahorse-Oil-Field.pptx" download>Download PowerPoint</a></p>
]]>
</description>
<styleUrl>#icon-503-DB4436</styleUrl>
<Point>
<coordinates>147.622777777778,-38.2061111111111,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Green Canyon 161 Genesis Oil Field</name>
<description>
<![CDATA[
<p><a href="http://static.dgbes.com/images/PPT/Chimney-Atlas-Genesis-Oil-Field.pptx" download>Download PowerPoint</a></p>
]]>
</description>
<styleUrl>#icon-503-DB4436</styleUrl>
<Point>
<coordinates>-90.51773,27.77105,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>East Cameron 322 Oil Field</name>
<description>
<![CDATA[
<p><a href="http://static.dgbes.com/images/PPT/Chimney-Atlas-E-Cameron-322-Oil-Field.pptx" download>Download PowerPoint</a></p>
]]>
</description>
<styleUrl>#icon-503-DB4436</styleUrl>
<Point>
<coordinates>-92.9720674,28.9457348,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Molasse Basin Breitbrunn Gas Field</name>
<description>
<![CDATA[
<p><a href="http://static.dgbes.com/images/PPT/Chimney-Atlas-Breitbrunn-Gas-Field.pptx" download>Download PowerPoint</a></p>
]]>
</description>
<styleUrl>#icon-503-DB4436</styleUrl>
<Point>
<coordinates>12.096273,47.895482</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Enhancing DHI & Chimneys</name>
<description>
<![CDATA[
<p><a href="https://www.youtube.com/watch?v=IUoiEpgSrZY" target="_blank">View video</a></p>
]]>
</description>
<Point>
<coordinates>50.851713,66.453241,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Neural Networks & ChimneyCube</name>
<description>
<![CDATA[
<p><a href="https://www.youtube.com/watch?v=0NbAlmk-ITc" target="_blank">View video</a></p>
]]>
</description>
<Point>
<coordinates>51.151148,-35.251312,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Webinar Chimney Interpretation</name>
<description>
<![CDATA[
<p><a href="https://www.youtube.com/watch?v=p-qZe9-7Y4A" target="_blank">View video</a></p>
]]>
</description>
<Point>
<coordinates>51.151148,-35.251312,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Tutorial Processing & Interpretation</name>
<description>
<![CDATA[
<p><a href="https://www.youtube.com/watch?v=Eh76P_VSyEw" target="_blank">View video</a></p>
]]>
</description>
<Point>
<coordinates>-88.4125,28.67611,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Ranking Prospects</name>
<description>
<![CDATA[
<p><a href="https://static.dgbes.com/images/PDF/workflow_hc-chimneys.pdf" target="_blank">View poster</a></p>
]]>
</description>
<Point>
<coordinates>-88.4125,28.67611,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Fluid Migration Path Interpretation</name>
<description>
<![CDATA[
<p><a href="https://library.seg.org/doi/book/10.1190/1.9781560803119" target="_blank">Buy book</a></p>
]]>
</description>
<Point>
<coordinates>-88.4125,28.67611,0</coordinates>
</Point>
</Placemark>
</Folder>
</Document>
</kml>
答案 0 :(得分:0)
KML(作为XML文件)必须格式正确并且编码正确。
KML文件中的一个问题是其中一个实体引用未被转义,这在大多数XML解析器中都是致命错误。
<name>Enhancing DHI & Chimneys</name>
&#34;&amp;&#34;上面的行应该被正确转义,这一行应该改为:
<name>Enhancing DHI & Chimneys</name>
同样必须在其他几行中修复;例如&#34;神经网络&amp; ChimneyCube&#34;等在全球范围内用" & "
替换" & "
,应该没问题。