Static JPEG/PNG image creation from MapServer

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Static JPEG/PNG image creation from MapServer

Andre Lockhart
We have a requirement to periodically (every 5 minutes) automatically create
a 'snapshot' image of the MapServer map as either a png or jpeg file on the
server where MapServer is running.

Does MapServer have a facility for emitting this, or is there an open-source
utility that can be employed?

Thanks!


               André Lockhart
               [hidden email]
 
Reply | Threaded
Open this post in threaded view
|

Re: Static JPEG/PNG image creation from MapServer

Gregor at HostGIS
> We have a requirement to periodically (every 5 minutes) automatically
> create a 'snapshot' image of the MapServer map as either a png or jpeg
> file on the server where MapServer is running.

Check out the "shp2img" utility that's part of Mapserver.
That sounds like what you want.

Example usage:
shp2img -m mapfile.map -o snapshot.png
Reply | Threaded
Open this post in threaded view
|

Re: Static JPEG/PNG image creation from MapServer

Hal Mueller-3
In reply to this post by Andre Lockhart
shp2img, or do it in Mapscript (e.g. PHP) if you need more control.