[Mapserver-users] Image

Ed McNierney ed at topozone.com
Fri May 23 11:33:08 EDT 2003


Your template is correct.  This is probably caused by having an incorrect ImageURL statement in your MAP file.  MapServer doesn't know what the URL path to your temporary directory is unless you tell it with the ImageURL statement.  Your ImagePath must be correct, because that's how MapServer knows which local filesystem directory to use to write the image - if you're getting the image, then that's fine.

I would guess (from the URL you supply) that your ImageURL statement should be

	ImageURL 	"/images/"

since it is inserted BETWEEN the server name and the temporary image file name.

Look at the HTML being generated from your template (i.e. view the HTML source of the output page).  You'll see the generated URL to your image, and you should be able to deduce from that string what needs to be changed.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 

-----Original Message-----
From: Dwijadas Dey [mailto:dwija_dey at rediffmail.com]
Sent: Friday, May 23, 2003 10:27 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Image


Hi m.sp
Thanks a lot for ur help. I corrected what mistakes i had done 
earlier.
Also by typing "http://127.0.0.1/images/myimage fetches the 
image.
But in the template file how i will fetch it?

         So how to fetch the image from the "images" directory as 
Mapserver dynamically making images for each call to it and assign 
a unique name to it,as a result i cannot give a fixed name of a 
image file.But if i specify a name of a image at the end of the  
directory then it displayed the image.I have given the directory 
path previously
  knowingly,hoping mapserver will take this path and fetch the new 
image.Eagerly waiting for ur mail.

This is the portion in the template file by which i am fetching 
the
images.Here where is the problem? as the image is not displayed in 
the
browser but it is forming in the "images" directory.

          <table border=1 cellpadding=3>
      <tr>
      <td align=center>
      <!-- THE PROBLEM IS HERE IN THE NEXT TWO LINE> -->
      <! <input type="image" name="img" src= "[img]"> -->
         ..............

                             Thanking you
                            "Dwijadas Dey"
___________________________________________________
Get email that means BUSINESS! me @ mycompany.com.
Just Rs.1499/year.
To start, click http://www.rediffmailpro.com

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list