[Mapserver-users] Relative Paths vs. Absolute Paths
Frieso ter Haseborg
ter-haseborg at sf-datentechnik.de
Thu Oct 16 00:32:42 PDT 2003
Hi,
try to use a absolute path on IMAGEPATH. Let's assume your data shall be
stored in C:\Inetpub\wwwroot\tmp. Then your mapfile should look like
this
IMAGEPATH 'c:/Inetpub/wwwroot/tmp/'
IMAGEURL '/tmp/'
Actually IMAGEPATH could be used relative to the directory the mapfile
is stored in, but relative path in gives a lot of trouble with reference
or legend, there are several threads about this - conclusion: use an
absolute one here!
IMAGEURL has to be relative to wwwroot.
HTH,
Frieso ter Haseborg
- Software Development -
--
--------------------------------------------------
S&F Datentechnik GmbH&Co.KG
Reimersstr. 41b
26789 Leer, Germany
>-----Original Message-----
>From: McNeil, Todd W. (TMCNEIL) [mailto:TMCNEIL at arinc.com]
>Sent: Thursday, October 16, 2003 12:53 AM
>To: 'mapserver-users at lists.gis.umn.edu'
>Subject: [Mapserver-users] Relative Paths vs. Absolute Paths
>
>
>Hi all,
>
>I sent out an email about this last week, but never got a
>reply. I am going
>through Section 3 of the MapServer 3.5 Tutorial and am having
>the toughest
>time figuring out why my html page does not show the legend,
>reference and
>the map images. This is my first time using MS, so I am at
>the point of
>giving up on this because of this seemingly simple path
>problem that I have
>no solution for. I've used the IE > View > Source menu option
>to determine
>where the images maybe stored in the online tutorial on the
>MapServer web
>page. I see this written in the html:
>
>Map Image: <input type="image" name="img"
>src="/tmp/S3EX1106625668213828.gif" border="0">
>
>Legend Image: <img src="/tmp/S3EX1leg106625668213828.gif">
>
>Reference Map Image: <img src="/tmp/S3EX1ref106625668213828.gif">
>
>I just cut and pasted the important stuff from the html source
>code. The
>mapfile listing shows this:
>
>IMAGEPATH "/data/tmp/"
>IMAGEURL "/tmp/"
>
>So, I figured that if these paths work in online tutorial,
>they must work in
>the downloadable tutorial. I copy and pasted them and because I have
>windows, I changed the slashes in the other direction to look
>like this:
>
>IMAGEPATH "\data\tmp\"
>IMAGEURL "\tmp\"
>I still get an html page without the images. So, enough background
>information to fill your brain. My question is, if MapServer
>is used to
>create the map images, where does it store them or does IIS store them
>somewhere? I've even done a Find Files in Windows Explorer to see if I
>could find the GIF images created by my tutorial and I find no trace of
>them. This is why I think this is an absolute vs. a relative
>path issue and
>I am just not finding the right directory to where the images
>are stored.
>Are these temporary images and where are they? Is windows
>playing tricks on
>me or is my syntax wrong in my html or mapfile? Any help
>would be greatly
>appreciated and of course I will sum. I've also attached my
>map file and
>template file to help you out.
> <<s3ex2.html>>
> <<s3ex2.map>>
>Thanks in advance,
>
>*********************************
>Todd McNeil
>GIS Specialist
>Surface Transportation and Energy Systems
>ARINC
>Annapolis, MD
>Tel: 410.266.2302 Email: tmcneil at arinc.com
>Fax: 410.573.3170 Web: http://www.arinc.com <http://www.arinc.com>
>
>
More information about the MapServer-users
mailing list