[Mapserver-users] Where are legend, reference and .qy images stored? MORE INFO

Paul Peterson pwpeterson at iesc.net
Mon Apr 7 17:21:20 EDT 2003


Steve,  Thank you for the insight, however...

My experience with 3.7 is that the map images are placed in one directory
and the ref, leg and .qy files are being placed in another.  Is this suppose
to be the case with 3.7?  I can get either the map image to show OR the
reference and legend images to show, but not both at the same time.

My .map file is in /var/www/html/tutorial/s3/
IMAGEPATH "../tmpMaps/"
IMAGEURL "/tmpMaps/"

I am running Redhat 8.0

Apached 2.0.40
  DocumentRoot: /var/www/html
  ScriptAlias: /cgi-bin/ /var/www/cgi-bin/

I created /var/www/tmpMaps and added the following to httpd.conf
	Alias: /tmpMaps/ /var/www/tmpMaps/
after which the legend and reference images displayed but the map did not.

I ran my test and did a search on the server's directory for the map image
but nothing turned up.  I then created /var/www/html/tutorial35/tmpMaps and
ran my tests again.  The legend and reference images where created in
/var/www/tmpMaps and displayed as expected, and the map image was created in
/var/www/html/tutorial35/tmpMaps but did not display.

What am I doing wrong?  Why can't I get everything to show up at the same
time?

Paul Peterson



-----Original Message-----
From: Steve Lime [mailto:steve.lime at dnr.state.mn.us]
Sent: Monday, April 07, 2003 1:37 PM
To: pwpeterson at iesc.net; mapserver-users at lists.gis.umn.edu;
gerry.creager at tamu.edu
Subject: RE: [Mapserver-users] Where are legend, reference and .qy
images stored? MORE INFO


Remember that ../.. is relative to where the CGI program lives, not
where the web page
or map file lives. In 3.7 there is no more crazy chdir() going on.

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Paul Peterson" <pwpeterson at iesc.net> 04/07/03 11:01AM >>>
Gerry, et al...

I did some more testing.  I discovered to get the ref, leg and *.qy
files
stored the IMAGEPATH directory MUST be assigned the ownership and group
of
the web server.  In my case when I changed both of these to 'apache'
the
images were generated and stored, however, again they are showing up
in
/var/tmp!!!!  They never get displayed along with the map image because
the
process tries to get them from /var/www/html/tmp as it should.

My .map file is in /var/www/html/tutorial/s3/
Expected tmp directory /var/www/html/tmp
The IMAGEPATH and IMAGEURL are:
IMAGEPATH "../../tmp/"
IMAGEURL "/tmp/"

Apache serves html from /var/www/html

Paul Peterson



====================================================================
Gerry's response:

May be a 3.7 "feature"... I've not seen image evolution here, either.

gerry

Paul Peterson wrote:
> Rich, Thank you for your response
>
> I should have been more specific...
>
> My .map file is in /var/www/html/tutorial/s3/
> The IMAGEPATH and IMAGEURL are:
> IMAGEPATH "../../tmp/"
> IMAGEURL "/tmp/"
>
> Apache server html from /var/www/html
>
> I give the tmp directory +777 permission which is drwxrwxrwx.
>
> All the images should be placed in /var/www/html/tmp, however, only
the
map
> image is.  I found the others (ref, leg and .qy) in /var/tmp!
>
> I add a tmp directory (/var/www/html/tutorial/s3/tmp) and made these
changes
> to IMAGEPATH and IMAGURL:
> IMAGEPATH "tmp/"
> IMAGEURL "/tutorial35/s3/tmp/"
>
> Again, the only image that shows up there is the map image and I
can't
find
> the others anywhere.
>
> Is this a bug with 3.7?
>
>
> Paul
>
>
>
>
> ================================================
> Rich's response:
>
> The images for the map, reference map, legend, and query files will
all be
> saved to the IMAGEPATH directory, which is relative to the .map file.
So
in
> your case it looks like your map file is in /var/www/html/tutorial35
and
> ../../tmp/ would put you at /var/tmp/. Is your webserver aliasing
/tmp to
> /var/tmp/? Check the time stamps on the files in /var/www/html/tmp.
Try
> seleting everything in both /var/tmp/ and  /var/www/html/tmp and then
hit
> mapserver and see where the images files appear, because what you
describe
> below does not quite make sense.
>
> Rich
>
> At 06:02 PM 4/6/2003 -0500, you wrote:
>
>
>>Hello all.
>>
>>I wrote yesterday regarding a problem with my legends and reference
images
>>not showing up.  Does MapServer (3.7) store all generated images in
the
the
>>same tmp directory.  I am testing out the Tutorial35 demo app and it
is
>>located at /var/www/html/tutorial35.  I have a tmp directory
>>/var/www/html/tmp where only the map png files are showing up.  I
was
>
> trying
>
>>out the cashed query and discovered that the legend, reference and
*.qy
>>files where being stored in /var/tmp.
>>
>>Where in the map file does the directory for the legend, reference
and .qy
>>files get set?  If MapServer is smart enough to store these files
there
why
>>isn't it smart enough to download them from there as well?
>>
>>A snippet of the map file follows:
>>
>>NAME S3EX4
>>EXTENT -97.5 41.619778 -82.122902 49.38562
>>SIZE 400 300
>>SHAPEPATH "../data"
>>FONTSET "../fonts/fonts.list"
>>SYMBOLSET "../symbols/symbols35.sym"
>>
>>WEB
>>  HEADER header.html
>>  TEMPLATE s3ex4.html
>>  FOOTER footer.html
>>  IMAGEPATH "../../tmp/"
>>  IMAGEURL "/tmp/"
>>  LOG /var/www/html/mapserver.log
>>END
>>
>>Again the IMAGEPATH and IMAGEURL as defined above work for the map
png,
but
>>not the legend, reference ro .qy files.
>>
>>Any ideas what I am doing wrong?
>>
>>Paul Peterson
>>
>>_______________________________________________
>>Mapserver-users mailing list
>>Mapserver-users at lists.gis.umn.edu
>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
> Richard W. Greenwood, PLS
> (307) 733-0203
> Rich at GreenwoodMap.com
> www.GreenwoodMap.com
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


--
Gerry Creager -- gerry.creager at tamu.edu
Network Engineering -- AATLT, Texas A&M University
Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578
Page: 979.228.0173
Office: 903A Eller Bldg, TAMU, College Station, TX 77843


_______________________________________________
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