MapServer 4.4.1 Demo
Lisi, Christine
lisi at MYDELRAYBEACH.COM
Wed Mar 9 14:39:19 PST 2005
OK, Brent! It works now. I don't understand what is so different?
Maybe you can shed some light. Thank you so much! Thanks to everyone
who helped on this! My head is pounding!
Christine Lisi
Application Specialist
Management Information Systems * City of Delray Beach * 100 NW First
Avenue, Delray Beach, FL 33444
Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Brent Fraser
Sent: Wednesday, March 09, 2005 5:09 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
Christine,
Here's what editable portions of your index.html file should look
like:
:
<!-- EDIT THE FORM ACTION -->
<form name="demo" method="GET" action="/cgi-bin/mapserv.exe"
onSubmit="submit_form()">
:
<!-- EDIT THESE HIDDEN VARIABLES -->
<input type="hidden" name="map"
value="/inetpub/wwwroot/workshop/itasca.map">
<input type="hidden" name="program" value="/cgi-bin/mapserv.exe">
<input type="hidden" name="root" value="/workshop">
<input type="hidden" name="map_web_imagepath"
value="/inetpub/wwwroot/workshop/tmp/">
<input type="hidden" name="map_web_imageurl"
value="/workshop/tmp/">
Note the forward slashes and lack of drive letters. Also note that
map_web_imageurl is relative to "web root" (C:\inetpub\wwwroot) while
map_web_imagepath is relative to file system root (C:)
Does this work on your server?
Brent
----- Original Message -----
From: "Lisi, Christine" <lisi at MYDELRAYBEACH.COM>
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Wednesday, March 09, 2005 2:37 PM
Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
I'm really struggling here. I about at my wits end. I tried every
which path. The only way I get a map at all is if I use the full path
of c:\... to point to the map file and it only works on the local
server. Maybe I have a rights issue? Can you share with me your rights
(NTFS and IIS) on your mining folder?
Christine Lisi
Application Specialist
Management Information Systems * City of Delray Beach * 100 NW First
Avenue, Delray Beach, FL 33444
Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Ken Lord
Sent: Wednesday, March 09, 2005 3:43 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
Great!
I'm not a contributor to mapserver code etc, so I'm glad I was able to
give a little back by helping you make it work.
I have setup mapserver to run as an intranet application, its not too
tricky, and the great thing is that over a LAN, it will run amazingly
fast.
In your index.html file, and your .map file (and anywhere else if
needed) you need to change some web addresses to point at the local
network IP address of the computer hosting mapserver. Here's the
setttings I used:
.
.
<input type="hidden" name="program"
value="http://192.168.1.103/cgi-bin/mapserv.exe">
<input type="hidden" name="map_web_imageurl"
value="http://192.168.1.103/Mining/temp/">
.
.
and in the map file..
IMAGEURL "http://192.168.1.103/Mining/temp/"
Then just view the index.html file in your webbrowser using the
appropriate address http://192....../yourfolders/index.html
The 192 domain is reserved for internal networks, anyone trying to get
to the application from outside your network will just get an error
since that address would point them to a machine on their own internal
network if it exists.
I'm no expert on network things but this worked for me. If there's
any important considerations I've overlooked, hopefully someone else
will add them.
Cheers,
Ken Lord
Vancouver BC
On Wed, 9 Mar 2005 15:19:31 -0500, Lisi, Christine
<lisi at mydelraybeach.com> wrote:
>
>
> This worked, Ken, so thank you SOOOO much. It works when I run it
from the
> web server. But here's my dilemma now. I am not an HTML programmer
and I
> need to know what syntax to use in the INDEX.HTML file so that this
demo is
> available INTERNALLY over the web. If I use the full paths in the
> INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the
error
> that the map cannot be found. Can you tell me the syntax to use for
the
> paths in this section of the HTML file:
>
>
>
> <!-- EDIT THESE HIDDEN VARIABLES -->
>
> <input type="hidden" name="map"
> value="\\esgisrv001\inetpub\wwwroot\workshop\itasca.map">
>
> <input type="hidden" name="program"
> value="\\esgisrv001\inetpub\wwwroot\cgi-bin\mapserv.exe">
>
> <input type="hidden" name="root"
> value="\\esgisrv001\inetpub\wwwroot\workshop\">
>
> <input type="hidden" name="map_web_imagepath"
> value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\">
>
> <input type="hidden" name="map_web_imageurl"
> value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\">
>
>
>
> Your help is GREATLY appreciated.
>
>
>
> Thanks.
>
>
>
> Christine Lisi
>
> Application Specialist
>
>
>
> Management Information Systems * City of Delray Beach * 100 NW First
Avenue,
> Delray Beach, FL 33444
>
>
>
> Phone, 561-243-7142 * Fax, 561-243-7166 * eMail,
Lisi at MyDelrayBeach.com
>
>
>
>
>
>
> -----Original Message-----
> From: Ken Lord [mailto:kenlord at gmail.com]
> Sent: Wednesday, March 09, 2005 3:09 PM
> To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu
> Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
>
>
>
> Hi Christine,
>
>
>
> Yes, thats right. That made it work for me on both a windows 2000 and
>
> windows XP Pro SP1 installation.
>
>
>
> There's no harm in leaving both the xerces dll's incase you have some
>
> other application using the newer version.
>
>
>
> Cheers,
>
> Ken Lord
>
> Vancouver BC
>
>
>
> On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine
>
> <lisi at mydelraybeach.com> wrote:
>
> > Thanks for this information, Ken. I just want to make sure I've got
>
> > this right. The download includes many files, but you say to just
>
> > replace the mapserv.exe and any .dll's included in the download from
>
> > maptools.org? If this is correct then I will be replacing the
following
>
> > files in my existing MapServer folder:
>
> >
>
> > Mapserv.exe
>
> > Gdal12.dll
>
> > NCScnet.dll
>
> > NCSEcw.dll
>
> > NCSEcwC.dll
>
> > NCSUtil.dll
>
> > Libcurl.dll
>
> > Libpq.dll
>
> > Pdflib.dll
>
> > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll)
>
> >
>
> >
>
> > Christine Lisi
>
> > Application Specialist
>
> >
>
> > Management Information Systems * City of Delray Beach * 100 NW First
>
> > Avenue, Delray Beach, FL 33444
>
> >
>
> > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail,
Lisi at MyDelrayBeach.com
>
> >
>
> > -----Original Message-----
>
> > From: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
>
> > Behalf Of Ken Lord
>
> > Sent: Wednesday, March 09, 2005 12:33 PM
>
> > To: MAPSERVER-USERS at LISTS.UMN.EDU
>
> > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
>
> >
>
> > Hi!
>
> >
>
> > This problem has come up a few times in the last couple weeks for
>
> > several people. I worked through it myself.
>
> >
>
> > It seems to be a problem with how the current windows binaries
>
> > available from the mapserver homepage were compiled.
>
> >
>
> > Download mapserver 4.4.1 from www.maptools.org/dl
>
> >
>
> > Use the mapserv.exe and the .dll'sthat are contained within the zip
>
> > files that are included in that package.
>
> >
>
> > This version appears to have been compiled so that it is less
>
> > dependant on external dll's, using a larger exe and fewer dll's.
>
> >
>
> > ... and it works.
>
> >
>
> > So, this is the 3rd or 4th time this has come up on the list. Think
>
> > it's time to take down/replace the current windows binaries
available
>
> > at the mapserver homepage?
>
> >
>
> > Cheers,
>
> > Ken Lord
>
> > Vancouver BC
>
> >
>
> > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine
>
> > <lisi at mydelraybeach.com> wrote:
>
> > >
>
> > >
>
> > > I ran the following command at the command prompt:
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > When I pressed Enter it hesitated for about 5 seconds and returned
me
>
> > back
>
> > > to a command prompt. If MapServer generated an html file, where
would
>
> > it
>
> > > put it?
>
> > >
>
> > >
>
> > >
>
> > > I hadn't applied the WRITE access in IIS, but instead applied it
in
>
> > the NTFS
>
> > > file system. I now have applied the WRITE access in IIS (see
below):
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > I still get the same error.
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > Christine Lisi
>
> > > Application Specialist
>
> > >
>
> > > Management Information Systems * City of Delray Beach * 100 NW
First
>
> > Avenue,
>
> > > Delray Beach, FL 33444
>
> > >
>
> > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail,
>
> > Lisi at MyDelrayBeach.com
>
> > > ________________________________
>
> > >
>
> > >
>
> > > From: Brent Fraser [mailto:bfraser at geoanalytic.com]
>
> > > Sent: Wednesday, March 09, 2005 11:47 AM
>
> > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU
>
> > >
>
> > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
>
> > >
>
> > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > Christine,
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > Did mapserv generate html when you executed it from the command
>
> > prompt?
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > The fact that mapserver didn't crash leads me to believe the
problem
>
> > is with
>
> > > the IIS configuration of the workshop demo directory, likely write
>
> > access to
>
> > > the tmp directory. Did you set write access for the tmp directory
>
> > using IIS
>
> > > Manager?
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > Brent
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > ----- Original Message -----
>
> > >
>
> > >
>
> > > From: Lisi, Christine
>
> > >
>
> > >
>
> > > To: MAPSERVER-USERS at LISTS.UMN.EDU
>
> > >
>
> > >
>
> > > Sent: Wednesday, March 09, 2005 9:31 AM
>
> > >
>
> > >
>
> > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > I ran the mapserv QUERY_STRING and it returned to a command prompt
>
> > with no
>
> > > errors. I guess I can assume that no .dll's are missing. Someone
>
> > else on
>
> > > the list mentioned using forward slashes instead of backslashes in
the
>
> > html
>
> > > file variables. I will try that. If you have any input on that I
>
> > would
>
> > > welcome it.
>
> > >
>
> > >
>
> > >
>
> > > Thanks, Brent.
>
> > >
>
> > >
>
> > > Christine Lisi
>
> > > Application Specialist
>
> > >
>
> > > Management Information Systems * City of Delray Beach * 100 NW
First
>
> > Avenue,
>
> > > Delray Beach, FL 33444
>
> > >
>
> > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail,
>
> > Lisi at MyDelrayBeach.com
>
> > > ________________________________
>
> > >
>
> > >
>
> > > From: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]
>
> > On
>
> > > Behalf Of Brent Fraser
>
> > > Sent: Wednesday, March 09, 2005 11:16 AM
>
> > > To: MAPSERVER-USERS at LISTS.UMN.EDU
>
> > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > Christine,
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > In your first example it appears that mapserver was reading the
map
>
> > file
>
> > > but crashed for some reason. In the second example it couldn't
find
>
> > the map
>
> > > file because it expects a file system path not a url. So the
first
>
> > example
>
> > > is good, but the second is not (mapserver just handled the second
case
>
> > a lot
>
> > > better!).
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > The crash is likely due to a missing dll required by mapserver.
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > You can run mapserv.exe from the command line to get messages
about
>
> > missing
>
> > > dlls. Here are the steps:
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > 1. Open a command prompt window on your server
>
> > >
>
> > >
>
> > > 2. cd to the location of mapserv.exe
>
> > >
>
> > >
>
> > > 3. type in
>
> > >
>
> > >
>
> > > mapserv QUERY_STRING="
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > 4. Copy the query string from the your browser address bar and
paste
>
> > it
>
> > > into the command window. The query string should look like:
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> >
layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork
>
> >
shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_
>
> >
web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m
>
> > ap_web_template=itasca_basic.html
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > 5. Add a double quote to the end of the string and press return.
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > If a dll is missing, the operating system will show a dialog box
>
> > giving the
>
> > > name of the dll.
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > Brent Fraser
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > ----- Original Message -----
>
> > >
>
> > >
>
> > > From: Lisi, Christine
>
> > >
>
> > >
>
> > > To: MAPSERVER-USERS at LISTS.UMN.EDU
>
> > >
>
> > >
>
> > > Sent: Wednesday, March 09, 2005 8:31 AM
>
> > >
>
> > >
>
> > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
>
> > >
>
> > >
>
> > >
>
> > >
>
> > > I've installed MapServer and successfully received the "No query
>
> > information
>
> > > to decode. QUERY_STRING is set, but empty." message. Now I am
trying
>
> > to
>
> > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6,
>
> > MapServer
>
> > > 4.4.1)
>
> > >
>
> > >
>
> > >
>
> > > Here are the steps I have taken:
>
> > >
>
> > >
>
> > >
>
> > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot
>
> > >
>
> > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop
and
>
> > gave
>
> > > the IUSR account Read/Write/Execute permissions
>
> > >
>
> > > 3. Set default page to INDEX.HTML in IIS
>
> > >
>
> > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and
>
> > > EXECUTABLES.
>
> > >
>
> > > 5. Edited INDEX.HTML file as follows (edits in bold):
>
> > >
>
> > >
>
> > >
>
> > > <!-- EDIT THE FORM ACTION -->
>
> > >
>
> > > <form name="demo" method="GET"
>
> > > action="http:\\esgisrv001\cgi-bin\mapserv.exe"
>
> > onSubmit="submit_form()">
>
> > >
>
> > >
>
> > >
>
> > > <input type="hidden" name="layer" value="lakespy2">
>
> > >
>
> > > <input type="hidden" name="layer" value="dlgstln2">
>
> > >
>
> > > <input type="hidden" name="zoomsize" value=2>
>
> > >
>
> > >
>
> > >
>
> > > <!-- EDIT THESE HIDDEN VARIABLES -->
>
> > >
>
> > > <input type="hidden" name="map"
>
> > > value="C:\Inetpub\wwwroot\workshop\itasca.map">
>
> > >
>
> > > <input type="hidden" name="program"
>
> > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe">
>
> > >
>
> > > <input type="hidden" name="root"
>
> > value="C:\Inetpub\wwwroot\workshop\">
>
> > >
>
> > > <input type="hidden" name="map_web_imagepath"
>
> > > value="C:\Inetpub\wwwroot\workshop\tmp\">
>
> > >
>
> > > <input type="hidden" name="map_web_imageurl"
>
> > > value="C:\Inetpub\wwwroot\workshop\tmp\">
>
> > >
>
> > >
>
> > >
>
> > > I get the MapServer Itasca Application initial screen, but when I
>
> > click to
>
> > > initialize the BASIC APPLICATION using these variables I receive
the
>
> > > following error:
>
> > >
>
> > > CGI Error
>
> > >
>
> > > The specified CGI application misbehaved by not returning a
complete
>
> > set of
>
> > > HTTP headers.
>
> > >
>
> > >
>
> > >
>
> > > 6. Edited INDEX.HTML file as follows (edits in bold):
>
> > >
>
> > >
>
> > >
>
> > > <!-- EDIT THE FORM ACTION -->
>
> > >
>
> > > <form name="demo" method="GET"
>
> > > action="http:\\esgisrv001\cgi-bin\mapserv.exe"
>
> > onSubmit="submit_form()">
>
> > >
>
> > >
>
> > >
>
> > > <input type="hidden" name="layer" value="lakespy2">
>
> > >
>
> > > <input type="hidden" name="layer" value="dlgstln2">
>
> > >
>
> > > <input type="hidden" name="zoomsize" value=2>
>
> > >
>
> > >
>
> > >
>
> > > <!-- EDIT THESE HIDDEN VARIABLES -->
>
> > >
>
> > > <input type="hidden" name="map"
>
> > > value="http:\\esgisrv001\workshop\itasca.map">
>
> > >
>
> > > <input type="hidden" name="program"
>
> > > value="http:\\esgisrv001\cgi-bin\mapserv.exe">
>
> > >
>
> > > <input type="hidden" name="root"
>
> > value="http:\\esgisrv001\workshop\">
>
> > >
>
> > > <input type="hidden" name="map_web_imagepath"
>
> > > value="http:\\esgisrv001\workshop\tmp\">
>
> > >
>
> > > <input type="hidden" name="map_web_imageurl"
>
> > > value="http:\\esgisrv001\workshop\tmp\">
>
> > >
>
> > >
>
> > >
>
> > > I get the MapServer Itasca Application initial screen, but when I
>
> > click to
>
> > > initialize the BASIC APPLICATION using these variables I receive
the
>
> > > following error:
>
> > >
>
> > >
>
> > >
>
> > > msLoadMap(): Unable to access file.
>
> > (http:\\esgisrv001\workshop\itasca.map)
>
> > >
>
> > >
>
> > >
>
> > > Can anyone help?
>
> > >
>
> > >
>
> > >
>
> > > Thanks.
>
> > >
>
> > > Christine Lisi
>
> > > Application Specialist
>
> > >
>
> > > Management Information Systems * City of Delray Beach * 100 NW
First
>
> > Avenue,
>
> > > Delray Beach, FL 33444
>
> > >
>
> > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail,
>
> > Lisi at MyDelrayBeach.com
>
> > >
>
More information about the MapServer-users
mailing list