Re: [mapserver-users] browse mode no longer saves images?

2014-12-17 Thread geographika

Hello again,

A few more tests with no luck in saving the images to disk on the server.
Does anyone save images to the server using 6.4? It works fine on the 
examples at http://demo.mapserver.org/cgi-bin/mapserv? but these use 
MapServer 5.6.5


This applies to [img], [scalebar], [legend] even though unique filenames 
are generated in the template output e.g.


img src=/tmp/PMS1418817695480.png
img src=/tmp/PMSsb1418817695480.png
img src=/tmp/PMSleg1418817695480.png

I've tried running from the command line to rule out the web server:

mapserv -nh 
QUERY_STRING=map=C:/MapServer/apps/pms/mymap.mapLAYERS=Testmode=browse


I also tried to create a new OUTPUTFORMAT to use, setting it explicitly 
to use the filesystem (although I'm not sure if this only applies to OGR 
formats):


OUTPUTFORMAT
NAME 'png2'
DRIVER GDAL/PNG
MIMETYPE image/png
EXTENSION png
IMAGEMODE RGBA #All features are rendered against an initially 
transparent background.

FORMATOPTION STORAGE=filesystem
END

And then from the command line:

mapserv -nh 
QUERY_STRING=map=C:/MapServer/apps/pms/mymap.mapLAYERS=Bridgesmode=browseQFORMAT=png2SAVEQUERY=true



The logs show the following (with debug set to 5) with no errors:

[Wed Dec 17 11:55:42 2014].367000 CGI Request 1 on process 2272
[Wed Dec 17 11:55:42 2014].382000 mapserv request processing time 
(msLoadMap not incl.): 0.015s
[Wed Dec 17 11:55:42 2014].382000 msFreeMap(): freeing map at 
02A3A870


Regards,

Seth

On 16/12/2014 14:28, Jörg Thomsen wrote:

Hi Seth,

are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please
check. Also you can use debug-mode to see where mapserver wants to write
the image and perhaps cannot.
the directory has to be writable, but with windows this should not be a
problem.

And you have to define the alias in apache for the tmp-directory like
ALIAS /tmp C:/Mapserver/apps/pms/tmp
Directory C:/Mapserver/apps/pms/tmp
   
/Directory

Jörg

Am 16.12.2014 um 14:03 schrieb geographika:

Hi list,

Until now I have been using MapServer as a WMS server. I've only
recently been trying out the CGI controls, which would be very handy for
a reporting application.

The MapServer tutorials refer several times to saving temporary images
using the mode=browse. At
http://demo.mapserver.org/tutorial/section3.html the map images
generated in these tutorials refer to image files on the web server (so
are not generated dynamically). E.g.
http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png

I've tried to set this up in MapServer 6.4 without success. I've set up
parameters in the WEB section as follows:

 WEB
 IMAGEPATH C:/Mapserver/apps/pms/tmp
 # Also tried tmp/
 IMAGEURL tmp/
 TEMPLATE reports/test.html

However no images are ever created in this folder when using a request
such as http://localhost/mapserver/?LAYERS=mylayermode=browse
https://localhost/mapserver/?LAYERS=mylayermode=browse
The template contains file names such as tmp/MyMap14187343292752.png but
these never seem to be written to disk. How can these images be persisted?
I know I could use mode=map to generate an image, but I want to create
legends etc. all with a single request.

Regards,

Seth

--
web:http://geographika.co.uk
twitter: @geographika




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] browse mode no longer saves images?

2014-12-17 Thread Lime, Steve D (MNIT)
I'm able to save images using 6.4.1. Just tested it with a template that uses 
[img] and [ref]... This is on a Linux server. --Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of geographika
Sent: Wednesday, December 17, 2014 6:08 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] browse mode no longer saves images?

Hello again,

A few more tests with no luck in saving the images to disk on the server.
Does anyone save images to the server using 6.4? It works fine on the examples 
at http://demo.mapserver.org/cgi-bin/mapserv? but these use MapServer 5.6.5

This applies to [img], [scalebar], [legend] even though unique filenames are 
generated in the template output e.g.

img src=/tmp/PMS1418817695480.png
img src=/tmp/PMSsb1418817695480.png
img src=/tmp/PMSleg1418817695480.png

I've tried running from the command line to rule out the web server:

