[Xastir] Weather RADAR
Curt, WE7U
archer at eskimo.com
Tue Jul 3 15:26:38 EDT 2007
On Tue, 3 Jul 2007, Gerry Creager wrote:
> Differences in how they're served out. WMS is a web-service while
> snagging USRadar is a wget snag. We could even tweak WMSRadar to snag
> the image trimmed to user requirements instead of getting the whole thing
You mean like this?
--------------------------------------------------------
// This specifies a bounding box based on square pixels.
xastir_snprintf(tmpstr, sizeof(tmpstr),
"&BBOX=%8.5f,%7.5f,%8.5f,%7.5f",
left, // Lower left
bottom, // Lower left
right, // Upper right
top); // Upper right
strncat (WMStmp, tmpstr, sizeof(WMStmp) - strlen(WMStmp));
xastir_snprintf(tmpstr, sizeof(tmpstr), "&HEIGHT=%d", geo_image_height);
strncat (WMStmp, tmpstr, sizeof(WMStmp) - strlen(WMStmp));
xastir_snprintf(tmpstr, sizeof(tmpstr), "&WIDTH=%d", geo_image_width);
strncat (WMStmp, tmpstr, sizeof(WMStmp) - strlen(WMStmp));
--------------------------------------------------------
Guess what? We already do!
--
Curt, WE7U. APRS Client Comparisons: http://www.eskimo.com/~archer
"Lotto: A tax on people who are bad at math." -- unknown
"Windows: Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me: I picked the coordinate system!"
More information about the Xastir
mailing list