I've got a little mashup I've been working on in Google Earth/Maps and I'm stuck. The GE and KML Developer support forums have come up dry so I'm hoping someone here has an idea about how I can work it out.

I have created placemarks for several USGS stream gauges in my watershed of interest and linked each placemark's balloon to the webpage of their respective site. On said webpage are GIFs of graphs showing the stream's discharge as recorded by the gauge. These GIFs are dynamically created and update every 15 minutes. So now, everything looks great. Click on the placemark icon, up pops the most recent graph - click on the graph and you're redirected to the main page where you can get a lot more information.

The problem is that each GIF's URL is coded with the date, so every 24 hours the links to the graphs break. Actually there are two dates in the URL one for the day that the data on the chart begins and a second for when it ends. Like so - <YYYYMMDD..YYYYMMDD>. You can customize the graph from the website to display anywhere from 1 to 31 days of data. The default is 7 days and that's what I'd like to show.

So what I need is a bit of script that can either increment the date (and subtract 7 to get the first date) and insert it into a URL, or grab the date from somewhere, format it as YYYMMDD, subtract 7 and create a dynamic URL.

I'm guessing scripts won't work within the GE placemark description boxes themselves (though I don't know), so I may need to setup a static link in the placemark to a page where I've created this dynamic image.


--
David Asbury
GIS Analyst/Cartographer
Center for Ecosystem Management and Restoration
4179 Piedmont Ave. Ste. 325
Oakland, CA 94611
Voice: 510-420-4565 x2
Fax: 510-420-1345
email: asbury at cemar.org
web: cemar.org
_______________________________________________
Geowanking mailing list
[email protected]
http://lists.burri.to/mailman/listinfo/geowanking

Reply via email to