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: [email protected] [mailto:[email protected]] On Behalf Of jude mwenda Sent: Sunday, May 15, 2011 10:17 PM To: [email protected] 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
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
