Portions of paths disappear when zoomed in

1,630 views
Skip to first unread message

RideToEat

unread,
Mar 3, 2011, 3:24:33 PM3/3/11
to KML Developer Support - Advanced Support for KML
I'd guess this belongs in "Getting Started", not "Advanced Support",
but I got no response there so hope it's not out of line to try my
luck here.

Anyway, I have noticed a behavior of paths that is giving me fits.
At certain zoom levels the path "disappears" as if it were
tunneling through the earth where there Is a rise in topography
between two placemarks.

It does this even if the altitude is set as "clamped to ground". I
can kind-of work around it by setting it "Relative to Ground" and
increasing the elevation, but that has ugly side-effects and
is really more of a bandage than a fix.

The problem is reproducible in Google Earth but not in Google Maps
except in "earth" display mode.

You can see what I am talking about here:
http://ontimezone.com/worktest.kml. Zoom into the "ZoomInHere" point.

Advice on fixes or workarounds greatly appreciated.

RideToEat

unread,
Mar 3, 2011, 4:05:03 PM3/3/11
to KML Developer Support - Advanced Support for KML

StarTraX

unread,
Mar 3, 2011, 5:12:51 PM3/3/11
to KML Developer Support - Advanced Support for KML
Try
<styleUrl>#sn_ylw-pushpin0</styleUrl>
<MultiGeometry>
<LineString>
<tessellate>1</tessellate>
<altitudeMode>clampToGround</altitudeMode>
<coordinates>
tesselate causes the LinString to follow the terrain.

RideToEat

unread,
Mar 4, 2011, 12:41:46 AM3/4/11
to KML Developer Support - Advanced Support for KML
On Mar 3, 4:12 pm, StarTraX wrote:
> Try
>                 <styleUrl>#sn_ylw-pushpin0</styleUrl>
>                 <MultiGeometry>
>                         <LineString>
>                                 <tessellate>1</tessellate>
>                                 <altitudeMode>clampToGround</altitudeMode>
>                                 <coordinates>
> tesselate causes the LinString to follow the terrain.

Thanks much for the advice. I just tried it and did not have any
luck.

See my simplified test case at http://ontimezone.com/linetest.kml
(code also pasted at the bottom of this post). Zoom in to 35.95, -111
and you can see the line start to disappear.

I have no doubt that through ignorance I am missing something simple,
and will be very grateful to be set on the right path.

Cheers,

Steve Jones

PS: The code:

<?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>linetest.kml</name><open>1</open>
<Style id="thisline">
<LineStyle><color>ff0000ff</color><width>3</width></LineStyle>
</Style>
<Placemark><name>a line in the desert</name><styleUrl>#thisline</
styleUrl>
<MultiGeometry>
<tesselate>1</tesselate>
<altitudeMode>clampToGround</altitudeMode>
<LineString><coordinates>-111,36.28 -111,35.55 -111,36.28</
coordinates></LineString>
</MultiGeometry>
</Placemark>
</Document>
</kml>


RideToEat

unread,
Mar 4, 2011, 1:12:55 AM3/4/11
to KML Developer Support - Advanced Support for KML
UPDATE: A little more research has revealed this is a Google Earth
reported bug:
http://code.google.com/p/earth-issues/issues/detail?id=1123

Sorry for the disturbance.

On Mar 3, 11:41 pm, RideToEat wrote:
> See my simplified test case athttp://ontimezone.com/linetest.kml

shannon9585

unread,
Mar 17, 2011, 9:15:52 AM3/17/11
to KML Developer Support - Advanced Support for KML
Have you tried changing your Graphic mode? (From DirectX to OpenGL,
or vice versa)
> > and you can see the line start to disappear.- Hide quoted text -
>
> - Show quoted text -

RideToEat

unread,
Mar 18, 2011, 9:23:17 AM3/18/11
to KML Developer Support - Advanced Support for KML
On Mar 17, 8:15 am, shannon9585 wrote:
> Have you tried changing your Graphic mode?  (From DirectX to OpenGL,
> or vice versa)

I hadn't, but just did now. No difference. I believe it's just a bug
and I need to wait for Google to fix it.

shannon9585

unread,
Apr 25, 2011, 10:55:15 AM4/25/11
to KML Developer Support - Advanced Support for KML
Or add more coordinates?
Reply all
Reply to author
Forward
0 new messages