[Mapserver-users] Can a calculation be done in a MAP template?
blammo
bob.basques at ci.stpaul.mn.us
Mon Feb 23 09:31:00 PST 2004
This is a multi-part message in MIME format.
--------------050204090209090108070305
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
I have this in a output template:
<area shape=polygon href='%linkPrefix%[UTM_X]
[UTM_Y],[COUNTYNAME]%linkSuffix%' coords="[shpxy xf="," transform]">
Right now I get:
%linkPrefix%mapext=491661.2500 4983641.6900%linkSuffix%
I need to convert the UTM_X and UTM_Y centerpoint above into a bounding
box for MAPSERVER request (minx miny maxx maxy)
the output will be needed like this:
%linkPrefix%mapext=311661.25 4837391.69 671661.25
B5129891.69%linkSuffix%
I looked at possibly using the IMGXY with BUFFER, but I don't see how to
use that with non-square aspect ratio for the resulting image. Can
Mapserver be queried by centerpoint, width, height?
My backup to this is to try and parse the above. Not a task I want to
do. At this point.
Thanks
bobb
--------------050204090209090108070305
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body>
I have this in a output template:<br>
<br>
<br>
<area shape=polygon href='%linkPrefix%[UTM_X]
[UTM_Y],[COUNTYNAME]%linkSuffix%' coords="[shpxy xf="," transform]"><br>
<br>
Right now I get:<br>
<blockquote>%linkPrefix%mapext=491661.2500 4983641.6900%linkSuffix%<br>
</blockquote>
I need to convert the UTM_X and UTM_Y centerpoint above into a
bounding box for MAPSERVER request (minx miny maxx maxy)<br>
<br>
the output will be needed like this:<br>
<blockquote>%linkPrefix%mapext=311661.25 4837391.69 671661.25
B5129891.69%linkSuffix%<br>
</blockquote>
<br>
I looked at possibly using the IMGXY with BUFFER, but I don't see how
to use that with non-square aspect ratio for the resulting image. Can
Mapserver be queried by centerpoint, width, height?<br>
<br>
My backup to this is to try and parse the above. Not a task I want to
do. At this point.<br>
<br>
Thanks<br>
<br>
bobb<br>
<br>
<br>
</body>
</html>
--------------050204090209090108070305--
More information about the MapServer-users
mailing list