mapserv -nh 
QUERY_STRING=map=C:/MapServer/apps/pms/mymap.mapLAYERS=Testmode=browse

I also tried to create a new OUTPUTFORMAT to use, setting it explicitly to use 
the filesystem (although I'm not sure if this only applies to OGR formats):

OUTPUTFORMAT
NAME 'png2'
DRIVER GDAL/PNG
MIMETYPE image/png
EXTENSION png
IMAGEMODE RGBA #All features are rendered against an initially 
transparent background.
FORMATOPTION STORAGE=filesystem
END

And then from the command line:

mapserv -nh 
QUERY_STRING=map=C:/MapServer/apps/pms/mymap.mapLAYERS=Bridgesmode=browseQFORMAT=png2SAVEQUERY=true


The logs show the following (with debug set to 5) with no errors:

[Wed Dec 17 11:55:42 2014].367000 CGI Request 1 on process 2272
[Wed Dec 17 11:55:42 2014].382000 mapserv request processing time (msLoadMap 
not incl.): 0.015s
[Wed Dec 17 11:55:42 2014].382000 msFreeMap(): freeing map at 02A3A870
Regards,

Seth

On 16/12/2014 14:28, Jörg Thomsen wrote:

Hi Seth,



are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please

check. Also you can use debug-mode to see where mapserver wants to write

the image and perhaps cannot.

the directory has to be writable, but with windows this should not be a

problem.



And you have to define the alias in apache for the tmp-directory like

ALIAS /tmp C:/Mapserver/apps/pms/tmp

Directory C:/Mapserver/apps/pms/tmp

  

/Directory



Jörg



Am 16.12.2014 um 14:03 schrieb geographika:

Hi list,



Until now I have been using MapServer as a WMS server. I've only

recently been trying out the CGI controls, which would be very handy for

a reporting application.



The MapServer tutorials refer several times to saving temporary images

using the mode=browse. At

http://demo.mapserver.org/tutorial/section3.html the map images

generated in these tutorials refer to image files on the web server (so

are not generated dynamically). E.g.

http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png



I've tried to set this up in MapServer 6.4 without success. I've set up

parameters in the WEB section as follows:



WEB

IMAGEPATH C:/Mapserver/apps/pms/tmp

# Also tried tmp/

IMAGEURL tmp/

TEMPLATE reports/test.html



However no images are ever created in this folder when using a request

such as http://localhost/mapserver/?LAYERS=mylayermode=browse

https://localhost/mapserver/?LAYERS=mylayermode=browsehttps://localhost/mapserver/?LAYERS=mylayermode=browse

The template contains file names such as tmp/MyMap14187343292752.png but

these never seem to be written to disk. How can these images be persisted?

I know I could use mode=map to generate an image, but I want to create

legends etc. all with a single request.



Regards,



Seth



--

web:http://geographika.co.uk

twitter: @geographika









___

mapserver-users mailing list

mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users





___

mapserver-users mailing list

mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] browse mode no longer saves images?

2014-12-17 Thread geographika

Thanks Steve. I persevered knowing it was still a valid use case.
Turns out it was a simple error / misunderstanding on my part. I've had 
the MAP STATUS set to OFF for years, and always accessed layers using 
WMS/WFS/GeoJSON.
It seems in CGI mode this means no map image is ever created (even when 
specifying layers to show). The map did appear in mode=map however, just 
not mode=browse.


Seth

On 17/12/2014 17:22, Lime, Steve D (MNIT) wrote:


I'm able to save images using 6.4.1. Just tested it with a template 
that uses [img] and [ref]... This is on a Linux server. --Steve


*From:*mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of 
*geographika

*Sent:* Wednesday, December 17, 2014 6:08 AM
*To:* mapserver-users@lists.osgeo.org
*Subject:* Re: [mapserver-users] browse mode no longer saves images?

Hello again,

A few more tests with no luck in saving the images to disk on the server.
Does anyone save images to the server using 6.4? It works fine on the 
examples at http://demo.mapserver.org/cgi-bin/mapserv? but these use 
MapServer 5.6.5


This applies to [img], [scalebar], [legend] even though unique 
filenames are generated in the template output e.g.


img src=/tmp/PMS1418817695480.png
img src=/tmp/PMSsb1418817695480.png
img src=/tmp/PMSleg1418817695480.png

I've tried running from the command line to rule out the web server:

