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
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
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
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