David Asbury wrote:
> 
> 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,

Either implement a redirect from "current.gif" to "YYYYMMDD.gif" in the
web server (mod_rewrite and a perl script, along with appropriate
caching headers) or make a symbolic link on the filesystem at the time
the GIF is written.

Cheers,
Sean

_______________________________________________
Geowanking mailing list
[email protected]
http://lists.burri.to/mailman/listinfo/geowanking

Reply via email to