[Therion] KML from Therion no longer working in Google Earth?

Martin Sluka martinsluka at mac.com
Mon Nov 21 09:35:23 CET 2011


The problem is here:
Coordinates as they are:	   -2.75350079820942,   51.32096315339923,     
0.00000000000000

they should be:	   -2.75350079820942,51.32096315339923,0.00000000000000

8-/

m.



This is example, which works:

<?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>test polyline.kml</name>
	<StyleMap id="m_ylw-pushpin">
		<Pair>
			<key>normal</key>
			<styleUrl>#s_ylw-pushpin</styleUrl>
		</Pair>
		<Pair>
			<key>highlight</key>
			<styleUrl>#s_ylw-pushpin_hl</styleUrl>
		</Pair>
	</StyleMap>
	<Style id="s_ylw-pushpin">
		<IconStyle>
			<scale>1.1</scale>
			<Icon>
				<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</ 
href>
			</Icon>
			<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
		</IconStyle>
	</Style>
	<Style id="s_ylw-pushpin_hl">
		<IconStyle>
			<scale>1.3</scale>
			<Icon>
				<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</ 
href>
			</Icon>
			<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
		</IconStyle>
	</Style>
	<Placemark>
		<name>test polyline</name>
		<description>test polyline generated directly in Google Earth</ 
description>
		<styleUrl>#m_ylw-pushpin</styleUrl>
		<Polygon>
			<tessellate>1</tessellate>
			<outerBoundaryIs>
				<LinearRing>
					<coordinates>
						21.37785573484105,41.73401821376927,0  
21.37996968218945,41.73542176612121,0  
21.3781743946259,41.73639860415832,0  
21.37785573484105,41.73401821376927,0
					</coordinates>
				</LinearRing>
			</outerBoundaryIs>
		</Polygon>
	</Placemark>
</Document>
</kml>


XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

This one not:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Document>
<name>Therion export test</name>
<description>Therion KML export test.</description>
<Placemark>
<Style>
<PolyStyle>
<color>bfffffff</color>
<fill>1</fill>
<outline>0</outline>
</PolyStyle>
</Style>
<MultiGeometry>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>
	   -2.75350079820942,   51.32096315339923,    0.00000000000000
	   -2.75350105374905,   51.32096340943332,    0.00000000000000
	   -2.75350386780805,   51.32096565175321,    0.00000000000000
	   -2.75350531674653,   51.32096652665259,    0.00000000000000
	   -2.75350900582316,   51.32096827419769,    0.00000000000000
	   -2.75351267876429,   51.32096898776366,    0.00000000000000
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</MultiGeometry>
</Placemark>
</Document>
</kml>

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

This one works too:

<?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>Therion export test</name>
<description>Therion KML export test.</description>
<Placemark>
<Style>
<PolyStyle>
<color>bfffffff</color>
<fill>1</fill>
<outline>0</outline>
</PolyStyle>
</Style>
<MultiGeometry>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>
	   -2.75350079820942,51.32096315339923,0.00000000000000  
-2.75350105374905,51.32096340943332,0.00000000000000  
-2.75350386780805,51.32096565175321,0.00000000000000  
-2.75350531674653,51.32096652665259,0.00000000000000  
-2.75350900582316,51.32096827419769,0.00000000000000  
-2.75351267876429,51.32096898776366,0.00000000000000
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</MultiGeometry>
</Placemark>
</Document>
</kml>

And this one too:

<?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>Therion export test</name>
<description>Therion KML export test.</description>
<Placemark>
<Style>
<PolyStyle>
<color>bfffffff</color>
<fill>1</fill>
<outline>0</outline>
</PolyStyle>
</Style>
<MultiGeometry>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>
	   -2.75350079820942,51.32096315339923,0.00000000000000
	   -2.75350105374905,51.32096340943332,0.00000000000000
	   -2.75350386780805,51.32096565175321,0.00000000000000
	   -2.75350531674653,51.32096652665259,0.00000000000000
	   -2.75350900582316,51.32096827419769,0.00000000000000
	   -2.75351267876429,51.32096898776366,0.00000000000000
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</MultiGeometry>
</Placemark>
</Document>
</kml>





More information about the Therion mailing list