tif download from url reference in kml file

30 views
Skip to first unread message

crust

unread,
Sep 7, 2007, 3:19:54 PM9/7/07
to KML Developer Support - Advanced Support
I have a kml file with a .tif file referenced by a url.
When I clicked on it's placemark, I would get a pop-up
that asked if I wanted to view or download.
Now, I just get an error.

Any ideas?

ManoM

unread,
Sep 7, 2007, 3:42:17 PM9/7/07
to KML Developer Support - Advanced Support
Hi crust,

Can you post that KML file so we can give you feeback?

ManoM

crust

unread,
Sep 8, 2007, 9:36:52 AM9/8/07
to KML Developer Support - Advanced Support
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Folder>
<name>AGICedcftp20070907.kml</name>
<Placemark>
<name>LE7062111000233850</name>
<visibility>1</visibility>
<description><![CDATA[Click blue link for more info<br><br>
<a href="http://edcftp.cr.usgs.gov/pub/edcuser/bdavis/outgoing/
ucdam/LE7062111000233850.jpg">Click to see browse image</a><br><br>
<a href="http://edcftp.cr.usgs.gov/pub/edcuser/bdavis/outgoing/
ucdam/LE7062111000233850.htm">Click to see meta data</a><br><br>
<a href="http://edcftp.cr.usgs.gov/pub/edcuser/bdavis/outgoing/
ucdam/LE7062111000233850.tif">Click to view or download geoTiff</
a><br><br>
]]></description>
<Style>
<LineStyle>
<color>ff7fffff</color>
<width>2</width>
</LineStyle>
<PolyStyle>
<fill>0</fill>
</PolyStyle>
</Style>
<MultiGeometry>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>
172.4987183,-73.3831100,0 165.1738892,-72.9638596,0
166.7933655,-70.9531097,0 173.3415833,-71.3244705,0
172.4987183,-73.3831100,0
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</MultiGeometry>
</Placemark>
</Folder>
</kml>

> > Any ideas?- Hide quoted text -
>
> - Show quoted text -

ManoM

unread,
Sep 10, 2007, 2:04:16 PM9/10/07
to KML Developer Support - Advanced Support
Hi crust,

This page works for me. What version of GE are you using?

ManoM

zawarski

unread,
Sep 11, 2007, 12:02:29 AM9/11/07
to KML Developer Support - Advanced Support
Glad it works for you, can I have you're machine? It does not work for
me (using 4.2.0180.1134). I am having the exact same problem with zip
files. I do not get an error though. What happens with the TIF in this
example, or ZIP files where I first encountered this (BIG) problem, is
instead of presenting a browser "Save as.." (like it used to in the
good old days), GE downloads the file in the background. I can tell
because I see the net traffic. When it completes the transfer, GE acts
like nothing happened. I had to modify my application to detect 4.2
and disable the downloading because of this (removing a large piece of
functionality). To make it worse, Google does not offer the previous
(working) version of 4.1 for download or if they do, it's not obvious.
Had time to add a flight simulator and planetarium, but not regression
check. Nice.

RAZ

> > > - Show quoted text -- Hide quoted text -

zawarski

unread,
Sep 11, 2007, 5:05:05 AM9/11/07
to KML Developer Support - Advanced Support
Did some more digging..

Regarding crust's TIFF KML example, with GE 4.1, when I click on the
TIFF link, a "Save as" box pops up right away. With 4.2, GE downloads
the entire file to the \Local Settings\Temporary Internet Files
\Content.IE5 directory and then displays a "Save as" box. Though I
prefer the 4.1 behavior, I can successfully download the TIFF file
using either GE 4.1 or GE 4.2.

If I modify crust's example, replacing the link to a TIFF file with a
link to a ZIP file, GE 4.1 will again immediately pop up a "Save as"
box when I click on the ZIP file link. But with GE 4.2, when I click
on the link to the ZIP file, it never displays a "Save as" box.
However, the file is downloaded but instead of saving it in the \Local
Settings\Temporary Internet Files\Content.IE5 directory, like it does
the TIFF file, GE 4.2 saves the ZIP file under \Local Settings\Temp
\.kmztmp and renames it with a .kmz extension!

My guess would be that this is an unintended side-effect of the new
media support additions to 4.2. In any case, it's a behavior that
prevents me from being able to use GE 4.2.

Thanks.

RAZ

zawarski

unread,
Sep 11, 2007, 12:08:34 PM9/11/07
to KML Developer Support - Advanced Support
And some more...

With GE 4.1 and 4.2, the behavior is identical (and correct) when
clicking on an Excel (.xls) or Word (.doc) link, the pop-up "Save as"
appears right away. Same for GZipped (.gz) archives.

With GE 4.1, when you click on a "RAR" (.rar) archive file, the pop-up
"Save as" appears. With GE 4.2, the "raw" contents of the file are
displayed as ascii in browser (both internal and external browser).
Same behavior with the more obscure "7ZIP" (.7z) archive file type. In
other words, it is impossible to download these file types with GE
4.2.

So the only "workaround" I have for GE 4.2, is to use "GZip" if I want
to link to archive files to download from links in GE 4.2 produced
HTML?

crust

unread,
Sep 11, 2007, 3:32:58 PM9/11/07
to KML Developer Support - Advanced Support
Thanks for all the info, everybody.
Sorry for being MIA,
was out of contact since last week, ugh!

Anyway, I am running GE 4.2.0181.2634 (beta).

Do I have any options other than GZip?

crust

unread,
Sep 11, 2007, 4:13:12 PM9/11/07
to KML Developer Support - Advanced Support
If we make a change on the server where the tif
(and other files) reside, we can get it to appear,
but only in a new browser window, not
within a panel GE, even when un-checking
Options
General
"Show web results in external browser"

??
And, I liked the option of the pop-up asking
us to save or view....
??

crust

unread,
Sep 11, 2007, 4:14:13 PM9/11/07
to KML Developer Support - Advanced Support
sorry, should have specified the change on the server,
which was to allow additional mime types .....
Reply all
Reply to author
Forward
0 new messages