mapserv -nh 
QUERY_STRING=map=C:/MapServer/apps/pms/mymap.mapLAYERS=Testmode=browse


I also tried to create a new OUTPUTFORMAT to use, setting it 
explicitly to use the filesystem (although I'm not sure if this only 
applies to OGR formats):


OUTPUTFORMAT
NAME 'png2'
DRIVER GDAL/PNG
MIMETYPE image/png
EXTENSION png
IMAGEMODE RGBA #All features are rendered against an initially 
transparent background.

FORMATOPTION STORAGE=filesystem
END

And then from the command line:

mapserv -nh 
QUERY_STRING=map=C:/MapServer/apps/pms/mymap.mapLAYERS=Bridgesmode=browseQFORMAT=png2SAVEQUERY=true



The logs show the following (with debug set to 5) with no errors:

[Wed Dec 17 11:55:42 2014].367000 CGI Request 1 on process 2272
[Wed Dec 17 11:55:42 2014].382000 mapserv request processing time 
(msLoadMap not incl.): 0.015s
[Wed Dec 17 11:55:42 2014].382000 msFreeMap(): freeing map at 
02A3A870


Regards,

Seth

On 16/12/2014 14:28, Jörg Thomsen wrote:

Hi Seth,

  


are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please

check. Also you can use debug-mode to see where mapserver wants to write

the image and perhaps cannot.

the directory has to be writable, but with windows this should not be a

problem.

  


And you have to define the alias in apache for the tmp-directory like

ALIAS /tmp C:/Mapserver/apps/pms/tmp

Directory C:/Mapserver/apps/pms/tmp

   

/Directory

  


Jörg

  


Am 16.12.2014 um 14:03 schrieb geographika:

Hi list,

  


Until now I have been using MapServer as a WMS server. I've only

recently been trying out the CGI controls, which would be very handy for

a reporting application.

  


The MapServer tutorials refer several times to saving temporary images

using the mode=browse. At

http://demo.mapserver.org/tutorial/section3.html  the map images

generated in these tutorials refer to image files on the web server (so

are not generated dynamically). E.g.

http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png

  


I've tried to set this up in MapServer 6.4 without success. I've set up

parameters in the WEB section as follows:

  


 WEB

 IMAGEPATH C:/Mapserver/apps/pms/tmp

 # Also tried tmp/

 IMAGEURL tmp/

 TEMPLATE reports/test.html

  


However no images are ever created in this folder when using a request

such ashttp://localhost/mapserver/?LAYERS=mylayermode=browse

https://localhost/mapserver/?LAYERS=mylayermode=browse  
https://localhost/mapserver/?LAYERS=mylayermode=browse

The template contains file names such as tmp/MyMap14187343292752.png but

these never seem to be written to disk. How can these images be 
persisted?

I know I could use mode=map to generate an image, but I want to create

legends etc. all with a single request.

  


Regards,

  


Seth

  


--

web:http://geographika.co.uk

twitter: @geographika

  

  

  

  


___

mapserver-users mailing list

mapserver-users@lists.osgeo.org  
mailto:mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] browse mode no longer saves images?

2014-12-17 Thread Lime, Steve D (MNIT)
Years ago I had apps where a map came from another service but I wanted to 
frame that map with MapServer-generate elements such as a scalebar and 
reference map. Hence the ability to set STATUS OFF.

Steve

From: geographika [mailto:geograph...@gmail.com]
Sent: Wednesday, December 17, 2014 2:35 PM
To: Lime, Steve D (MNIT)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] browse mode no longer saves images?

Thanks Steve. I persevered knowing it was still a valid use case.
Turns out it was a simple error / misunderstanding on my part. I've had the MAP 
STATUS set to OFF for years, and always accessed layers using WMS/WFS/GeoJSON.
It seems in CGI mode this means no map image is ever created (even when 
specifying layers to show). The map did appear in mode=map however, just not 
mode=browse.

Seth

On 17/12/2014 17:22, Lime, Steve D (MNIT) wrote:
I'm able to save images using 6.4.1. Just tested it with a template that uses 
[img] and [ref]... This is on a Linux server. --Steve

From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of geographika
Sent: Wednesday, December 17, 2014 6:08 AM
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] browse mode no longer saves images?

Hello again,

