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

Ryan, Adam ARyan at co.linn.or.us
Mon Apr 7 14:02:50 EDT 2003


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2FD2F.E7640FE0
Content-Type: text/plain;
	charset="iso-8859-1"


Paul,

Why not use an absolute imagepath rather than a relative one so there is no
question as to where mapservr is writing to.  Use a drive location, not a
web location, ie: c:\apache\...).

Adam Ryan
Linn County

-----Original Message-----
From: Paul Peterson [mailto:pwpeterson at iesc.net]
Sent: Monday, April 07, 2003 9:02 AM
To: Gerry Creager N5JXS; mapserver
Subject: RE: [Mapserver-users] Where are legend, reference and .qy
images stored? MORE INFO


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

------_=_NextPart_001_01C2FD2F.E7640FE0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Mapserver-users] Where are legend, reference and .qy  =
images stored? MORE INFO</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=3D2>Paul,</FONT>
</P>

<P><FONT SIZE=3D2>Why not use an absolute imagepath rather than a =
relative one so there is no question as to where mapservr is writing =
to.&nbsp; Use a drive location, not a web location, ie: =
c:\apache\...).</FONT></P>

<P><FONT SIZE=3D2>Adam Ryan</FONT>
<BR><FONT SIZE=3D2>Linn County</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Paul Peterson [<A =
HREF=3D"mailto:pwpeterson at iesc.net">mailto:pwpeterson at iesc.net</A>]</FON=
T>
<BR><FONT SIZE=3D2>Sent: Monday, April 07, 2003 9:02 AM</FONT>
<BR><FONT SIZE=3D2>To: Gerry Creager N5JXS; mapserver</FONT>
<BR><FONT SIZE=3D2>Subject: RE: [Mapserver-users] Where are legend, =
reference and .qy</FONT>
<BR><FONT SIZE=3D2>images stored? MORE INFO</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Gerry, et al...</FONT>
</P>

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

<P><FONT SIZE=3D2>My .map file is in /var/www/html/tutorial/s3/</FONT>
<BR><FONT SIZE=3D2>Expected tmp directory /var/www/html/tmp</FONT>
<BR><FONT SIZE=3D2>The IMAGEPATH and IMAGEURL are:</FONT>
<BR><FONT SIZE=3D2>IMAGEPATH &quot;../../tmp/&quot;</FONT>
<BR><FONT SIZE=3D2>IMAGEURL &quot;/tmp/&quot;</FONT>
</P>

<P><FONT SIZE=3D2>Apache serves html from /var/www/html</FONT>
</P>

<P><FONT SIZE=3D2>Paul Peterson</FONT>
</P>
<BR>
<BR>

<P><FONT =
SIZE=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</F=
ONT>
<BR><FONT SIZE=3D2>Gerry's response:</FONT>
</P>

<P><FONT SIZE=3D2>May be a 3.7 &quot;feature&quot;... I've not seen =
image evolution here, either.</FONT>
</P>

<P><FONT SIZE=3D2>gerry</FONT>
</P>

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

<P><FONT SIZE=3D2>--</FONT>
<BR><FONT SIZE=3D2>Gerry Creager -- gerry.creager at tamu.edu</FONT>
<BR><FONT SIZE=3D2>Network Engineering -- AATLT, Texas A&amp;M =
University</FONT>
<BR><FONT SIZE=3D2>Cell: 979.229.5301 Office: 979.458.4020 FAX: =
979.847.8578</FONT>
<BR><FONT SIZE=3D2>Page: 979.228.0173</FONT>
<BR><FONT SIZE=3D2>Office: 903A Eller Bldg, TAMU, College Station, TX =
77843</FONT>
</P>
<BR>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Mapserver-users mailing list</FONT>
<BR><FONT SIZE=3D2>Mapserver-users at lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://lists.gis.umn.edu/mailman/listinfo/mapserver-users" =
TARGET=3D"_blank">http://lists.gis.umn.edu/mailman/listinfo/mapserver-us=
ers</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2FD2F.E7640FE0--



More information about the mapserver-users mailing list