Re: [MapServer-users] [GeoMoose-users] OSGeo Local Chapter meeting - Twin Cities, for Nov. 9th

2023-11-08 Thread Bob Basques via MapServer-users
Tonight, The 8th (Wed)

My screw up originally.

Bobb



From: Dan Little 
Sent: Wednesday, November 8, 2023 7:54 AM
To: Bob Basques 
Cc: geomoose-us...@lists.osgeo.org; mapserver-users@lists.osgeo.org; tcmug 

Subject: Re: [GeoMoose-users] OSGeo Local Chapter meeting - Twin Cities, for 
Nov. 9th

Think Before You Click: This email originated outside our organization.

Is this for tonight’s usual meet up (Wednesdays) or really for tomorrow (the 
9th)?

On Wed, Nov 1, 2023 at 17:24 Bob Basques via GeoMoose-users 
mailto:geomoose-us...@lists.osgeo.org>> wrote:
All,

Casting out a call for presenters for our next Local chapter meeting. I can set 
up a Virtual presentation at the meeting for presenters.

The Meeting will take place at:  https://www.liftbridgebrewery.com/

https://maps.app.goo.gl/h4cQF9PGDZcNiYgXA

1900 Tower Dr. W,
Stillwater MN 55082

Time : 4:30pm – 6:00

Bobb



Get me in 
Teams
PW19-S295-C024


___
GeoMoose-users mailing list
geomoose-us...@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/geomoose-users
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2023-11-08 Thread Jan Hartmann via MapServer-users


Thanks Steve. I should have been able to guess that, but the 
PHP-MapScript documentation 
(https://mapserver.org/mapscript/php/index.html) still has a metadata 
member for the MapObj. As well as for the WebObj


As has been said before, the documentation for PHP Mapscript 
(https://mapserver.org/mapscript/php/index.html) is not very helpful. 
Essentially, it still describes the pre-SWIG version. I have been 
compiling MapServer since before the first marvelous MapServer-meeting 
in 2003 (https://maps.hisgis.nl/conferences/2003/mum/, look at the 
photographs!), but I have been using the UbuntuGIS version for the last 
few years. It was really a pain to get the current version working from 
scratch in a user directory. I was almost starting to think about 
switching to GeoServer :-). To get the "official" PHP-Mapscript-guide 
working I had to use:


https://ms4w.com/trac/wiki/MigrationGuide5.x
https://mapserver.org/MIGRATION_GUIDE.html
https://mapserver.org/mapscript/php/migration_guide.html
https://mapserver.org/mapscript/php/index.html

The main new requirements (including mapscript.php and setting 
mapserver.conf) core-dump the PHP-script when missing, so that too leads 
to some not-so-nice debugging. I would strongly advise to bring the 
documentation of MapScript up to date and to base it on the most recent 
version. And to clean out a bit the remnants of previous releases.


There seems to be a working Docker-version for MapServer/Mapscript in 
Debian Bookworm 
(https://lists.osgeo.org/pipermail/mapserver-dev/2023-October/017032.html), 
but I haven't tested it yet. Has anyone worked with it? And does anyone 
know of a recent Docker version for Mapserver/Mapscript in Alpine? Some 
organisations I am working for in the Euregio Aachen-Liege-Maastricht 
require Alpine for their Docker version.


Anyway, thanks to Tanya, Vassilis and Steve,

Jan Hartmann
Amsterdam

On 30/10/2023 18:56, Lime, Steve D (MNIT) wrote:


Map-level metadata lives in the WEB object…

*From:* MapServer-users  *On 
Behalf Of *Jan Hartmann via MapServer-users

*Sent:* Monday, October 30, 2023 12:46 PM
*To:* Vassilis Chatzigiannakis ; 
mapserver-users@lists.osgeo.org
*Subject:* Re: [MapServer-users] Docker image for MapServer with 
PHP-MapScript


Almost there. There are additional migration examples in: 
https://ms4w.com/trac/wiki/MigrationGuide5.x



I wrote wrapper functions for the old ms_new... functions, and can 
create that way a new mapObj called $oMap.


The "set" function has been  renamed  to "__set" : not 
$oMap->set("maxsize",6020), but: ;$oMap->__set("maxsize",6020);


Layers can be declared as before:  $layer = $oMap->getLayer(1).

Metadata have to be set as follows:

Not: $layer->setMetadata("...","..."); but: 
$layer->metadata->set("...","...")


However, I cannot set the metadata of the mapObj: 
$oMap->metadata->set("...","...") gives: "Undefined array key "metadata""


Any idea?

On 29/10/2023 07:52, Vassilis Chatzigiannakis wrote:

Yes the documentation is a mess .

I worked with this reference:

https://mapserver.org/mapscript/mapscript-api/index.html

So, you start by

$oMap= newmapObj($mapfile);

Best regards,

Vassilis

*From:* Jan Hartmann 

*Sent:* Saturday, October 28, 2023 9:14 PM
*To:* Vassilis Chatzigiannakis 
; mapserver-users@lists.osgeo.org
*Subject:* Re: [MapServer-users] Docker image for MapServer with
PHP-MapScript

This seems to work.  And it says so in the migration guide
(https://mapserver.org/mapscript/php/migration_guide.html):

all of your PHP scripts (that leverage MapServer objects and
functions) must now always first include the generated
mapscript.php file containing MapServer constants:

But could it be that only "$m = new mapObj('...');" is accepted,
and "$m=ms_newMapObj('...');" isn't? The docs still mention the
old call (https://mapserver.org/mapscript/php/phpmapscript.html

On 28/10/2023 09:11, Vassilis Chatzigiannakis wrote:

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:* mapserver-users@lists.osgeo.org
*Subject:* Re: [MapServer-users] Docker image for MapServer
with PHP-MapScript

I made a docker version of mapserver/php-mapscript myself,
based on Ubuntu 22.04. I installed all required libraries with
apt, and compiled mapserver and mapscript according to
instructions. No problem at all.

At the end I got the following from phpinfo();




mapscript

*MapServer Version*


Re: [MapServer-users] [GeoMoose-users] OSGeo Local Chapter meeting - Twin Cities, for Nov. 9th

2023-11-08 Thread Dan Little via MapServer-users
Is this for tonight’s usual meet up (Wednesdays) or really for tomorrow
(the 9th)?

On Wed, Nov 1, 2023 at 17:24 Bob Basques via GeoMoose-users <
geomoose-us...@lists.osgeo.org> wrote:

> All,
>
>
>
> Casting out a call for presenters for our next Local chapter meeting. I
> can set up a Virtual presentation at the meeting for presenters.
>
>
>
> The Meeting will take place at:  https://www.liftbridgebrewery.com/
>
>
>
> https://maps.app.goo.gl/h4cQF9PGDZcNiYgXA
>
>
>
> 1900 Tower Dr. W,
> Stillwater MN 55082
>
>
>
> Time : 4:30pm – 6:00
>
>
>
> Bobb
>
>
>
>
>
>
>
> Get me in Teams
> 
>
> *PW19-S295-C024*
>
>
>
>
> ___
> GeoMoose-users mailing list
> geomoose-us...@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geomoose-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users