A few more tests with no luck in saving the images to disk on the server.
Does anyone save images to the server using 6.4? It works fine on the examples 
at http://demo.mapserver.org/cgi-bin/mapserv? but these use MapServer 5.6.5

This applies to [img], [scalebar], [legend] even though unique filenames are 
generated in the template output e.g.

img src=/tmp/PMS1418817695480.png
img src=/tmp/PMSsb1418817695480.png
img src=/tmp/PMSleg1418817695480.png

I've tried running from the command line to rule out the web server:

mapserv -nh 
QUERY_STRING=map=C:/MapServer/apps/pms/mymap.mapLAYERS=Testmode=browse

I also tried to create a new OUTPUTFORMAT to use, setting it explicitly to use 
the filesystem (although I'm not sure if this only applies to OGR formats):

OUTPUTFORMAT
NAME 'png2'
DRIVER GDAL/PNG
MIMETYPE image/png
EXTENSION png
IMAGEMODE RGBA #All features are rendered against an initially 
transparent background.
FORMATOPTION STORAGE=filesystem
END

And then from the command line:

mapserv -nh 
QUERY_STRING=map=C:/MapServer/apps/pms/mymap.mapLAYERS=Bridgesmode=browseQFORMAT=png2SAVEQUERY=true


The logs show the following (with debug set to 5) with no errors:

[Wed Dec 17 11:55:42 2014].367000 CGI Request 1 on process 2272
[Wed Dec 17 11:55:42 2014].382000 mapserv request processing time (msLoadMap 
not incl.): 0.015s
[Wed Dec 17 11:55:42 2014].382000 msFreeMap(): freeing map at 02A3A870
Regards,

Seth

On 16/12/2014 14:28, Jörg Thomsen wrote:

Hi Seth,



are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please

check. Also you can use debug-mode to see where mapserver wants to write

the image and perhaps cannot.

the directory has to be writable, but with windows this should not be a

problem.



And you have to define the alias in apache for the tmp-directory like

ALIAS /tmp C:/Mapserver/apps/pms/tmp

Directory C:/Mapserver/apps/pms/tmp

  

/Directory



Jörg



Am 16.12.2014 um 14:03 schrieb geographika:

Hi list,



Until now I have been using MapServer as a WMS server. I've only

recently been trying out the CGI controls, which would be very handy for

a reporting application.



The MapServer tutorials refer several times to saving temporary images

using the mode=browse. At

http://demo.mapserver.org/tutorial/section3.html the map images

generated in these tutorials refer to image files on the web server (so

are not generated dynamically). E.g.

http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png



I've tried to set this up in MapServer 6.4 without success. I've set up

parameters in the WEB section as follows:



WEB

IMAGEPATH C:/Mapserver/apps/pms/tmp

# Also tried tmp/

IMAGEURL tmp/

TEMPLATE reports/test.html



However no images are ever created in this folder when using a request

such as http://localhost/mapserver/?LAYERS=mylayermode=browse

https://localhost/mapserver/?LAYERS=mylayermode=browsehttps://localhost/mapserver/?LAYERS=mylayermode=browse

The template contains file names such as tmp/MyMap14187343292752.png but

these never seem to be written to disk. How can these images be persisted?

I know I could use mode=map to generate an image, but I want to create

legends etc. all with a single request.



Regards,



Seth



--

web:http://geographika.co.uk

twitter: @geographika









___

mapserver-users mailing list

mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] browse mode no longer saves images?

2014-12-16 Thread geographika

Hi list,

Until now I have been using MapServer as a WMS server. I've only 
recently been trying out the CGI controls, which would be very handy for 
a reporting application.


The MapServer tutorials refer several times to saving temporary images 
using the mode=browse. At 
http://demo.mapserver.org/tutorial/section3.html the map images 
generated in these tutorials refer to image files on the web server (so 
are not generated dynamically). E.g. 
http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png


I've tried to set this up in MapServer 6.4 without success. I've set up 
parameters in the WEB section as follows:


WEB
IMAGEPATH C:/Mapserver/apps/pms/tmp
# Also tried tmp/
IMAGEURL tmp/
TEMPLATE reports/test.html

However no images are ever created in this folder when using a request 
such as http://localhost/mapserver/?LAYERS=mylayermode=browse 
https://localhost/mapserver/?LAYERS=mylayermode=browse
The template contains file names such as tmp/MyMap14187343292752.png but 
these never seem to be written to disk. How can these images be persisted?
I know I could use mode=map to generate an image, but I want to create 
legends etc. all with a single request.


