[mapserver-users] Please help

Worth Lutz wal3 at mindspring.com
Mon May 16 06:56:02 EDT 2011


Try changing:

 
WEB
TEMPLATE "template.html"
IMAGEPATH "/var/www/judemaps/output/"
IMAGEURL "/output/"
END

 

To:

 

WEB
TEMPLATE "template.html"
IMAGEPATH "/var/www/judemaps/output/"
IMAGEURL "/judemaps/output/"
END

 

  _____  

From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of jude mwenda
Sent: Sunday, May 15, 2011 10:17 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Please help

 

 

Hi,
I am new to mapserver. I have been able to generate images, and on viewing
images folder i can see images that have been generated by mapserver. The
only problem comes in that on loading them via template the image is a
broken path. Any pointers on resolving this,
Mapfile http://dpaste.de/4bmw/

On accessing the images via
http://localhost/judemaps/output/parcels_map130551107432207.gif they do
load.

Any clue on what i am doing wrong.
the template has 

<!-- MapServer Template -->
<html>
<head><title>Simple Mapserver Template HTML Document</title></head>
<body bgcolor=#AAAAAA>
<h2>The image below was illustrated based on the instructions sent in the
mapfile.</h2>
<!-- When using Mapserver with a template, the Mapserver application looks
for the [img] tag within the template document to place the map -->
<img src="[img]" border=1>
</body>
</html>


-- 
Regards,

Jude Mwenda
Skype id: jmwenda
Twitter: www.twitter.com/judemwenda
Web: www.africangeogeek.com
    
"Was ist mein Leben, wenn ich nicht mehr nützlich für andere."
Johann Wolfgang von Goethe

  _____  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1500/3641 - Release Date: 05/16/11

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110516/daa1a5f9/attachment.html


More information about the mapserver-users mailing list