example1-9 doesn't work in browse mode
Sa o Celarc
saso.celarc at HERMES-PLUS.SI
Thu Dec 9 00:46:43 PST 2004
It seems there is problem with setting value to [map], [mapext], [img]
variables.
When I use starting html page where these variables are already set, the
mechanism works fine. I did this by changing form definition for starting page:
<form name="mapserv" method="GET" action="/cgi-bin/mapserv">
<!-- HIDDEN MAPSERVER CGI VARIABLES -->
<input type="hidden" name="map"
value="D:/oracle/ora92/Apache/Apache/htdocs/mapserver/tutorial/example1-9.map">
<input type="hidden" name="imgext" value="278114.562500
-577379.835000 1502011.562500 340542.915000">
<input type="hidden" name="imgxy" value="199.5 149.5">
<input type="hidden" name="zoom" value="2">
<input type="hidden" name="mode" value="browse">
<div align="center">
<table border="1" cellpadding="0" cellspacing="0">
<tr><td>
<!-- THE INTERACTIVE, DYNAMICALLY CREATED MAP -->
<input type="image" name="img"
src="/mapserver/tutorial/tmp/PR19_11025805883100.png" width="400" height="300">
</td></tr>
</table>
</div>
</form>
In case of original form definiton:
<form name="mapserv" method="GET" action="/cgi-bin/mapserv">
<!-- HIDDEN MAPSERVER CGI VARIABLES -->
<input type="hidden" name="map" value="[map]">
<input type="hidden" name="imgext" value="[mapext]">
<input type="hidden" name="imgxy" value="199.5 149.5">
<input type="hidden" name="zoom" value="2">
<input type="hidden" name="mode" value="browse">
<div align="center">
<table border="1" cellpadding="0" cellspacing="0">
<tr><td>
<!-- THE INTERACTIVE, DYNAMICALLY CREATED MAP -->
<input type="image" name="img" src="[img]" width="400" height="300">
</td></tr>
</table>
</div>
</form>
i get : "msEvalRegex(): Regular expression error. String ([map]) failed
expression test. "
I think, that also with original form, the variables should get values from
somewhere !
Do you have any idea, what is wrong here ?
Regards,
Sao Celarc
More information about the MapServer-users
mailing list