Regards,

Seth

--
web:http://geographika.co.uk
twitter: @geographika


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] browse mode no longer saves images?

2014-12-16 Thread Jörg Thomsen
Hi Seth,

are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please
check. Also you can use debug-mode to see where mapserver wants to write
the image and perhaps cannot.
the directory has to be writable, but with windows this should not be a
problem.

And you have to define the alias in apache for the tmp-directory like
ALIAS /tmp C:/Mapserver/apps/pms/tmp
Directory C:/Mapserver/apps/pms/tmp
  
/Directory

Jörg

Am 16.12.2014 um 14:03 schrieb geographika:
 Hi list,
 
 Until now I have been using MapServer as a WMS server. I've only
 recently been trying out the CGI controls, which would be very handy for
 a reporting application.
 
 The MapServer tutorials refer several times to saving temporary images
 using the mode=browse. At
 http://demo.mapserver.org/tutorial/section3.html the map images
 generated in these tutorials refer to image files on the web server (so
 are not generated dynamically). E.g.
 http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png
 
 I've tried to set this up in MapServer 6.4 without success. I've set up
 parameters in the WEB section as follows:
 
 WEB
 IMAGEPATH C:/Mapserver/apps/pms/tmp
 # Also tried tmp/
 IMAGEURL tmp/
 TEMPLATE reports/test.html
 
 However no images are ever created in this folder when using a request
 such as http://localhost/mapserver/?LAYERS=mylayermode=browse
 https://localhost/mapserver/?LAYERS=mylayermode=browse
 The template contains file names such as tmp/MyMap14187343292752.png but
 these never seem to be written to disk. How can these images be persisted?
 I know I could use mode=map to generate an image, but I want to create
 legends etc. all with a single request.
 
 Regards,
 
 Seth
 
 --
 web:http://geographika.co.uk
 twitter: @geographika
 
 
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] browse mode no longer saves images?

2014-12-16 Thread geographika

Hi Jörg,

Thanks for your reply.

The path definitely exists, and if I set the WEB  TEMPPATH to this 
folder MapServer can create the temporary .MAP files here for certain 
requests.
I'm using IIS not Apache, but I have the /tmp directory set up as a 
virtual directory so it accessible by the browser (I've tested a test 
image can be accessed).
There are no errors in the logs (on DEBUG 5) and no mention of saving to 
any output file.

Is it certain MapServer writes image files to disk still?

Regards,

Seth

On 16/12/2014 14:28, Jörg Thomsen wrote:

Hi Seth,

are you very sure the path C:/Mapserver/apps/pms/tmp exists? Please
check. Also you can use debug-mode to see where mapserver wants to write
the image and perhaps cannot.
the directory has to be writable, but with windows this should not be a
problem.

And you have to define the alias in apache for the tmp-directory like
ALIAS /tmp C:/Mapserver/apps/pms/tmp
Directory C:/Mapserver/apps/pms/tmp
   
/Directory

Jörg

Am 16.12.2014 um 14:03 schrieb geographika:

Hi list,

Until now I have been using MapServer as a WMS server. I've only
recently been trying out the CGI controls, which would be very handy for
a reporting application.

The MapServer tutorials refer several times to saving temporary images
using the mode=browse. At
http://demo.mapserver.org/tutorial/section3.html the map images
generated in these tutorials refer to image files on the web server (so
are not generated dynamically). E.g.
http://demo.mapserver.org/ms_tmp/EX1.9_141873269321745.png

I've tried to set this up in MapServer 6.4 without success. I've set up
parameters in the WEB section as follows:

 WEB
 IMAGEPATH C:/Mapserver/apps/pms/tmp
 # Also tried tmp/
 IMAGEURL tmp/
 TEMPLATE reports/test.html

However no images are ever created in this folder when using a request
such as http://localhost/mapserver/?LAYERS=mylayermode=browse
https://localhost/mapserver/?LAYERS=mylayermode=browse
The template contains file names such as tmp/MyMap14187343292752.png but
these never seem to be written to disk. How can these images be persisted?
I know I could use mode=map to generate an image, but I want to create
legends etc. all with a single request.

Regards,

Seth

--
web:http://geographika.co.uk
twitter: @geographika




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users