MapServer 4.4.1 Demo

Lisi, Christine lisi at MYDELRAYBEACH.COM
Wed Mar 9 12:21:06 PST 2005


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

> >

> >

> 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050309/efa205c6/attachment.htm>


More information about the MapServer-users mailing list