xml - KML Linestring plotting problems -
i have xml file coordinates. xml transformed throw xslt file kml file (only placemarks). i've tested on google earth , it's working fine. now, i'm trying use same coordinates use placemarks, in order plot linestring connects placemarks, however, linestring not being correctly plotted, can see in image below. can see, seems linestring going , forward. idea of might be?
the xslt code i'm using creating linestring following
<style id="rangecolour"> <linestyle><color>660000ff</color><width>1</width></linestyle> <polystyle><color>660000ff</color></polystyle> </style> <style id="linecolour"> <linestyle><color>660000ff</color><width>3</width></linestyle> </style> <placemark> <name>distribution/range</name> <description></description> <styleurl>#linecolour</styleurl> <linestring> <tessellate>1</tessellate> <altitudemode>clamptoground</altitudemode> <coordinates> <xsl:for-each select="xs:experience/xs:data/xs:provider"> <xsl:value-of select="xs:longitude"/>,<xsl:value-of select="xs:latitude"/>,<xsl:value-of select="xs:altitude"/><xsl:text> </xsl:text> </xsl:for-each> </coordinates> </linestring> </placemark>
and resulting kml part linestring following one:
<style id="rangecolour"> <linestyle> <color>660000ff</color> <width>1</width> </linestyle> <polystyle> <color>660000ff</color> </polystyle> </style> <style id="linecolour"> <linestyle> <color>660000ff</color> <width>3</width> </linestyle> </style> <placemark> <name>distribution/range</name> <description/> <styleurl>#linecolour</styleurl> <linestring> <tessellate>1</tessellate> <altitudemode>clamptoground</altitudemode> <coordinates>-9.275993,38.757603,210.2 -9.276027,38.757572,228.1 ... -9.257803,38.75908,159.5 -9.256753,38.75883,159.5 </coordinates> </linestring> </placemark>
many usefull help.
the linestring drawn in order of coordinates provided, need re-order coordinates linestring drawn how you'd like.
without seeing actual coordinates in kml, guess.
Comments
Post a Comment