"map-mode" vers. "browse-mode"

K. Lessing umn at KARSTEN-LESSING.DE
Tue Aug 17 11:33:18 EDT 2004


Dear List,

my name is Karsten Lessing. This is my first posting to this list, I am
not sure if it goes without saying to introduce oneself here ... so I
will make that part short:
I studied geography with a main fokus on geoinformatics and remote
sensing. Since a couple of days I am trying to get Mapserver 4.2.2
running on SuSE 9.1 with Apache2.

Therefore I installed Apache2 and MapServer locally. Apache and
MapServer themself are working fine: The start page of Apache can be
displayed with the URL: http://localhost/
MapServers typical error answer: "No query information to decode.
QUERY_STRING is set, but empty" is displayed.
The mapserver is running in the directory: /srv/www/cgi-bin

I built a .map file (baumklassen.map) and a .html template file
(erstes_template.html)
The code of the .map file is:

MAP
NAME SoSo
SHAPEPATH "/srv/www/htdocs/daten"
EXTENT 22 -30 31 -34
STATUS ON
SIZE 300 300
WEB
TEMPLATE /srv/www/htdocs/erstes_template.html
IMAGEPATH /srv/www/htdocs/tmp/
IMAGEURL tmp
END
LAYER
NAME "vegetation"
DATA "vege"
STATUS DEFAULT
TYPE polygon
CLASS
COLOR 250 45 67
END
END
END


The code of the .html template is:

<html>
<head>
<title>das erste Template</title>
</head>
<body><body bgcolor="#FBECA0">
<table>
<td width="700" height="700" colspan="0" rowspan="0" align="center"
valign="middle" bgcolor="#205B8D">

<p><img src="[img]"></p>

</td>
</table>
</body>
</html>

Both are stored in the directory: srv/www/htdocs/
Further more I created a "tmp" directory under /srv/www/htdocs/ to store
all temporary built pictures in.

Following URL string displays the data as a picture correctly:
http://localhost/cgi-bin/mapserv40?map=/srv/www/htdocs/baumklassen.map&mode=map

Folling URL (just with the "€žmode" difference)
http://localhost/cgi-bin/mapserv40?map=/srv/www/htdocs/baumklassen.map&mode=browse
displays the contents of the .html file (table background color, etc.)
but not the mapdata.
Therefore just an icon is displayed which indicates that anything should
be in this place!

Each time activating the MapServer with the second URL string a picture
is stored locally in the "tmp" directory
- but obviously, it can not be displayed in the .html file.

Does anybody have an idea why ?
I also downloaded the whole MapServer tutorial 4.0 from:
http://terrasip.gis.umn.edu/projects/tutorial/
and installed it locally (This is also the reason why my mapserver is
called "mapserv40" )
As in above described example everthing is fine up to chapter 1.9. In
chapter 1.9 the first picture which is generated in "map"-mode is
displayed, but not the second one which is generated in "browse"-mode !!!

I already assumed that it could be a authorisation problem. Therefore
gave each directory: srv, www, cgi-bin, htdocs, daten, tmp and each
above mentioned files all rights with "€žchmod a+rwx ..." (I know, this
can not be a solution ... but just to leave no doupts i did it in this
all-embracing way.)

Does anybody have a clue what the answer to my problem could be? Is it
just an incomplete .html coding or does it have anything to do with the
Apache webserver ...?

best regards
karsten



More information about the mapserver-users mailing list