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

Footleg drfootleg at gmail.com
Tue Nov 22 18:30:15 CET 2011


That is an easy fix! I just confirmed this using a text editor by doing a
search and replace for all <space> and <tab> characters in one of my
Therion generated KML files, replacing the whitespace characters with
nothing (excluding the first few lines containing the name and description
elements. This edited file works fine in Google Earth. I'll look forward to
a bug fix in Therion avoiding putting in the white space in due course ;-)

Footleg

On 21 November 2011 08:35, Martin Sluka <martinsluka at mac.com> wrote:

> 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<http://www.opengis.net/kml/2.2>"
> xmlns:gx="http://www.google.**com/kml/ext/2.2<http://www.google.com/kml/ext/2.2>"
> xmlns:kml="http://www.opengis.**net/kml/2.2<http://www.opengis.net/kml/2.2>"
> xmlns:atom="http://www.w3.org/**2005/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<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<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>
>
>
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX**XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX**
> XXXXXXXXXXXX
>
> This one not:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <kml xmlns="http://earth.google.**com/kml/2.0<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>
>
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX**XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX**XXXXXX
>
> This one works too:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <kml xmlns="http://www.opengis.net/**kml/2.2<http://www.opengis.net/kml/2.2>"
> xmlns:gx="http://www.google.**com/kml/ext/2.2<http://www.google.com/kml/ext/2.2>"
> xmlns:kml="http://www.opengis.**net/kml/2.2<http://www.opengis.net/kml/2.2>"
> xmlns:atom="http://www.w3.org/**2005/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<http://www.opengis.net/kml/2.2>"
> xmlns:gx="http://www.google.**com/kml/ext/2.2<http://www.google.com/kml/ext/2.2>"
> xmlns:kml="http://www.opengis.**net/kml/2.2<http://www.opengis.net/kml/2.2>"
> xmlns:atom="http://www.w3.org/**2005/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>
>
>
>
> ______________________________**_________________
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/**mailman/listinfo/therion<http://mailman.speleo.sk/mailman/listinfo/therion>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20111122/54bdee4b/attachment.htm>


More information about the Therion mailing list