Yes this is due to a change in the way variables must be expressed in
CGI MapServer (http://mapserver.gis.umn.edu/development/rfc/ms-rfc-31/).
There is also notes on this in the MIGRATION_GUIDE.txt in the
MapServer source.
However I also had a difficult time getting all of my CGI viewers to
work with these changes. I've attached one of my simple CGI viewers
that now works with 5.0, so you can follow that. For sure one thing
changed is that the variables "map_web_imageurl" and "map_web_imagepath"
have been replaced with "map_web" (see my example). But hopefully other
developers can explain this better than I can.
--
jeff
Vishal Nagpal wrote:
I have reinstalled the Fedora and mapserver 5.0.0 with the working set of
the mapfile,
index and template. I am not sure if it has anything to do with the new version.
I am getting the following error.
loadWeb(): Unknown identifier. Parsing error near
(/usr/local/apache2/htdocs/tmp):(line 1)
I suspect it has something to with the index.html file initiating the call.
Please help
Extract of index.html file is
<input type="hidden" name="map"
value="/usr/local/apache2/htdocs/raster/dgn.map">
<input type="hidden" name="program" value="cgi-bin/mapserv">
<input type="hidden" name="root" value="/raster">
<input type="hidden" name="map_web_imagepath"
value="/usr/local/apache2/htdocs/tmp">
<input type="hidden" name="map_web_imageurl" value="/tmp">
Title: viewer
CGI Viewer
|
Powered by MapServer |
![]() |
|
MapServer Scale 1:[scale] |
|
Browse map
Query feature
Query multiple features
Zoom In
Zoom Out
Pan
Zoom Size
|
Legend
|
[legend]
|
|
|
Title: viewer
CGI Data Viewer
Click on the initialize button to start the demo.
|