kml, High Performance KML for Maps and Earth, not working -
i made kml file mimic example " high performance kml maps , earth'-on youtube-link (at 15:11-16:05 or 15:51)
this presentation on friday, on rush work, thanks.
i error: validation stopped @ line 2, column 45: no decleration found element 'kml'
when try run code googl earth crashes.
here code:
<?xml version="1.0" encoding="utf-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <placemark> <gx:track> <when>13:51</when> <gx:coord>-147.871 64.861</gx:coord> <extendeddata> <schemadata schemaurl="#schema"> <gx:simplearraydata name="pm 2.5"> <gx:value>0.0</gx:value> <gx:value>-6.0511e+15</gx:value> <gx:value>180</gx:value> </gx:simplearraydata> </schemadata> </extendeddata> </gx:track> </placemark> <placemark> <gx:track> <when>13:56</when> <gx:coord>-147.871 64.861</gx:coord> <extendeddata> <schemadata schemaurl="#schema"> <gx:simplearraydata name="pm 2.5"> <gx:value>0.0</gx:value> <gx:value>-1.0001e+16</gx:value> <gx:value>180</gx:value> </gx:simplearraydata> </schemadata> </extendeddata> </gx:track> </placemark> </kml>
this shorter version of actual full kml file
you not using correct format kml file
firstly, while correct cases
<kml xmlns="http://www.opengis.net/kml/2.2">
i prefer use (i forget why do)
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/atom">
but main problem missing <document>
so actual file should this
<?xml version="1.0" encoding="utf-8"?> <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/atom"> <document> <name>name</name> <placemark> ... </placemark> </document> </kml>
Comments
Post a Comment