From l.schaminee at dictu.nl Mon Jun 3 07:52:30 2024 From: l.schaminee at dictu.nl (=?iso-8859-1?B?U2NoYW1pbullLCBkcnMuIEwuQy5XLiAoTHV1ayk=?=) Date: Mon, 3 Jun 2024 14:52:30 +0000 Subject: [MapServer-users] If clustering is used, the capabilities are not completely created In-Reply-To: References: Message-ID: Hi List, Does anybody recognize this problem? We use clustering in a layer in our WMS. This works fine. But if we ask for the capabilities we get an error and only part of the capabilities.. We uise the following lines in our mapfile in the LAYER section: CLUSTER MAXDISTANCE 15 BUFFER 10 REGION "ellipse" # This line is responsible for not being able to get the capabilities END If we comment out the line REGION "ellipse" we can get the complete capabilities. Hopefully somebody knows this problem and also knows a/the solution. Thanks for any help. Luuk Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is gezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten. This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Mon Jun 3 12:23:27 2024 From: sethg at geographika.co.uk (Seth G) Date: Mon, 03 Jun 2024 21:23:27 +0200 Subject: [MapServer-users] If clustering is used, the capabilities are not completely created In-Reply-To: References: Message-ID: <821fc6ce-7d1f-4acf-a7e6-d35836785225@app.fastmail.com> Hi Luuk, What does your GetCapabilities request look like (version etc.)? What error do you get? Does the LAYER have an EXTENT set on it? Maybe there is an issue with trying to calculate this dynamically - if there isn't an extent you could try adding one. Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Mon, Jun 3, 2024, at 4:52 PM, Schamin?e, drs. L.C.W. (Luuk) via MapServer-users wrote: > Hi List, > > Does anybody recognize this problem? > > We use clustering in a layer in our WMS. This works fine. But if we ask for the capabilities we get an error and only part of the capabilities.. > We uise the following lines in our mapfile in the LAYER section: > CLUSTER > MAXDISTANCE 15 > BUFFER 10 > REGION "ellipse" # This line is responsible for not being able to get the capabilities > END > > If we comment out the line REGION ?ellipse? we can get the complete capabilities. > > Hopefully somebody knows this problem and also knows a/the solution. > > Thanks for any help. > Luuk > > Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u > niet de geadresseerde bent of dit bericht abusievelijk aan u is gezonden, > wordt u verzocht dat aan de afzender te melden en het bericht te > verwijderen. > De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard > ook, die verband houdt met risico's verbonden aan het elektronisch > verzenden van berichten. > > This message may contain information that is not intended for you. If you > are not the addressee or if this message was sent to you by mistake, you > are requested to inform the sender and delete the message. > The State accepts no liability for damage of any kind resulting from the > risks inherent in the electronic transmission of messages. > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From l.schaminee at dictu.nl Tue Jun 4 02:27:48 2024 From: l.schaminee at dictu.nl (=?iso-8859-1?B?U2NoYW1pbullLCBkcnMuIEwuQy5XLiAoTHV1ayk=?=) Date: Tue, 4 Jun 2024 09:27:48 +0000 Subject: [MapServer-users] If clustering is used, the capabilities are not completely created In-Reply-To: References: Message-ID: SOLVED I got this response from Seth G. What does your GetCapabilities request look like (version etc.)? What error do you get? Does the LAYER have an EXTENT set on it? Maybe there is an issue with trying to calculate this dynamically - if there isn't an extent you could try adding one. And it worked. After adding the EXTENT to the LAYER I was able to get the capabilities, regardless of the line REGION "ellipse" being commented out or not. I created an issue for this on GitHub. It looks like it is an Oracle issue. We use Oracle as the database where the data is stored. Using a GeoJSON file I could get the capabilities regardless of the line being commented out or not. Original question: Hi List, Does anybody recognize this problem? We use clustering in a layer in our WMS. This works fine. But if we ask for the capabilities we get an error and only part of the capabilities.. We uise the following lines in our mapfile in the LAYER section: CLUSTER MAXDISTANCE 15 BUFFER 10 REGION "ellipse" # This line is responsible for not being able to get the capabilities END If we comment out the line REGION "ellipse" we can get the complete capabilities. Hopefully somebody knows this problem and also knows a/the solution. Thanks for any help. Luuk Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is gezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten. This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rob.Dennett at twdb.texas.gov Tue Jun 4 14:08:24 2024 From: Rob.Dennett at twdb.texas.gov (Rob Dennett) Date: Tue, 4 Jun 2024 21:08:24 +0000 Subject: [MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set. Message-ID: We're using the camptocamp MapServer image and I just tried changing the base image from 7.6 to 8.0, i.e. FROM camptocamp/mapserver:7.6 To FROM camptocamp/mapserver:8.0 in our own Dockerfile and when I try to deploy, We're seeing "msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set." on some endpoints (the ones ending in .map) The camptocamp image contains ENV MS_MAP_PATTERN=^\\/etc\\/mapserver\\/([^\\.][-_A-Za-z0-9\\.]+\\/{1})*([-_A-Za-z0-9\\.]+\\.map)$ (https://github.com/camptocamp/docker-mapserver/blob/8.0.0/Dockerfile#L85) and our own overwrites this env var anyway, along with MS_MAPFILE These haven't changed and they work fine as long as the base image is 7.6. The changelog mentions MS_MAPFILE, but as mentioned, we do define it. (https://github.com/camptocamp/docker-mapserver/blob/8.0.0/README.md#changelog) Any idea what might be happening? [https://opengraph.githubassets.com/89914d21a14748d29e5eb2cb7cf59e720bd216e41863d0bff2ca0e490950eddd/camptocamp/docker-mapserver] docker-mapserver/Dockerfile at 8.0.0 ? camptocamp/docker-mapserver https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub. github.com [https://opengraph.githubassets.com/89914d21a14748d29e5eb2cb7cf59e720bd216e41863d0bff2ca0e490950eddd/camptocamp/docker-mapserver] docker-mapserver/Dockerfile at 8.0.0 ? camptocamp/docker-mapserver https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub. github.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rob.Dennett at twdb.texas.gov Tue Jun 4 14:20:07 2024 From: Rob.Dennett at twdb.texas.gov (Rob Dennett) Date: Tue, 4 Jun 2024 21:20:07 +0000 Subject: [MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set. In-Reply-To: References: Message-ID: FYI, I found https://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg28778.html Though there the issue was a bad cert, IIUC. Here, literally the only thing that changed on our end was the base image in our Dockerfile. Thanks, Rob ________________________________ From: MapServer-users on behalf of Rob Dennett via MapServer-users Sent: Tuesday, June 4, 2024 4:08 PM To: Bob Basques via MapServer-users Cc: Chris Repka Subject: [MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set. External: Beware of links/attachments. We're using the camptocamp MapServer image and I just tried changing the base image from 7.6 to 8.0, i.e. FROM camptocamp/mapserver:7.6 To FROM camptocamp/mapserver:8.0 in our own Dockerfile and when I try to deploy, We're seeing "msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set." on some endpoints (the ones ending in .map) The camptocamp image contains ENV MS_MAP_PATTERN=^\\/etc\\/mapserver\\/([^\\.][-_A-Za-z0-9\\.]+\\/{1})*([-_A-Za-z0-9\\.]+\\.map)$ (https://github.com/camptocamp/docker-mapserver/blob/8.0.0/Dockerfile#L85) and our own overwrites this env var anyway, along with MS_MAPFILE These haven't changed and they work fine as long as the base image is 7.6. The changelog mentions MS_MAPFILE, but as mentioned, we do define it. (https://github.com/camptocamp/docker-mapserver/blob/8.0.0/README.md#changelog) Any idea what might be happening? [https://opengraph.githubassets.com/89914d21a14748d29e5eb2cb7cf59e720bd216e41863d0bff2ca0e490950eddd/camptocamp/docker-mapserver] docker-mapserver/Dockerfile at 8.0.0 ? camptocamp/docker-mapserver https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub. github.com [https://opengraph.githubassets.com/89914d21a14748d29e5eb2cb7cf59e720bd216e41863d0bff2ca0e490950eddd/camptocamp/docker-mapserver] docker-mapserver/Dockerfile at 8.0.0 ? camptocamp/docker-mapserver https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub. github.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Tue Jun 4 14:32:40 2024 From: sethg at geographika.co.uk (Seth G) Date: Tue, 04 Jun 2024 23:32:40 +0200 Subject: [MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set. In-Reply-To: References: Message-ID: <177e915f-1273-4db4-984d-5a6c56a55296@app.fastmail.com> Hi Rob, You could try uncommenting the MS_MAP_PATTERN in the mapserver.conf [1] file on your Docker image to see if that has an effect. You should also see a log file named /tmp/init_env that lists all the environment variables used by Apache (including MS_MAP_PATTERN), similar to below: export "MAPSERVER_CONFIG_FILE=/etc/mapserver/mapfiles/mapserver.conf" export "MAPSERVER_CATCH_SEGV=1" export "HOSTNAME=mapserver" export "APACHE_CONFDIR=/etc/apache2" export "BUSY_TIMEOUT=300" export "MS_ERRORFILE=mapserver-8.0.log" export "PWD=/etc/mapserver" export "IO_TIMEOUT=40" export "HOME=/root" export "APACHE_LOG_DIR=/var/log/apache2" export "MIN_PROCESSES=1" export "APACHE_PID_FILE=/tmp/apache2/apache2.pid" export "MS_MAP_PATTERN=^\/etc\/mapserver\/([^\.][-_A-Za-z0-9\.]+\/{1})*([-_A-Za-z0-9\.]+\.map)$" Seth [1] https://github.com/camptocamp/docker-mapserver/blob/cffc18f12146969ed914834b7eba4b798e9c24d9/runtime/etc/mapserver.conf#L15 [2] https://github.com/camptocamp/docker-mapserver/blob/31594debf18f091ad7ca5cf7126723bc014d9781/runtime/usr/local/bin/start-server#L8 -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Tue, Jun 4, 2024, at 11:08 PM, Rob Dennett via MapServer-users wrote: > We're using the camptocamp MapServer image and I just tried changing the base image from 7.6 to 8.0, i.e. > FROM camptocamp/mapserver:7.6 > > To > > FROM camptocamp/mapserver:8.0 > > in our own Dockerfile and when I try to deploy, We're seeing > > "msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set." > > on some endpoints (the ones ending in .map) > > The camptocamp image contains > > ENV MS_MAP_PATTERN=^\\/etc\\/mapserver\\/([^\\.][-_A-Za-z0-9\\.]+\\/{1})*([-_A-Za-z0-9\\.]+\\.map)$ > > (https://github.com/camptocamp/docker-mapserver/blob/8.0.0/Dockerfile#L85) > > and our own overwrites this env var anyway, along with MS_MAPFILE > > These haven't changed and they work fine as long as the base image is 7.6. The changelog mentions MS_MAPFILE, but as mentioned, we do define it. > > (https://github.com/camptocamp/docker-mapserver/blob/8.0.0/README.md#changelog) > > Any idea what might be happening? > docker-mapserver/Dockerfile at 8.0.0 ? camptocamp/docker-mapserver > https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub. > github.com > > docker-mapserver/Dockerfile at 8.0.0 ? camptocamp/docker-mapserver > https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub. > github.com > > > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rob.Dennett at twdb.texas.gov Wed Jun 5 12:21:18 2024 From: Rob.Dennett at twdb.texas.gov (Rob Dennett) Date: Wed, 5 Jun 2024 19:21:18 +0000 Subject: [MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set. In-Reply-To: <177e915f-1273-4db4-984d-5a6c56a55296@app.fastmail.com> References: <177e915f-1273-4db4-984d-5a6c56a55296@app.fastmail.com> Message-ID: Not sure how uncommenting something in the conf from camptocamp would help when we're actually setting MS_MAP_PATTERN in our Dockerfile which relies on the camptocamp one as a base image. I created a github issue for this as well and they advised running Docker run env | grep MS_ And I see MS_MAP_PATTERN defined there along with MS_MAPFILE set to what I am expecting. Wouldn't this prove that the environment variables are set correctly? ________________________________ From: Seth G Sent: Tuesday, June 4, 2024 4:32 PM To: Rob Dennett ; MapServer Users Cc: Chris Repka Subject: Re: [MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set. External: Beware of links/attachments. Hi Rob, You could try uncommenting the MS_MAP_PATTERN in the mapserver.conf [1] file on your Docker image to see if that has an effect. You should also see a log file named /tmp/init_env that lists all the environment variables used by Apache (including MS_MAP_PATTERN), similar to below: export "MAPSERVER_CONFIG_FILE=/etc/mapserver/mapfiles/mapserver.conf" export "MAPSERVER_CATCH_SEGV=1" export "HOSTNAME=mapserver" export "APACHE_CONFDIR=/etc/apache2" export "BUSY_TIMEOUT=300" export "MS_ERRORFILE=mapserver-8.0.log" export "PWD=/etc/mapserver" export "IO_TIMEOUT=40" export "HOME=/root" export "APACHE_LOG_DIR=/var/log/apache2" export "MIN_PROCESSES=1" export "APACHE_PID_FILE=/tmp/apache2/apache2.pid" export "MS_MAP_PATTERN=^\/etc\/mapserver\/([^\.][-_A-Za-z0-9\.]+\/{1})*([-_A-Za-z0-9\.]+\.map)$" Seth [1] https://github.com/camptocamp/docker-mapserver/blob/cffc18f12146969ed914834b7eba4b798e9c24d9/runtime/etc/mapserver.conf#L15 [2] https://github.com/camptocamp/docker-mapserver/blob/31594debf18f091ad7ca5cf7126723bc014d9781/runtime/usr/local/bin/start-server#L8 -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Tue, Jun 4, 2024, at 11:08 PM, Rob Dennett via MapServer-users wrote: We're using the camptocamp MapServer image and I just tried changing the base image from 7.6 to 8.0, i.e. FROM camptocamp/mapserver:7.6 To FROM camptocamp/mapserver:8.0 in our own Dockerfile and when I try to deploy, We're seeing "msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set." on some endpoints (the ones ending in .map) The camptocamp image contains ENV MS_MAP_PATTERN=^\\/etc\\/mapserver\\/([^\\.][-_A-Za-z0-9\\.]+\\/{1})*([-_A-Za-z0-9\\.]+\\.map)$ (https://github.com/camptocamp/docker-mapserver/blob/8.0.0/Dockerfile#L85) and our own overwrites this env var anyway, along with MS_MAPFILE These haven't changed and they work fine as long as the base image is 7.6. The changelog mentions MS_MAPFILE, but as mentioned, we do define it. (https://github.com/camptocamp/docker-mapserver/blob/8.0.0/README.md#changelog) Any idea what might be happening? [https://opengraph.githubassets.com/89914d21a14748d29e5eb2cb7cf59e720bd216e41863d0bff2ca0e490950eddd/camptocamp/docker-mapserver] docker-mapserver/Dockerfile at 8.0.0 ? camptocamp/docker-mapserver https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub. github.com [https://opengraph.githubassets.com/89914d21a14748d29e5eb2cb7cf59e720bd216e41863d0bff2ca0e490950eddd/camptocamp/docker-mapserver] docker-mapserver/Dockerfile at 8.0.0 ? camptocamp/docker-mapserver https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub. github.com _______________________________________________ MapServer-users mailing list MapServer-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Wed Jun 5 14:35:51 2024 From: sethg at geographika.co.uk (Seth G) Date: Wed, 05 Jun 2024 23:35:51 +0200 Subject: [MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set. In-Reply-To: References: <177e915f-1273-4db4-984d-5a6c56a55296@app.fastmail.com> Message-ID: <0ca43830-5f36-42a5-a533-0d86a346c09b@app.fastmail.com> Try setting MAPSERVER_CONFIG_FILE to point to a mapserver.conf in your own Dockerfile and setting MS_MAP_PATTERN in this config file. Without seeing your custom Dockerfile it is hard to know what could be removing an environment variable - it is simpler to control things with a config file. If you check the /tmp/init_env file you should see the variables that are passed to the Apache environment (which is different from the system environment). If you override the default CMD ["/usr/local/bin/start-server"] then these env variables won't be set. -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Wed, Jun 5, 2024, at 9:21 PM, Rob Dennett wrote: > Not sure how uncommenting something in the conf from camptocamp would help when we're actually setting MS_MAP_PATTERN in our Dockerfile which relies on the camptocamp one as a base image. I created a github issue for this as well and they advised running > > Docker run env | grep MS_ > > And I see MS_MAP_PATTERN defined there along with MS_MAPFILE set to what I am expecting. Wouldn't this prove that the environment variables are set correctly? > > > *From:* Seth G > *Sent:* Tuesday, June 4, 2024 4:32 PM > *To:* Rob Dennett ; MapServer Users > *Cc:* Chris Repka > *Subject:* Re: [MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set. > > *External: Beware of links/attachments.* > > > > Hi Rob, > > You could try uncommenting the MS_MAP_PATTERN in the mapserver.conf [1] file on your Docker image to see if that has an effect. > > You should also see a log file named /tmp/init_env that lists all the environment variables used by Apache (including MS_MAP_PATTERN), similar to below: > > export "MAPSERVER_CONFIG_FILE=/etc/mapserver/mapfiles/mapserver.conf" > export "MAPSERVER_CATCH_SEGV=1" > export "HOSTNAME=mapserver" > export "APACHE_CONFDIR=/etc/apache2" > export "BUSY_TIMEOUT=300" > export "MS_ERRORFILE=mapserver-8.0.log" > export "PWD=/etc/mapserver" > export "IO_TIMEOUT=40" > export "HOME=/root" > export "APACHE_LOG_DIR=/var/log/apache2" > export "MIN_PROCESSES=1" > export "APACHE_PID_FILE=/tmp/apache2/apache2.pid" > export "MS_MAP_PATTERN=^\/etc\/mapserver\/([^\.][-_A-Za-z0-9\.]+\/{1})*([-_A-Za-z0-9\.]+\.map)$" > > Seth > > [1] https://github.com/camptocamp/docker-mapserver/blob/cffc18f12146969ed914834b7eba4b798e9c24d9/runtime/etc/mapserver.conf#L15 > [2] https://github.com/camptocamp/docker-mapserver/blob/31594debf18f091ad7ca5cf7126723bc014d9781/runtime/usr/local/bin/start-server#L8 > > -- > web:https://geographika.net & https://mapserverstudio.net > twitter: @geographika > > On Tue, Jun 4, 2024, at 11:08 PM, Rob Dennett via MapServer-users wrote: >> We're using the camptocamp MapServer image and I just tried changing the base image from 7.6 to 8.0, i.e. >> FROM camptocamp/mapserver:7.6 >> >> To >> >> FROM camptocamp/mapserver:8.0 >> >> in our own Dockerfile and when I try to deploy, We're seeing >> >> "msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set." >> >> on some endpoints (the ones ending in .map) >> >> The camptocamp image contains >> >> ENV MS_MAP_PATTERN=^\\/etc\\/mapserver\\/([^\\.][-_A-Za-z0-9\\.]+\\/{1})*([-_A-Za-z0-9\\.]+\\.map)$ >> >> (https://github.com/camptocamp/docker-mapserver/blob/8.0.0/Dockerfile#L85) >> >> and our own overwrites this env var anyway, along with MS_MAPFILE >> >> These haven't changed and they work fine as long as the base image is 7.6. The changelog mentions MS_MAPFILE, but as mentioned, we do define it. >> >> (https://github.com/camptocamp/docker-mapserver/blob/8.0.0/README.md#changelog) >> >> Any idea what might be happening? >> docker-mapserver/Dockerfile at 8.0.0 ? camptocamp/docker-mapserver >> https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub. >> github.com >> >> docker-mapserver/Dockerfile at 8.0.0 ? camptocamp/docker-mapserver >> https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub. >> github.com >> >> >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rob.Dennett at twdb.texas.gov Wed Jun 5 14:42:36 2024 From: Rob.Dennett at twdb.texas.gov (Rob Dennett) Date: Wed, 5 Jun 2024 21:42:36 +0000 Subject: [MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set. In-Reply-To: <0ca43830-5f36-42a5-a533-0d86a346c09b@app.fastmail.com> References: <177e915f-1273-4db4-984d-5a6c56a55296@app.fastmail.com> <0ca43830-5f36-42a5-a533-0d86a346c09b@app.fastmail.com> Message-ID: Here's the result of Cat /tmp/init_env | grep MS_ MS_ERRORFILE=stderr MS_MAP_PATTERN=/(.*?)mapfiles/(.*?).map MS_MAPFILE=/my_mapfiles/xxxx.map MS_DEBUGLEVEL=1 And here's the Dockerfile: FROM camptocamp/mapserver:8.0 # overwrite apache conf for custom url routes ADD mapserver.conf /etc/apache2/conf-enabled/mapserver.conf RUN chown root /etc/apache2/conf-enabled/mapserver.conf ADD 000-default.conf /etc/apache2/sites-available/000-default.conf # enable apache modules with symlinks RUN ln -s /etc/apache2/mods-available/dir.load /etc/apache2/mods-enabled/dir.load RUN ln -s /etc/apache2/mods-available/dir.conf /etc/apache2/mods-enabled/dir.conf RUN ln -s /etc/apache2/mods-available/autoindex.load /etc/apache2/mods-enabled/autoindex.load RUN ln -s /etc/apache2/mods-available/autoindex.conf /etc/apache2/mods-enabled/autoindex.conf RUN ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load # re-apply disabled alias module conf for icons RUN ln -s /etc/apache2/mods-available/alias.conf /etc/apache2/mods-enabled/alias.conf # setup mapserver env variables ADD mapserv.env /docker-entrypoint.d/mapserv.env ENV MS_DEBUGLEVEL=1 ENV MS_ERRORFILE=stderr ENV MS_MAP_PATTERN="/(.*?)mapfiles/(.*?).map" ENV MS_MAPFILE="/my_mapfiles/xxxx.map" EXPOSE 80 The only difference between this and the one that works is the base image is 7.6, not 8.0 ________________________________ From: Seth G Sent: Wednesday, June 5, 2024 4:35 PM To: Rob Dennett ; MapServer Users Cc: Chris Repka Subject: Re: [MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set. External: Beware of links/attachments. Try setting MAPSERVER_CONFIG_FILE to point to a mapserver.conf in your own Dockerfile and setting MS_MAP_PATTERN in this config file. Without seeing your custom Dockerfile it is hard to know what could be removing an environment variable - it is simpler to control things with a config file. If you check the /tmp/init_env file you should see the variables that are passed to the Apache environment (which is different from the system environment). If you override the default CMD ["/usr/local/bin/start-server"] then these env variables won't be set. -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Wed, Jun 5, 2024, at 9:21 PM, Rob Dennett wrote: Not sure how uncommenting something in the conf from camptocamp would help when we're actually setting MS_MAP_PATTERN in our Dockerfile which relies on the camptocamp one as a base image. I created a github issue for this as well and they advised running Docker run env | grep MS_ And I see MS_MAP_PATTERN defined there along with MS_MAPFILE set to what I am expecting. Wouldn't this prove that the environment variables are set correctly? ________________________________ From: Seth G Sent: Tuesday, June 4, 2024 4:32 PM To: Rob Dennett ; MapServer Users Cc: Chris Repka Subject: Re: [MapServer-users] Getting msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set. External: Beware of links/attachments. Hi Rob, You could try uncommenting the MS_MAP_PATTERN in the mapserver.conf [1] file on your Docker image to see if that has an effect. You should also see a log file named /tmp/init_env that lists all the environment variables used by Apache (including MS_MAP_PATTERN), similar to below: export "MAPSERVER_CONFIG_FILE=/etc/mapserver/mapfiles/mapserver.conf" export "MAPSERVER_CATCH_SEGV=1" export "HOSTNAME=mapserver" export "APACHE_CONFDIR=/etc/apache2" export "BUSY_TIMEOUT=300" export "MS_ERRORFILE=mapserver-8.0.log" export "PWD=/etc/mapserver" export "IO_TIMEOUT=40" export "HOME=/root" export "APACHE_LOG_DIR=/var/log/apache2" export "MIN_PROCESSES=1" export "APACHE_PID_FILE=/tmp/apache2/apache2.pid" export "MS_MAP_PATTERN=^\/etc\/mapserver\/([^\.][-_A-Za-z0-9\.]+\/{1})*([-_A-Za-z0-9\.]+\.map)$" Seth [1] https://github.com/camptocamp/docker-mapserver/blob/cffc18f12146969ed914834b7eba4b798e9c24d9/runtime/etc/mapserver.conf#L15 [2] https://github.com/camptocamp/docker-mapserver/blob/31594debf18f091ad7ca5cf7126723bc014d9781/runtime/usr/local/bin/start-server#L8 -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Tue, Jun 4, 2024, at 11:08 PM, Rob Dennett via MapServer-users wrote: We're using the camptocamp MapServer image and I just tried changing the base image from 7.6 to 8.0, i.e. FROM camptocamp/mapserver:7.6 To FROM camptocamp/mapserver:8.0 in our own Dockerfile and when I try to deploy, We're seeing "msCGILoadMap(): Web application error. Required configuration value MS_MAP_PATTERN not set." on some endpoints (the ones ending in .map) The camptocamp image contains ENV MS_MAP_PATTERN=^\\/etc\\/mapserver\\/([^\\.][-_A-Za-z0-9\\.]+\\/{1})*([-_A-Za-z0-9\\.]+\\.map)$ (https://github.com/camptocamp/docker-mapserver/blob/8.0.0/Dockerfile#L85) and our own overwrites this env var anyway, along with MS_MAPFILE These haven't changed and they work fine as long as the base image is 7.6. The changelog mentions MS_MAPFILE, but as mentioned, we do define it. (https://github.com/camptocamp/docker-mapserver/blob/8.0.0/README.md#changelog) Any idea what might be happening? [https://opengraph.githubassets.com/89914d21a14748d29e5eb2cb7cf59e720bd216e41863d0bff2ca0e490950eddd/camptocamp/docker-mapserver] docker-mapserver/Dockerfile at 8.0.0 ? camptocamp/docker-mapserver https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub. github.com [https://opengraph.githubassets.com/89914d21a14748d29e5eb2cb7cf59e720bd216e41863d0bff2ca0e490950eddd/camptocamp/docker-mapserver] docker-mapserver/Dockerfile at 8.0.0 ? camptocamp/docker-mapserver https://hub.docker.com/r/camptocamp/mapserver/. Contribute to camptocamp/docker-mapserver development by creating an account on GitHub. github.com _______________________________________________ MapServer-users mailing list MapServer-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From zmitserk at mail.ru Fri Jun 7 03:08:45 2024 From: zmitserk at mail.ru (=?UTF-8?B?Wm1pdHNlciBLb3podWto?=) Date: Fri, 07 Jun 2024 13:08:45 +0300 Subject: [MapServer-users] =?utf-8?q?mapserver_union_layer_of_type_chart?= Message-ID: <1717754925.116256052@f187.i.mail.ru> ? Hello, ? just? wondering?weather it is possible to have union (by?connectiontype) layer of type chart?? Yesterday I have tried, but each time got an empty image. ? Configuration looks like: ? LAYER ? NAME union_layer_name ? TYPE? ? ? ? ?CHART ? #PROCESSING "CHART_TYPE=pie" ? #PROCESSING "CHART_SIZE_RANGE=c 30 100 2 2000000 5" ? PROCESSING "ITEMS=province,c,n,y,ts,level_code" ? STYLEITEM "AUTO" ? STATUS DEFAULT ? CONNECTIONTYPE UNION ? CONNECTION "layer1,layer2 etc." ? METADATA ? ? ? ows_title ? ? ? ? "name" ? ? ? ows_include_items '*' ? ? ? gml_include_items "all" ? ? ? gml_geom_type "point" ? ? ? ows_enable_request '*' ? ? ? "wms_timeextent" "2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023" ? ? ? "wms_timeitem" "ts" ? ? ? "wms_timedefault" "2009" ? END ?? ? PROJECTION ? ? "init=epsg:4326" ? END ?? ? VALIDATION ? ? 'time' '[0-9]{4}' ? ? 'default_time' '2009' ? END ?? ? ? CLASS? ? ? END ?? ? END ?? LAYER? ? ? NAME ?layer1 ? ? CONNECTIONTYPE POSTGIS ? ? CONNECTION "host=x dbname=x?user=x?password=x" ? ? DATA "geom_p from (... ) ? foo using unique province using srid=4326" ? ?? ? ? STATUS ? ? ? ON ? ? TYPE ? ? ? ? CHART ? ? PROCESSING "CHART_TYPE=pie" ? ? PROCESSING "CHART_SIZE_RANGE=c 30 100 2 2000000 5" ? ? STATUS ON ? ? PROCESSING "LABEL_NO_CLIP=True" ? ?? ? ? PROJECTION ? ? ? "init=epsg:4326" ? ? END ? ?? ? ? VALIDATION ? ? 'time' '[0-9]{4}' ? ? 'default_time' '2009' ? ? END ? ?? ? ? METADATA ? ? ? wms_title "layer 1" ? ? ? gml_include_items "all" ? ? ? gml_geom_type "point" ? ? ? ows_include_items ?"all" ? ? ? ows_enable_request "*" ? ? ? "wms_timeextent" "2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023" ? ? ? "wms_timeitem" "ts" ? ? ? "wms_timedefault" "2009" ? ? END ? ?? ? ? MAXSCALEDENOM 10000001 ? ? MINSCALEDENOM 1200001 ? ? ? FILTER ([level_code]=1) ? ?? etc... ? If I uncomment these lines in union layer: ? #PROCESSING "CHART_TYPE=pie" ? #PROCESSING "CHART_SIZE_RANGE=c 30 100 2 2000000 5" ? This?works but returns an empty image. And if these lines are not there ,?mapserver breaks?with internal error. ? I have looked briefly through documentation but nowhere?was mentioned that union layer doesn?t support type chart, so maybe there is something missing in my mapfile. ? Another thing is that may be there are other better?option for me rather than using union layer. The thing is that I?would like to draw map charts for different administrative units based on?map scales, let?s say if I am in small map scale to draw chart for the country, if I zoom in ??for district, and if I zoom further ??for municipality. I have tried to keep it all in one layer of type chart and use this type of class definitions: class expression ([level_code]=1) minscaledenom 1000000 maxscaledenom 500000 ?.. ? But it didn?t? work ??apparently in layer of type chart keyword expression is not used in the same?way as in other layers. So,? would be grateful if someone could help me?with this. ? Sincerely, Zmitser ? ? ? -- Zmitser Kozhukh -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Jun 8 13:03:07 2024 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 8 Jun 2024 17:03:07 -0300 Subject: [MapServer-users] 8.2.0-beta2 released Message-ID: <1011341a-d827-4bde-97b4-b89005007286@gatewaygeomatics.com> The MapServer team is excited to announce the second beta release of MapServer 8.2.0. Please help us test and let us know of any findings. Details of the new features, changelog, migration instructions, and download links can be found on the dedicated announcement page at https://mapserver.org/development/announce/8-2.html . (a few issues were quickly found in the first beta, so a quick second beta was released, as "release numbers are cheap") We're on schedule for a release candidate this coming Friday. -- The MapServer Team From benedek.petrovicz at gmail.com Mon Jun 10 01:25:05 2024 From: benedek.petrovicz at gmail.com (Benedek Petrovicz) Date: Mon, 10 Jun 2024 10:25:05 +0200 Subject: [MapServer-users] Font file gets locked by the mapserv process Message-ID: Hi! When trying to make a new deploy on our server we get an error that the font file which is being used for WMS requests is locked by the mapserv process and cannot be overwritten. I re-created the issue on a local test environment. (OS: Windows, mapserv is running on IIS) I send a WMS request to mapserv, where I use an arial.ttf font file. After the request is fulfilled, IIS keeps the process running for a while to be prepared for any additional requests. Even though no requests are coming in, mapserv keeps a lock on the font file. I can delete/overwrite any other files (mapfiles, fontset.list, etc.), but not that single font file. After the process reaches its idle time limit (which is set in IIS) and terminates, the file is not being locked anymore. Is there a specific reason for keeping that font file locked while idling? Can I prevent this somehow? Thanks Petrovicz -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbasques at sharedgeo.org Mon Jun 10 19:47:37 2024 From: bbasques at sharedgeo.org (Bob Basques) Date: Mon, 10 Jun 2024 21:47:37 -0500 Subject: [MapServer-users] [ANNOUNCEMENT] Twin Cities Local Chapter (aka TCMUG) Meeting Message-ID: Hello, Our next meeting will be at the Wandering Leaf Brewery . Time: 4:30 - 6:00 Date: June 12th, 2024 Location: Sibley Plaza See you there. bobb -- Bob Basques bbasques at sharedgeo.org 612.598.9210 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Mon Jun 10 23:58:46 2024 From: sethg at geographika.co.uk (Seth G) Date: Tue, 11 Jun 2024 08:58:46 +0200 Subject: [MapServer-users] Font file gets locked by the mapserv process In-Reply-To: References: Message-ID: Hi Petrovicz, Is this running using CGI or FastCGI? Why do you need to overwrite the font file? If it is to redeploy MapServer applications, I normally stop IIS first as part of the deployment script, and add a wait/sleep so it is actually stopped before copying over new files. Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Mon, Jun 10, 2024, at 10:25 AM, Benedek Petrovicz via MapServer-users wrote: > Hi! > > When trying to make a new deploy on our server we get an error that the font file which is being used for WMS requests is locked by the mapserv process and cannot be overwritten. > I re-created the issue on a local test environment. (OS: Windows, mapserv is running on IIS) > > I send a WMS request to mapserv, where I use an arial.ttf font file. > After the request is fulfilled, IIS keeps the process running for a while to be prepared for any additional requests. > Even though no requests are coming in, mapserv keeps a lock on the font file. > I can delete/overwrite any other files (mapfiles, fontset.list, etc.), but not that single font file. > After the process reaches its idle time limit (which is set in IIS) and terminates, the file is not being locked anymore. > > Is there a specific reason for keeping that font file locked while idling? > Can I prevent this somehow? > > Thanks > Petrovicz > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaques.tati at gmx.net Tue Jun 11 00:31:24 2024 From: jaques.tati at gmx.net (Jaques Tati) Date: Tue, 11 Jun 2024 09:31:24 +0200 Subject: [MapServer-users] Cluster style crashes MapServer 8 Message-ID: <03c6f9cb-74f3-4ff6-ac14-69ed4bbeb8d0@gmx.net> Hi There, in our application we're upgrading our v7.6 MapServer to v8.01. Everything seems to work good so far but we have one layer that uses Clustering of points and whenever this layer should be displayed MapServer 8 crashes reproducably. This layer works flawless in v7.6 and clustering is setup exactly from the book. When i comment clustering out, the layer is displayed, so all other style features do work. Datasource is a PostGIS layer, webserver is Apache 2.4.59. Looking at the debug output, the data comes back as expected from the database, even clustering is logged and no error in the MapServer-Logfile. The crash is reported in Windows Application-Eventlog with only cryptic reasons that do not really result in any valid answers when googling. ..there is a word "StackHash" included that might point to DEP (DataExecutionPrevention) of Windows, - but since all other layers do work with the MapServer-Exe it would be hard to understand why windows does prevent the output of clustered layers. We're using Windows Server 2022 21H2 Datacenter Edition, 8 CPU 32GB RAM. Anyone heard of this crude behaviour, I'm running out of ideas? Thanks in advance for any hint SH From sethg at geographika.co.uk Tue Jun 11 00:51:06 2024 From: sethg at geographika.co.uk (Seth G) Date: Tue, 11 Jun 2024 09:51:06 +0200 Subject: [MapServer-users] Cluster style crashes MapServer 8 In-Reply-To: <03c6f9cb-74f3-4ff6-ac14-69ed4bbeb8d0@gmx.net> References: <03c6f9cb-74f3-4ff6-ac14-69ed4bbeb8d0@gmx.net> Message-ID: <6e4d63fb-f0ed-4700-92a6-efec3954cded@app.fastmail.com> Hi, A couple of things to try to narrow down the issue: 1. If you are able to export the PostGIS layer to a shapefile, then you can change the DATA of the layer and see if there is still a crash. 2. Is there an EXTENT set on the layer? I ran into an issue using MS SQL [1] and clustering. Try adding one manually. Seth [1] https://github.com/MapServer/MapServer/pull/6278 -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Tue, Jun 11, 2024, at 9:31 AM, Jaques Tati via MapServer-users wrote: > Hi There, > > in our application we're upgrading our v7.6 MapServer to v8.01. > Everything seems to work good so far but we have one layer that uses > Clustering of points > and whenever this layer should be displayed MapServer 8 crashes > reproducably. > > This layer works flawless in v7.6 and clustering is setup exactly from > the book. > When i comment clustering out, the layer is displayed, so all other > style features do work. > Datasource is a PostGIS layer, webserver is Apache 2.4.59. > > Looking at the debug output, the data comes back as expected from the > database, > even clustering is logged and no error in the MapServer-Logfile. > The crash is reported in Windows Application-Eventlog with only cryptic > reasons that do > not really result in any valid answers when googling. > ..there is a word "StackHash" included that might point to DEP > (DataExecutionPrevention) > of Windows, - but since all other layers do work with the MapServer-Exe > it would be hard > to understand why windows does prevent the output of clustered layers. > > We're using Windows Server 2022 21H2 Datacenter Edition, 8 CPU 32GB RAM. > > Anyone heard of this crude behaviour, I'm running out of ideas? > > Thanks in advance for any hint > > SH > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jaques.tati at gmx.net Tue Jun 11 01:14:05 2024 From: jaques.tati at gmx.net (Jaques Tati) Date: Tue, 11 Jun 2024 10:14:05 +0200 Subject: [MapServer-users] Cluster style crashes MapServer 8 In-Reply-To: <6e4d63fb-f0ed-4700-92a6-efec3954cded@app.fastmail.com> References: <03c6f9cb-74f3-4ff6-ac14-69ed4bbeb8d0@gmx.net> <6e4d63fb-f0ed-4700-92a6-efec3954cded@app.fastmail.com> Message-ID: <7c563231-2234-47e0-a76b-87e46171a136@gmx.net> Hi Seth, layer has an EXTEND (ensured this after reading the results of a search through this mailing list). I also did a mapserver 8 setup with a postgis layer and the same layer definition on my private laptop also with a postgis source and it works flawless. - but it uses IIS as webserver. I wrote, that according to logging the data comes back from the postgreSQL source and when i do comment out the CLUSTER the data is correctly displayed. But, i will try to test your idea about the shapefile source, will come back then. thanks anyway and BR Stefan Am 11.06.2024 um 09:51 schrieb Seth G: > Hi, > > A couple of things to try to narrow down the issue: > > 1. If you are able to export the PostGIS layer to a shapefile, then you can change the DATA of the layer and see if there is still a crash. > 2. Is there an EXTENT set on the layer? I ran into an issue using MS SQL [1] and clustering. Try adding one manually. > > Seth > > > [1] https://github.com/MapServer/MapServer/pull/6278 > > -- > web:https://geographika.net & https://mapserverstudio.net > twitter: @geographika > > On Tue, Jun 11, 2024, at 9:31 AM, Jaques Tati via MapServer-users wrote: >> Hi There, >> >> in our application we're upgrading our v7.6 MapServer to v8.01. >> Everything seems to work good so far but we have one layer that uses >> Clustering of points >> and whenever this layer should be displayed MapServer 8 crashes >> reproducably. >> >> This layer works flawless in v7.6 and clustering is setup exactly from >> the book. >> When i comment clustering out, the layer is displayed, so all other >> style features do work. >> Datasource is a PostGIS layer, webserver is Apache 2.4.59. >> >> Looking at the debug output, the data comes back as expected from the >> database, >> even clustering is logged and no error in the MapServer-Logfile. >> The crash is reported in Windows Application-Eventlog with only cryptic >> reasons that do >> not really result in any valid answers when googling. >> ..there is a word "StackHash" included that might point to DEP >> (DataExecutionPrevention) >> of Windows, - but since all other layers do work with the MapServer-Exe >> it would be hard >> to understand why windows does prevent the output of clustered layers. >> >> We're using Windows Server 2022 21H2 Datacenter Edition, 8 CPU 32GB RAM. >> >> Anyone heard of this crude behaviour, I'm running out of ideas? >> >> Thanks in advance for any hint >> >> SH >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users From jaques.tati at gmx.net Tue Jun 11 08:21:07 2024 From: jaques.tati at gmx.net (Jaques Tati) Date: Tue, 11 Jun 2024 17:21:07 +0200 Subject: [MapServer-users] SOLVED Re: Cluster style crashes MapServer 8 In-Reply-To: <7c563231-2234-47e0-a76b-87e46171a136@gmx.net> References: <03c6f9cb-74f3-4ff6-ac14-69ed4bbeb8d0@gmx.net> <6e4d63fb-f0ed-4700-92a6-efec3954cded@app.fastmail.com> <7c563231-2234-47e0-a76b-87e46171a136@gmx.net> Message-ID: <6092d07f-f7b3-408f-9cf6-9777239db742@gmx.net> Hi, well, that was a journey. I was able to grap a .dmp-file created by a mapserver-crash (not so easy cause it gets deleted very fast automatically by windows) and windbg revealed, that the crash happens in the libpq.dll of the MapServer-Distribution of gisinternals, caused by the uacrtbase.dll. Microsoft claims, that regardless of how many uacrtbase.dll's there are at different locations on your machine, only the OS-Version somewhere in the windows-directory is used. Since i couldn't change this dll i searched for another version of the libpq.dll and after testing many, the libpq.dll from the current OSGeo4W - QGis-Install-Directory solves the problem (just replace the orginal with the OSGeo4W-Version). After copying the file the clustered and all other postgis layers worked again as expected. It seems to be dependend on the version of the uacrtbase.dll on your system. The version on our windows server is 10.0.20348.2461 and it works with libpq.dll v16.2. BR Stefan Am 11.06.2024 um 10:14 schrieb Jaques Tati via MapServer-users: > Hi Seth, > > layer has an EXTEND (ensured this after reading the results of a search > through this mailing list). > I also did a mapserver 8 setup with a postgis layer and the same layer > definition on my private laptop > also with a postgis source and it works flawless. - but it uses IIS as > webserver. > I wrote, that according to logging the data comes back from the > postgreSQL source and when i do > comment out the CLUSTER the data is correctly displayed. > But, i will try to test your idea about the shapefile source, will come > back then. > > thanks anyway and BR > Stefan > > Am 11.06.2024 um 09:51 schrieb Seth G: >> Hi, >> >> A couple of things to try to narrow down the issue: >> >> 1. If you are able to export the PostGIS layer to a shapefile, then >> you can change the DATA of the layer and see if there is still a crash. >> 2. Is there an EXTENT set on the layer? I ran into an issue using MS >> SQL [1] and clustering. Try adding one manually. >> >> Seth >> >> >> [1] https://github.com/MapServer/MapServer/pull/6278 >> >> -- >> web:https://geographika.net & https://mapserverstudio.net >> twitter: @geographika >> >> On Tue, Jun 11, 2024, at 9:31 AM, Jaques Tati via MapServer-users wrote: >>> Hi There, >>> >>> in our application we're upgrading our v7.6 MapServer to v8.01. >>> Everything seems to work good so far but we have one layer that uses >>> Clustering of points >>> and whenever this layer should be displayed MapServer 8 crashes >>> reproducably. >>> >>> This layer works flawless in v7.6 and clustering is setup exactly from >>> the book. >>> When i comment clustering out, the layer is displayed, so all other >>> style features do work. >>> Datasource is a PostGIS layer, webserver is Apache 2.4.59. >>> >>> Looking at the debug output, the data comes back as expected from the >>> database, >>> even clustering is logged and no error in the MapServer-Logfile. >>> The crash is reported in Windows Application-Eventlog with only cryptic >>> reasons that do >>> not really result in any valid answers when googling. >>> ..there is a word "StackHash" included that might point to DEP >>> (DataExecutionPrevention) >>> of Windows, - but since all other layers do work with the MapServer-Exe >>> it would be hard >>> to understand why windows does prevent the output of clustered layers. >>> >>> We're using Windows Server 2022 21H2 Datacenter Edition, 8 CPU 32GB >>> RAM. >>> >>> Anyone heard of this crude behaviour, I'm running out of ideas? >>> >>> Thanks in advance for any hint >>> >>> SH >>> _______________________________________________ >>> MapServer-users mailing list >>> MapServer-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Tue Jun 11 14:54:50 2024 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 11 Jun 2024 18:54:50 -0300 Subject: [MapServer-users] security releases available: 8.2.0-beta3, 8.0.2, 7.6.6 Message-ID: <362a1fd3-75b6-4b7e-bd40-86d5c143f47d@gatewaygeomatics.com> The MapServer team announces security releases for 8.2.0-beta3, 8.0.2, 7.6.6 These releases address a security flaw of potential SQL injections related to regex validation (ticket #7075). Details of the ongoing 8.2.0 release can be found at https://mapserver.org/development/announce/8-2.html Here are the direct downloads for today's releases: - 8.2.0-beta3: https://download.osgeo.org/mapserver/mapserver-8.2.0-beta3.tar.gz - 8.0.3: https://download.osgeo.org/mapserver/mapserver-8.0.2.tar.gz - 7.6.6: https://download.osgeo.org/mapserver/mapserver-7.6.6.tar.gz (all services on demo.mapserver.org have been upgraded as well) Thanks, -- The MapServer Team From sethg at geographika.co.uk Wed Jun 12 00:31:22 2024 From: sethg at geographika.co.uk (Seth G) Date: Wed, 12 Jun 2024 09:31:22 +0200 Subject: [MapServer-users] SOLVED Re: Cluster style crashes MapServer 8 In-Reply-To: <6092d07f-f7b3-408f-9cf6-9777239db742@gmx.net> References: <03c6f9cb-74f3-4ff6-ac14-69ed4bbeb8d0@gmx.net> <6e4d63fb-f0ed-4700-92a6-efec3954cded@app.fastmail.com> <7c563231-2234-47e0-a76b-87e46171a136@gmx.net> <6092d07f-f7b3-408f-9cf6-9777239db742@gmx.net> Message-ID: <96a0fc0a-747f-4494-ab41-653fc29e7372@app.fastmail.com> Hi, Glad you got it working! What version of the GIS Internal releases were you using? Each one uses different MSVC runtime libraries. For example, the 1930 in the download release-1930-x64-gdal-3-8-5-mapserver-8-0-1.zip indicates MSVC 2022. There is a full list at https://www.gisinternals.com/sdk.php. The server will need to have the corresponding "Microsoft Visual C++ Redistributable" installed, which includes uacrtbase.dll (I thought you could have several of these though). These can be downloaded from https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 These may or may not already be installed on your Windows Server, you can check with the following command: wmic product where "name like 'Microsoft Visual C++%'" get name,version Your server seems to be Windows 2022, which should include MSVC 2022 and work with any of the GISInternals 1930 releases, so if you are already using these then it could be a different issue. The GISInternals use pgsql - REL_14_0 rather than 16. Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Tue, Jun 11, 2024, at 5:21 PM, Jaques Tati via MapServer-users wrote: > Hi, > > well, that was a journey. > I was able to grap a .dmp-file created by a mapserver-crash (not so easy > cause it gets > deleted very fast automatically by windows) and windbg revealed, that > the crash > happens in the libpq.dll of the MapServer-Distribution of gisinternals, > caused by > the uacrtbase.dll. > Microsoft claims, that regardless of how many uacrtbase.dll's there are > at different locations > on your machine, only the OS-Version somewhere in the windows-directory > is used. > Since i couldn't change this dll i searched for another version of the > libpq.dll and after testing many, > the libpq.dll from the current OSGeo4W - QGis-Install-Directory solves > the problem > (just replace the orginal with the OSGeo4W-Version). > After copying the file the clustered and all other postgis layers worked > again as > expected. > It seems to be dependend on the version of the uacrtbase.dll on your system. > The version on our windows server is 10.0.20348.2461 and it works with > libpq.dll v16.2. > > BR > Stefan > > Am 11.06.2024 um 10:14 schrieb Jaques Tati via MapServer-users: >> Hi Seth, >> >> layer has an EXTEND (ensured this after reading the results of a search >> through this mailing list). >> I also did a mapserver 8 setup with a postgis layer and the same layer >> definition on my private laptop >> also with a postgis source and it works flawless. - but it uses IIS as >> webserver. >> I wrote, that according to logging the data comes back from the >> postgreSQL source and when i do >> comment out the CLUSTER the data is correctly displayed. >> But, i will try to test your idea about the shapefile source, will come >> back then. >> >> thanks anyway and BR >> Stefan >> >> Am 11.06.2024 um 09:51 schrieb Seth G: >>> Hi, >>> >>> A couple of things to try to narrow down the issue: >>> >>> 1. If you are able to export the PostGIS layer to a shapefile, then >>> you can change the DATA of the layer and see if there is still a crash. >>> 2. Is there an EXTENT set on the layer? I ran into an issue using MS >>> SQL [1] and clustering. Try adding one manually. >>> >>> Seth >>> >>> >>> [1] https://github.com/MapServer/MapServer/pull/6278 >>> >>> -- >>> web:https://geographika.net & https://mapserverstudio.net >>> twitter: @geographika >>> >>> On Tue, Jun 11, 2024, at 9:31 AM, Jaques Tati via MapServer-users wrote: >>>> Hi There, >>>> >>>> in our application we're upgrading our v7.6 MapServer to v8.01. >>>> Everything seems to work good so far but we have one layer that uses >>>> Clustering of points >>>> and whenever this layer should be displayed MapServer 8 crashes >>>> reproducably. >>>> >>>> This layer works flawless in v7.6 and clustering is setup exactly from >>>> the book. >>>> When i comment clustering out, the layer is displayed, so all other >>>> style features do work. >>>> Datasource is a PostGIS layer, webserver is Apache 2.4.59. >>>> >>>> Looking at the debug output, the data comes back as expected from the >>>> database, >>>> even clustering is logged and no error in the MapServer-Logfile. >>>> The crash is reported in Windows Application-Eventlog with only cryptic >>>> reasons that do >>>> not really result in any valid answers when googling. >>>> ..there is a word "StackHash" included that might point to DEP >>>> (DataExecutionPrevention) >>>> of Windows, - but since all other layers do work with the MapServer-Exe >>>> it would be hard >>>> to understand why windows does prevent the output of clustered layers. >>>> >>>> We're using Windows Server 2022 21H2 Datacenter Edition, 8 CPU 32GB >>>> RAM. >>>> >>>> Anyone heard of this crude behaviour, I'm running out of ideas? >>>> >>>> Thanks in advance for any hint >>>> >>>> SH >>>> _______________________________________________ >>>> MapServer-users mailing list >>>> MapServer-users at lists.osgeo.org >>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jaques.tati at gmx.net Wed Jun 12 00:37:52 2024 From: jaques.tati at gmx.net (Jaques Tati) Date: Wed, 12 Jun 2024 09:37:52 +0200 Subject: [MapServer-users] SOLVED Re: Cluster style crashes MapServer 8 In-Reply-To: <96a0fc0a-747f-4494-ab41-653fc29e7372@app.fastmail.com> References: <03c6f9cb-74f3-4ff6-ac14-69ed4bbeb8d0@gmx.net> <6e4d63fb-f0ed-4700-92a6-efec3954cded@app.fastmail.com> <7c563231-2234-47e0-a76b-87e46171a136@gmx.net> <6092d07f-f7b3-408f-9cf6-9777239db742@gmx.net> <96a0fc0a-747f-4494-ab41-653fc29e7372@app.fastmail.com> Message-ID: Hi Seth, i tried all MSVC-Versions of gisinternals and i sure enough installed all VC-Runtimes from MS as well (2010 - 2022) in x86 & x64, - all didn't change a thing. All stable and even the unstable development releases of gisinternals are using a v14 libpq.dll while the one from OSGeo4W that solved the problem is a v16,? - most probably unrelated to the core problem, - most probably compiled against an older version of uacrtbase.dll. I wrote an e-mail to gisinternals this morning, maybe someone there has a look at it. BR Stefan H. Am 12.06.2024 um 09:31 schrieb Seth G: > Hi, > > Glad you got it working! > > What version of the GIS Internal releases were you using? Each one uses different MSVC runtime libraries. > For example, the 1930 in the download release-1930-x64-gdal-3-8-5-mapserver-8-0-1.zip indicates MSVC 2022. > There is a full list at https://www.gisinternals.com/sdk.php. > > The server will need to have the corresponding "Microsoft Visual C++ Redistributable" installed, which includes uacrtbase.dll (I thought you could have several of these though). These can be downloaded from https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 > > These may or may not already be installed on your Windows Server, you can check with the following command: > > wmic product where "name like 'Microsoft Visual C++%'" get name,version > > Your server seems to be Windows 2022, which should include MSVC 2022 and work with any of the GISInternals 1930 releases, so if you are already using these then it could be a different issue. The GISInternals use pgsql - REL_14_0 rather than 16. > > Seth > > -- > web:https://geographika.net & https://mapserverstudio.net > twitter: @geographika > > On Tue, Jun 11, 2024, at 5:21 PM, Jaques Tati via MapServer-users wrote: >> Hi, >> >> well, that was a journey. >> I was able to grap a .dmp-file created by a mapserver-crash (not so easy >> cause it gets >> deleted very fast automatically by windows) and windbg revealed, that >> the crash >> happens in the libpq.dll of the MapServer-Distribution of gisinternals, >> caused by >> the uacrtbase.dll. >> Microsoft claims, that regardless of how many uacrtbase.dll's there are >> at different locations >> on your machine, only the OS-Version somewhere in the windows-directory >> is used. >> Since i couldn't change this dll i searched for another version of the >> libpq.dll and after testing many, >> the libpq.dll from the current OSGeo4W - QGis-Install-Directory solves >> the problem >> (just replace the orginal with the OSGeo4W-Version). >> After copying the file the clustered and all other postgis layers worked >> again as >> expected. >> It seems to be dependend on the version of the uacrtbase.dll on your system. >> The version on our windows server is 10.0.20348.2461 and it works with >> libpq.dll v16.2. >> >> BR >> Stefan >> >> Am 11.06.2024 um 10:14 schrieb Jaques Tati via MapServer-users: >>> Hi Seth, >>> >>> layer has an EXTEND (ensured this after reading the results of a search >>> through this mailing list). >>> I also did a mapserver 8 setup with a postgis layer and the same layer >>> definition on my private laptop >>> also with a postgis source and it works flawless. - but it uses IIS as >>> webserver. >>> I wrote, that according to logging the data comes back from the >>> postgreSQL source and when i do >>> comment out the CLUSTER the data is correctly displayed. >>> But, i will try to test your idea about the shapefile source, will come >>> back then. >>> >>> thanks anyway and BR >>> Stefan >>> >>> Am 11.06.2024 um 09:51 schrieb Seth G: >>>> Hi, >>>> >>>> A couple of things to try to narrow down the issue: >>>> >>>> 1. If you are able to export the PostGIS layer to a shapefile, then >>>> you can change the DATA of the layer and see if there is still a crash. >>>> 2. Is there an EXTENT set on the layer? I ran into an issue using MS >>>> SQL [1] and clustering. Try adding one manually. >>>> >>>> Seth >>>> >>>> >>>> [1] https://github.com/MapServer/MapServer/pull/6278 >>>> >>>> -- >>>> web:https://geographika.net & https://mapserverstudio.net >>>> twitter: @geographika >>>> >>>> On Tue, Jun 11, 2024, at 9:31 AM, Jaques Tati via MapServer-users wrote: >>>>> Hi There, >>>>> >>>>> in our application we're upgrading our v7.6 MapServer to v8.01. >>>>> Everything seems to work good so far but we have one layer that uses >>>>> Clustering of points >>>>> and whenever this layer should be displayed MapServer 8 crashes >>>>> reproducably. >>>>> >>>>> This layer works flawless in v7.6 and clustering is setup exactly from >>>>> the book. >>>>> When i comment clustering out, the layer is displayed, so all other >>>>> style features do work. >>>>> Datasource is a PostGIS layer, webserver is Apache 2.4.59. >>>>> >>>>> Looking at the debug output, the data comes back as expected from the >>>>> database, >>>>> even clustering is logged and no error in the MapServer-Logfile. >>>>> The crash is reported in Windows Application-Eventlog with only cryptic >>>>> reasons that do >>>>> not really result in any valid answers when googling. >>>>> ..there is a word "StackHash" included that might point to DEP >>>>> (DataExecutionPrevention) >>>>> of Windows, - but since all other layers do work with the MapServer-Exe >>>>> it would be hard >>>>> to understand why windows does prevent the output of clustered layers. >>>>> >>>>> We're using Windows Server 2022 21H2 Datacenter Edition, 8 CPU 32GB >>>>> RAM. >>>>> >>>>> Anyone heard of this crude behaviour, I'm running out of ideas? >>>>> >>>>> Thanks in advance for any hint >>>>> >>>>> SH >>>>> _______________________________________________ >>>>> MapServer-users mailing list >>>>> MapServer-users at lists.osgeo.org >>>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> MapServer-users mailing list >>> MapServer-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Fri Jun 14 14:11:39 2024 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 14 Jun 2024 18:11:39 -0300 Subject: [MapServer-users] 8.2.0-rc1 released In-Reply-To: <1011341a-d827-4bde-97b4-b89005007286@gatewaygeomatics.com> References: <1011341a-d827-4bde-97b4-b89005007286@gatewaygeomatics.com> Message-ID: The MapServer team is excited to announce the first release candidate of MapServer 8.2.0 (there have been no changes since the beta3) Please help us test and let us know of any findings. Details of the new features, changelog, migration instructions, and download links can be found on the dedicated announcement page at https://mapserver.org/development/announce/8-2.html . If no issues are reported, we'll have the final release next Friday. thanks, -- The MapServer Team From mniemyjski at cloudferro.com Thu Jun 20 03:48:52 2024 From: mniemyjski at cloudferro.com (Marcin Niemyjski) Date: Thu, 20 Jun 2024 10:48:52 +0000 Subject: [MapServer-users] TIME dimension as runtime substitution within DATA query? Message-ID: Hello Is it possible to use the TIME dimension as a parameter for runtime substitution? What I'm trying to achieve: I want to limit the rows in the database query by applying a date within the query itself. Specifically, I need to use the TIME dimension instead of custom parameters like start_date and stop_date to ensure full compatibility with the OGC WMS-T standard. There is also the issue of parsing the TIME value into a format acceptable by the query. However, for now, let's assume that I'm providing a single date within TIME. LAYER DEBUG 5 STATUS OFF NAME "stac_query" TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "***" DATA "geometry from ... WHERE datetime >= %TIME% AND datetime <%TIME% AND (id = ANY ('{%pid%}') or '%pid%' = '-1' AND collection = ANY ('{cryo-demo}') ) ORDER BY datetime DESC, id DESC) as subquerry using unique id using srid=4326" PROJECTION "init=epsg:4326" END VALIDATION 'pid' '^.{2,37}$' 'asset' '^.{3,6}$' 'default_pid' '-1' 'default_asset' '-1' END METADATA "wms_srs" "EPSG:3857 EPSG:4326 EPSG:2180" "wms_title" "stac_query" "wms_timeextent" "2015-01-01/2025-01-01/P1D" "wms_timeitem" "datetime" "wms_timedefault" "2024-04-08" "wms_enable_request" "!*" END PROCESSING "CLOSE_CONNECTION=DEFER" END Any clue? Best, Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at maanmittauslaitos.fi Thu Jun 20 04:19:28 2024 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka) Date: Thu, 20 Jun 2024 11:19:28 +0000 Subject: [MapServer-users] TIME dimension as runtime substitution within DATA query? In-Reply-To: References: Message-ID: Hi, What does not work for you in the WMS-T support as documented in WMS Time - MapServer 8.0.2 documentation? -Jukka Rahkonen- L?hett?j?: MapServer-users Puolesta Marcin Niemyjski via MapServer-users L?hetetty: torstai 20. kes?kuuta 2024 13.49 Vastaanottaja: Marcin Niemyjski via MapServer-users Aihe: [MapServer-users] TIME dimension as runtime substitution within DATA query? Hello Is it possible to use the TIME dimension as a parameter for runtime substitution? What I'm trying to achieve: I want to limit the rows in the database query by applying a date within the query itself. Specifically, I need to use the TIME dimension instead of custom parameters like start_date and stop_date to ensure full compatibility with the OGC WMS-T standard. There is also the issue of parsing the TIME value into a format acceptable by the query. However, for now, let's assume that I'm providing a single date within TIME. LAYER DEBUG 5 STATUS OFF NAME "stac_query" TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "***" DATA "geometry from ... WHERE datetime >= %TIME% AND datetime <%TIME% AND (id = ANY ('{%pid%}') or '%pid%' = '-1' AND collection = ANY ('{cryo-demo}') ) ORDER BY datetime DESC, id DESC) as subquerry using unique id using srid=4326" PROJECTION "init=epsg:4326" END VALIDATION 'pid' '^.{2,37}$' 'asset' '^.{3,6}$' 'default_pid' '-1' 'default_asset' '-1' END METADATA "wms_srs" "EPSG:3857 EPSG:4326 EPSG:2180" "wms_title" "stac_query" "wms_timeextent" "2015-01-01/2025-01-01/P1D" "wms_timeitem" "datetime" "wms_timedefault" "2024-04-08" "wms_enable_request" "!*" END PROCESSING "CLOSE_CONNECTION=DEFER" END Any clue? Best, Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From joerg.thomsen at wheregroup.com Tue Jun 25 06:53:38 2024 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=C3=B6rg_Thomsen_=28WhereGroup=29?=) Date: Tue, 25 Jun 2024 15:53:38 +0200 Subject: [MapServer-users] cluster points Message-ID: <961b41cb-5d83-4198-8df7-c3040127c9ee@wheregroup.com> Dear list, I have a problem with clustering of some points (layer at the end of this mail). As soon as I insert the block CLUSTER MAXDISTANCE 50 REGION 'ellipse' END the capabilities-document [1] of the wms ends abrupt with > > image/png > im so I cannot load it to a client. getmap/browse-mode [2] works fine. I don't see the reason, does anyone else do and can tell me? [1] view-source:https://schulung.foss.academy/cgi-bin/mapserv?map=/foss-academy/MSII/cluster_loesung.map&SERVICE=WMS&REQUEST=GetCapabilities [2] https://schulung.foss.academy/cgi-bin/mapserv?map=/foss-academy/MSII/cluster_loesung.map&mode=browse&layer=all&template=OpenLayers Regards, J?rg LAYER NAME 'bushaltestellen' TYPE POINT CONNECTIONTYPE postgis CONNECTION "user= password= dbname= host=127.0.0.1 port=5432" DATA "geom from transport_p" METADATA 'ows_title' 'Bushaltestelen mit Clustering' END PROJECTION 'init=epsg:4326' END LABELITEM 'Cluster_FeatureCount' CLASSITEM 'Cluster_FeatureCount' CLUSTER MAXDISTANCE 50 REGION 'ellipse' END CLASS NAME 'einzeln' EXPRESSION ("[Cluster_FeatureCount]" = "1") STYLE SIZE 10 SYMBOL "circle" COLOR 150 150 150 END END CLASS NAME 'cluster' EXPRESSION ("[Cluster_FeatureCount]" != "1") STYLE SIZE 20 SYMBOL "circle" COLOR 0 0 255 END LABEL FONT 'arial' COLOR 255 255 255 TYPE truetype SIZE 9 END END END From sethg at geographika.co.uk Tue Jun 25 07:07:07 2024 From: sethg at geographika.co.uk (Seth G) Date: Tue, 25 Jun 2024 16:07:07 +0200 Subject: [MapServer-users] cluster points In-Reply-To: <961b41cb-5d83-4198-8df7-c3040127c9ee@wheregroup.com> References: <961b41cb-5d83-4198-8df7-c3040127c9ee@wheregroup.com> Message-ID: <28c08fc1-3630-4ad1-afeb-dbc5a906eab8@app.fastmail.com> Hi J?rg, This sounds like the same issue as https://lists.osgeo.org/pipermail/mapserver-users/2024-June/083491.html and https://github.com/MapServer/MapServer/issues/7070 A workaround for now is to manually add an EXTENT to the layer. Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Tue, Jun 25, 2024, at 3:53 PM, J?rg Thomsen (WhereGroup) via MapServer-users wrote: > Dear list, > > I have a problem with clustering of some points (layer at the end of > this mail). > > As soon as I insert the block > CLUSTER > MAXDISTANCE 50 > REGION 'ellipse' > END > > the capabilities-document [1] of the wms ends abrupt with >> >> image/png >> im > > so I cannot load it to a client. > getmap/browse-mode [2] works fine. > > I don't see the reason, does anyone else do and can tell me? > > [1] > view-source:https://schulung.foss.academy/cgi-bin/mapserv?map=/foss-academy/MSII/cluster_loesung.map&SERVICE=WMS&REQUEST=GetCapabilities > > [2] > https://schulung.foss.academy/cgi-bin/mapserv?map=/foss-academy/MSII/cluster_loesung.map&mode=browse&layer=all&template=OpenLayers > > Regards, J?rg > > > > > LAYER > NAME 'bushaltestellen' > TYPE POINT > > CONNECTIONTYPE postgis > CONNECTION "user= password= dbname= host=127.0.0.1 port=5432" > DATA "geom from transport_p" > > METADATA > 'ows_title' 'Bushaltestelen mit Clustering' > END > > > PROJECTION > 'init=epsg:4326' > END > > LABELITEM 'Cluster_FeatureCount' > CLASSITEM 'Cluster_FeatureCount' > > CLUSTER > MAXDISTANCE 50 > REGION 'ellipse' > END > > CLASS > NAME 'einzeln' > EXPRESSION ("[Cluster_FeatureCount]" = "1") > STYLE > SIZE 10 > SYMBOL "circle" > COLOR 150 150 150 > END > END > > CLASS > NAME 'cluster' > EXPRESSION ("[Cluster_FeatureCount]" != "1") > STYLE > SIZE 20 > SYMBOL "circle" > COLOR 0 0 255 > END > LABEL > FONT 'arial' > COLOR 255 255 255 > TYPE truetype > SIZE 9 > END > END > > END > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jaques.tati at gmx.net Tue Jun 25 22:34:04 2024 From: jaques.tati at gmx.net (Jaques Tati) Date: Wed, 26 Jun 2024 07:34:04 +0200 Subject: [MapServer-users] cluster points In-Reply-To: <961b41cb-5d83-4198-8df7-c3040127c9ee@wheregroup.com> References: <961b41cb-5d83-4198-8df7-c3040127c9ee@wheregroup.com> Message-ID: <43bc670f-eb05-422d-9117-e2c0dfa411b0@gmx.net> Good morning J?rg, in a project where i work together with WhereGroup we got a problem with CLUSTER styles and MapServer 8.01: https://github.com/gisinternals/buildsystem/issues/223 Since you're using also PostGIS as a datasource, maybe its worth a look, - and the solution mentioned there. best regards Stefan H. Am 25.06.2024 um 15:53 schrieb J?rg Thomsen (WhereGroup) via MapServer-users: > Dear list, > > I have a problem with clustering of some points (layer at the end of > this mail). > > As soon as I insert the block > CLUSTER > ?? MAXDISTANCE 50 > ?? REGION 'ellipse' > END > > the capabilities-document [1] of the wms ends abrupt with >> ??? >> ????? image/png >> ????? im > > so I cannot load it to a client. > getmap/browse-mode [2] works fine. > > I don't see the reason, does anyone else do and can tell me? > > [1] > view-source:https://schulung.foss.academy/cgi-bin/mapserv?map=/foss-academy/MSII/cluster_loesung.map&SERVICE=WMS&REQUEST=GetCapabilities > > > [2] > https://schulung.foss.academy/cgi-bin/mapserv?map=/foss-academy/MSII/cluster_loesung.map&mode=browse&layer=all&template=OpenLayers > > > Regards, J?rg > > > > > ? LAYER > ??? NAME 'bushaltestellen' > ??? TYPE POINT > > ????CONNECTIONTYPE postgis > ????CONNECTION "user= password= dbname= host=127.0.0.1 port=5432" > ????DATA "geom from transport_p" > > ??? METADATA > ????? 'ows_title' 'Bushaltestelen mit Clustering' > ??? END > > > ??? PROJECTION > ???? 'init=epsg:4326' > ??? END > > ??? LABELITEM 'Cluster_FeatureCount' > ??? CLASSITEM 'Cluster_FeatureCount' > > ????CLUSTER > ??????? MAXDISTANCE 50 > ??????? REGION 'ellipse' > ????END > > ??? CLASS > ?????? NAME 'einzeln' > ?????? EXPRESSION ("[Cluster_FeatureCount]" = "1") > ?????? STYLE > ????????? SIZE 10 > ????????? SYMBOL "circle" > ????????? COLOR 150 150 150 > ?????? END > ??? END > > ??? CLASS > ?????? NAME 'cluster' > ?????? EXPRESSION ("[Cluster_FeatureCount]" != "1") > ?????? STYLE > ????????? SIZE 20 > ????????? SYMBOL "circle" > ????????? COLOR 0 0 255 > ?????? END > ?????? LABEL > ??????????? FONT 'arial' > ??????????? COLOR 255 255 255 > ??????????? TYPE truetype > ??????????? SIZE 9 > ?????? END > ??? END > > ?? END > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From joerg.thomsen at wheregroup.com Wed Jun 26 00:07:43 2024 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=C3=B6rg_Thomsen_=28WhereGroup=29?=) Date: Wed, 26 Jun 2024 09:07:43 +0200 Subject: [MapServer-users] cluster points In-Reply-To: <28c08fc1-3630-4ad1-afeb-dbc5a906eab8@app.fastmail.com> References: <961b41cb-5d83-4198-8df7-c3040127c9ee@wheregroup.com> <28c08fc1-3630-4ad1-afeb-dbc5a906eab8@app.fastmail.com> Message-ID: Thanks Seth and Jaques! Am 25.06.24 um 16:07 schrieb Seth G: > This sounds like the same issue ashttps://lists.osgeo.org/pipermail/mapserver-users/2024-June/083491.html 14 days ago... I should read more mails of this list. J?rg From gkvoelkl at nelson-games.de Wed Jun 26 03:16:52 2024 From: gkvoelkl at nelson-games.de (=?utf-8?Q? G._V=C3=B6lkl ?=) Date: Wed, 26 Jun 2024 12:16:52 +0200 Subject: [MapServer-users] Missing blank in SQL Message-ID: <36340027-91AF-43A1-9192-E01F2F8095B8@nelson-games.de> Hello > In the map file is this statement > > DATA "GEOM FROM TEST_TABLE using unique objid_parent SRID 25832" > > I get this message from mapserver in log file > > > Error: ORA-00907: missing right parentesis > . Query statement: SELECT SDO_AGGR_MBR(GEOM) AS GEOM from (SELECTGEOM FROM test_table) > > This have to be changed SELECTGEOM to select geom > > Can I do something in the map file or is it a bug? Best regards Gerhard > Von meinem iPhone gesendet -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Wed Jun 26 04:19:27 2024 From: sethg at geographika.co.uk (Seth G) Date: Wed, 26 Jun 2024 13:19:27 +0200 Subject: [MapServer-users] Missing blank in SQL In-Reply-To: <36340027-91AF-43A1-9192-E01F2F8095B8@nelson-games.de> References: <36340027-91AF-43A1-9192-E01F2F8095B8@nelson-games.de> Message-ID: Hi, I'm presuming this is using the Oracle driver looking at the error message? Probably unrelated, but isn't your DATA clause missing a USING? DATA "GEOM FROM TEST_TABLE using unique objid_parent USING SRID 25832" https://mapserver.org/input/vector/oracle.html#example-of-a-layer I remember the DATA clause when logged was missing spaces in the MSSQL driver, but the actual SQL sent to the database was fine - you can check this with a SQL profiler. You can also try the following syntax: DATA "GEOM FROM (SELECT * FROM TEST_TABLE) AS tbl USING UNIQUE ObjectId USING SRID=25832" Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Wed, Jun 26, 2024, at 12:16 PM, G. V?lkl via MapServer-users wrote: > Hello > >> In the map file is this statement >> >> DATA "GEOM FROM TEST_TABLE using unique objid_parent SRID 25832" >> >> I get this message from mapserver in log file >> >> >> Error: ORA-00907: missing right parentesis >> . Query statement: SELECT SDO_AGGR_MBR(GEOM) AS GEOM from (SELECTGEOM FROM test_table) >> >> This have to be changed SELECTGEOM to select geom >> >> Can I do something in the map file or is it a bug? > > Best regards Gerhard >> > Von meinem iPhone gesendet > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeter at netgis.de Wed Jun 26 04:22:12 2024 From: schroeter at netgis.de (Sven Schroeter) Date: Wed, 26 Jun 2024 13:22:12 +0200 Subject: [MapServer-users] Missing blank in SQL In-Reply-To: <36340027-91AF-43A1-9192-E01F2F8095B8@nelson-games.de> References: <36340027-91AF-43A1-9192-E01F2F8095B8@nelson-games.de> Message-ID: <5a1bcb07-2ef2-4264-a29b-554db52f798a@netgis.de> Hi, ?"USING SRID...", try this: DATA "GEOM FROM TEST_TABLE USING UNIQUE objid_parent USING SRID=25832" Greetings Sven Am 26.06.2024 um 12:16 schrieb G. V?lkl via MapServer-users: > Hello > >> In the map file is this statement >> >> DATA?"GEOM FROM TEST_TABLE using unique objid_parent SRID 25832" >> >> I get this message from mapserver in log file >> >> Error: ORA-00907: missing right parentesis >> >> . Query statement: SELECT SDO_AGGR_MBR(GEOM) AS GEOM from (SELECTGEOM >> FROM test_table) >> >> This have to be changed SELECTGEOM to select geom >> >> Can I do something in the map file or is it a bug? >> > > Best regards Gerhard >> >> > Von meinem iPhone gesendet > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Jun 28 07:12:34 2024 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 28 Jun 2024 11:12:34 -0300 Subject: [MapServer-users] 8.2.0-rc3 available Message-ID: <8746d0f4-6180-471d-a50e-2898b3bc69c5@gatewaygeomatics.com> The MapServer team is excited to announce the third release candidate of MapServer 8.2.0 (there were a few changes since rc1, including a fix for MapScript packagers, that have been included) Please help us test and let us know of any findings. Direct download: https://download.osgeo.org/mapserver/mapserver-8.2.0-rc3.tar.gz Details of the new features, changelog, migration instructions, and download links can be found on the dedicated announcement page at https://mapserver.org/development/announce/8-2.html . If no issues are reported, we'll have the final release next Friday. thanks, -- The MapServer Team