Re: [MapServer-users] PHP-Mapscript: write imageObj to stdout

2023-11-13 Thread Vassilis Chatzigiannakis via MapServer-users
Yes, in php using swig it would be: $oImg = $this->oMap->draw(); echo $oImg->getBytes() -Original Message- From: MapServer-users On Behalf Of Sven Schroeter via MapServer-users Sent: Monday, November 13, 2023 10:44 AM To: mapserver-users@lists.osgeo.org Subject: Re: [MapServer-users] P

Re: [MapServer-users] Docker image for MapServer with PHP-MapScript

2023-10-28 Thread Vassilis Chatzigiannakis via MapServer-users
Yes the documentation is a mess . I worked with this reference: https://mapserver.org/mapscript/mapscript-api/index.html So, you start by $oMap = new mapObj($mapfile); Best regards, Vassilis From: Jan Hartmann Sent: Saturday, October 28, 2023 9:14 PM To: Vassilis Chatzigiannakis ; mapserver-u

Re: [MapServer-users] Docker image for MapServer with PHP-MapScript

2023-10-28 Thread Vassilis Chatzigiannakis via MapServer-users
Hi, I did it recently. There should be a mapscript.php file in the same folder as the php_mapscriptng.so extension. You need to include it in your php script. Best, Vassilis From: MapServer-users On Behalf Of Jan Hartmann via MapServer-users Sent: Friday, October 27, 2023 9:42 PM To: mapserv

[MapServer-users] Mapserver 8 , PHP map script cannot print image

2023-10-26 Thread Vassilis Chatzigiannakis via MapServer-users
Dear all, We are using Mapserver 8.0.1 with PHP and the php_mapscriptng extension. I am having a hard time outputting the image to the browser. In the following code snippet, saving to disk works but mapscript.imageObj.write does not output the image in the browser. header('Content-type: image