PHP/Mapscript: send map to browser directly

Wally Maddoc wallacher at INNOMIS.COM
Fri Jan 11 08:11:06 PST 2008


Gregor Mosheh schrieb:
> Wally Maddoc wrote:
>> The usual way to send a map to the browser is to store the image file (e.g
>> mymap.png) on the server and invoke the URL to this file in the HTML-Code. 
>
> If you want to output the image directly, use $map->image->saveImage()
with no filename. That sends it to stdout. Used with header() you can have
the image downloaded or displayed or whatever.
>
>
http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/imageobj
>

Thanks to Guilaume and Gregor. This exactly what I wanted.

Best regards

Erik



More information about the MapServer-users mailing list