Re[2]: Generating weather maps
Brought to you by:
iridium
From: Jonas K. <me...@j0...> - 2004-03-05 10:39:56
|
Hello, > Have the HTML page do the query, and send the data in the URL to the map > generate script. Caching this is *trivial* with the Cache::Lite module. > [snip] Thanks, I will try this. >>>One simple thing I'd always thought would look nice was a worldmap with >>>every METAR station pinpointed. ImageMap to select a country, then show >>>(for example) your country weather map, and image-map to get detailed >>>METAR report. >> Nice idea. World map generation can also be done with the script I >> use. We also need positions for every country, so it would >> even be possible to generate the ImageMap to select a country >> dynamically. > You mean simply Lat/Long for each station? I've been looking in to that, > (checkout my earlier posts in the archives) we can get the data easily > (I just need to get my act together and clean it up and thunk it into > the METAR station table) No, we also need the positions of the upper left corner and the lower right corner of the map in addition to the lat/long-data for each station. Perhaps we could create a new table pw_countries (cc, country, min_lat, max_lat, min_long, max_long) to store this information. pw_stations could then be reduced to pw_stations(icao, cc). I don't know whether phpWeather uses the country field from pw_stations. Cu Jonas |