Problems with example 1.9

Pericles S. Nacionales naci0002 at UMN.EDU
Mon May 15 17:19:23 EDT 2006


This happens because you're calling example 1.9 as a static page.  It 
isn't.  Go back to the online tutorial and see how example 1.9 is 
called: 
http://hypnos.cbs.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-9.map&layer=states&layer=modis
It's not http://hypnos.cbs.umn.edu/tutorial/example1-9.html.  The file 
example1-9.html is an example of MapServer's HTML template. Try calling 
your Example 1.9 again with this URL:
http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/comunas/comunas1_9.map&layer=comunas

-Perry

Andres Mauricio Ramirez wrote:
> Hi list,
>  
> I am trying to do the mapserver tutorial but I have had problems with 
> the example 1.9, I have the next html code:
>  
> <html><head>
> <title>Ejem1_9</title></head>
> <body>
> <img border="1" 
> src="/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/comunas/comunas1_9.map&layer=comunas&mode=map" 
>  >
> <!-- START OF MAPSERVER FORM -->
> <form name="mapserv" method="GET" action="/cgi-bin/mapserv.exe?">
> <!-- HIDDEN MAPSERVER CGI VARIABLES -->
> <input name="map" value="[map]" type="hidden">
> <input name="imgext" value="[mapext]" type="hidden"> 
> <input name="imgxy" value="199.5 149.5" type="hidden">
> <input name="zoom" value="1" type="hidden">
> <input name="mode" value="browse" type="hidden">
> <div align="center">
> <table border="1" cellpadding="0" cellspacing="0">
> <tr>
> <td><!-- THE INTERACTIVE, DYNAMICALLY CREATED MAP -->
> <input type="image" name="img" src="[img]" height="300"  width="400"> </td>
> </tr></table></div></form></body></html>
> The first part, mode map or mode static works fine, the image is showed, 
> but the second part doesn't work, the image is not showed. And when I 
> click on image missed it bring me the next error:
>  
> msEvalRegex(): Regular expression error. String ([map]) failed 
> expression test.
>  
> I don't know what happen, please help me, I thought that problems was 
> Fedora core 4 and I changed to windows, in both I have the same problem.
>  
> Regards,
>  
> Mauricio
> 
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> Regístrate ya - http://correo.espanol.yahoo.com/
> 



More information about the mapserver-users mailing list