[Mapserver-users] Newbie question

Jonathan Rizzo jrizzo at Langan.com
Mon Jul 21 06:43:31 PDT 2003


This is a multi-part message in MIME format.

------_=_NextPart_001_01C34F8E.1278882E
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,

Sorry to bombard the list with newbie questions, but I am still having a
bit of trouble getting the demo to work.  Thank you to Suddhasheel Ghosh
for his offline help in resolving my first problem.  Turns out that I
had forgotten to give the demo directory script execution permission.

I am now able to initialize the demo, and I can see the map & all of the
controls.  However, when I click the "Refresh/Query" button, I get the
famous "msLoadMap(): Unable to access file. (C:\Data\msdemo\demo.map)".
This is particularly curious because the path is correct.=20

I believe that I have followed all of the steps that are in the demo
instructions.  Here is the query string in the browser that displays
this error message:
http://jrizzo/Scripts/mapserv.exe?mode=3Dbrowse&layer=3Dlakespy2&layer=3D=
dlgst
ln2&zoomdir=3D0&zoomsize=3D2&imgxy=3D299.5+299.5&imgext=3D388107.634400+5=
200301.
166444+500896.339020+5313063.023754&map=3DC%3A%5CData%5Cmsdemo%5Cdemo.map=
&
savequery=3Dtrue&program=3D%2FScripts%2Fmapserv.exe&map_web_imagepath=3DC=
%3A%5
Cinetpub%5Cwwwroot%5Ctmp%5C&map_web_imageurl=3D%2Ftmp%2F

This query says that the map is "C:\Data\msdemo\demo.map" the program is
"/Scripts/mapserv.exe" the image page is "C:\inetpub\wwwroot\tmp" and
the image url is "/tmp".  I believe that these are correct.  What else
could cause this message?  I have already set the demo directory to have
read & execute permissions, the scripts directory has read & execute &
tmp has read & write.  Again, the map appears initially, but throws this
error when I attempt to submit a query.  I found a reference to this
problem in the archive, & following that thread I tried setting the
SHAPEPATH to "C:\Data\msdemo\Data" but that did not seem to help.

I appreciate any advice/assistance you can offer.

Thanks!

Jon Rizzo


------_=_NextPart_001_01C34F8E.1278882E
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.5762.3">
<TITLE>Newbie question</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hello,</FONT>
<BR>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Sorry to bombard the list with newbie =
questions, but I am still having a bit of trouble getting the demo to =
work.  Thank you to Suddhasheel Ghosh for his offline help in =
resolving my first problem.  Turns out that I had forgotten to give =
the demo directory script execution permission.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I am now able to initialize the demo, =
and I can see the map & all of the controls.  However, when I =
click the "Refresh/Query" button, I get the famous =
"msLoadMap(): Unable to access file. =
(C:\Data\msdemo\demo.map)".  This is particularly curious =
because the path is correct. </FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I believe that I have followed all of =
the steps that are in the demo instructions.  Here is the query =
string in the browser that displays this error message:</FONT></P>

<P><A =
HREF=3D"http://jrizzo/Scripts/mapserv.exe?mode=3Dbrowse&layer=3Dlakes=
py2&layer=3Ddlgstln2&zoomdir=3D0&zoomsize=3D2&imgxy=3D299=
.5+299.5&imgext=3D388107.634400+5200301.166444+500896.339020+5313063.=
023754&map=3DC%3A%5CData%5Cmsdemo%5Cdemo.map&savequery=3Dtrue&amp=
;program=3D%2FScripts%2Fmapserv.exe&map_web_imagepath=3DC%3A%5Cinetpu=
b%5Cwwwroot%5Ctmp%5C&map_web_imageurl=3D%2Ftmp%2F"><U><FONT =
COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">http://jrizzo/Scripts/mapserv.exe?mode=3Dbrowse&layer=3D=
lakespy2&layer=3Ddlgstln2&zoomdir=3D0&zoomsize=3D2&imgxy=3D=
299.5+299.5&imgext=3D388107.634400+5200301.166444+500896.339020+53130=
63.023754&map=3DC%3A%5CData%5Cmsdemo%5Cdemo.map&savequery=3Dtrue&=
amp;program=3D%2FScripts%2Fmapserv.exe&map_web_imagepath=3DC%3A%5Cine=
tpub%5Cwwwroot%5Ctmp%5C&map_web_imageurl=3D%2Ftmp%2F</FONT></U></A></=
P>

<P><FONT SIZE=3D2 FACE=3D"Arial">This query says that the map is =
"C:\Data\msdemo\demo.map" the program is =
"/Scripts/mapserv.exe" the image page is =
"C:\inetpub\wwwroot\tmp" and the image url is =
"/tmp".  I believe that these are correct.  What =
else could cause this message?  I have already set the demo =
directory to have read & execute permissions, the scripts directory =
has read & execute & tmp has read & write.  Again, the =
map appears initially, but throws this error when I attempt to submit a =
query.  I found a reference to this problem in the archive, & =
following that thread I tried setting the SHAPEPATH to =
"C:\Data\msdemo\Data" but that did not seem to =
help.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I appreciate any advice/assistance you =
can offer.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks!</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Jon Rizzo</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C34F8E.1278882E--



More information about the MapServer-users mailing list