[MapServer-users] demo.mapserver.org Services Upgraded

2024-04-15 Thread Jeff McKenna via MapServer-users

Hi all!

A short update that all of the MapServer services (OGC services, 
MapCache, MapServer, etc.) have been upgraded on the demo server: 
https://demo.mapserver.org


Wishing everyone a productive week,

-jeff








--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/






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


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

2023-10-26 Thread Jeff McKenna via MapServer-users

Hi Vassilis,

You are missing after the draw() the following:

  //send image to stdout (browser), without saving file locally
  echo $oImage ->getBytes();

I also prefer to set the header right before that getBytes() call.

For a full working example, you can use the quickmap.php file that is 
included in MS4W (see /ms4w/Apache/htdocs/quickmap.php) from 
https://ms4w.com



Hope that helps,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/




On 2023-10-26 7:25 a.m., Vassilis Chatzigiannakis via MapServer-users wrote:

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/png');

$oImg=$oMap->draw();

$oImg->save("/tmp/mswms.png");

$oImg->write();

Do you have a working PHP example of 
https://mapserver.org/mapscript/mapscript-api/stub/mapscript.imageObj.html#mapscript.imageObj.write <https://mapserver.org/mapscript/mapscript-api/stub/mapscript.imageObj.html#mapscript.imageObj.write>?


Or is there another way of showing the image in the browser?

Best regards,

Vassilis




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


Re: [MapServer-users] Compiling mapserver with php in user directory

2023-10-18 Thread Jeff McKenna via MapServer-users

Hi Jan,

I understand that you won't listen to my advice here, no problem at all. 
 But I won't repeat myself here :)


Enjoy your afternoon,

-jeff





--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/



On 2023-10-18 1:39 p.m., Jan Hartmann wrote:

I compiled with:

  -DPHP_INCLUDE_DIR=$INSTALLBIN/include/php \
  -DPHP_EXTENSION_DIR=$INSTALLBIN/lib/php/extensions/no-debug-non-zts-20220829

and got lots of error messages about missing .h files (php.h, zend.h 
etc). I bulk copied them all to the directory in the build tree where 
the errors came from, and got a complete build, including 
"php_mapscriptng.so"


So CMAKE is still missing the php include directories. What is de 
correct DEFINE for that?


After I copied php_mapscriptng.so to the correct location and filling in 
php.ini, I got a warning when starting PHP :


Startup: Unable to load dynamic library 'php_mapscriptng.so' (tried: 
/virdir/installbin/lib/php/extensions/no-debug-non-zts-20220829/php_mapscriptng.so (libgeos.so.3.12.0: cannot open shared object file: No such file or directory)


But  it *is* in that location. Any idea?

On 17/10/2023 21:45, Jeff McKenna via MapServer-users wrote:

Hi Jan,

Unfortunately I have much experience tracking down CMake errors now, ha.

Instead of the error log, scroll up and read the output from your 
cmake command (as it does its checks and looks for libraries), I find 
examining that output is crucial (and I personally find the actual 
generated log file is filled of fake/"red-herrings"). Focus instead on 
going line-by-line through that cmake output, as it makes its way down 
to the final "configuring incomplete" message.  (for packaging, this 
is what I do, line-by-line)


For example, if you are trying to enable the GEOS library, I would go 
line-by-line of the output and find where it was looking for GEOS 
initially, and read the messages in that section, to confirm that 
there are no issues when enabling GEOS.  This is crucial.


It takes much time to do this for each library.

In my case, for PHPNG support, my CMake command includes: 
"-DWITH_PHPNG=1 -DPHP_EXTENSION_DIR=/usr/lib/php/20220829"


In your case I am not sure, but, I would start by examining 
line-by-line the CMake output before the words "Configuring 
incomplete" (and totally ignoring the generated 'output' file).


Maybe you can find the PHPNG section in your cmake command output, and 
paste that here for the community to review.


-jeff








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


Re: [MapServer-users] Compiling mapserver with php in user directory

2023-10-17 Thread Jeff McKenna via MapServer-users
Maybe paste all of the output from the cmake command (upto the 
"configuring incomplete" message) at https://pastebin.com/ and paste 
that pastebin link here for the community to examine closely.


-jeff



On 2023-10-17 4:45 p.m., Jeff McKenna via MapServer-users wrote:

Hi Jan,

Unfortunately I have much experience tracking down CMake errors now, ha.

Instead of the error log, scroll up and read the output from your cmake 
command (as it does its checks and looks for libraries), I find 
examining that output is crucial (and I personally find the actual 
generated log file is filled of fake/"red-herrings").  Focus instead on 
going line-by-line through that cmake output, as it makes its way down 
to the final "configuring incomplete" message.  (for packaging, this is 
what I do, line-by-line)


For example, if you are trying to enable the GEOS library, I would go 
line-by-line of the output and find where it was looking for GEOS 
initially, and read the messages in that section, to confirm that there 
are no issues when enabling GEOS.  This is crucial.


It takes much time to do this for each library.

In my case, for PHPNG support, my CMake command includes: 
"-DWITH_PHPNG=1 -DPHP_EXTENSION_DIR=/usr/lib/php/20220829"


In your case I am not sure, but, I would start by examining line-by-line 
the CMake output before the words "Configuring incomplete" (and totally 
ignoring the generated 'output' file).


Maybe you can find the PHPNG section in your cmake command output, and 
paste that here for the community to review.


-jeff






--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/

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


Re: [MapServer-users] Compiling mapserver with php in user directory

2023-10-17 Thread Jeff McKenna via MapServer-users

Hi Jan,

Unfortunately I have much experience tracking down CMake errors now, ha.

Instead of the error log, scroll up and read the output from your cmake 
command (as it does its checks and looks for libraries), I find 
examining that output is crucial (and I personally find the actual 
generated log file is filled of fake/"red-herrings").  Focus instead on 
going line-by-line through that cmake output, as it makes its way down 
to the final "configuring incomplete" message.  (for packaging, this is 
what I do, line-by-line)


For example, if you are trying to enable the GEOS library, I would go 
line-by-line of the output and find where it was looking for GEOS 
initially, and read the messages in that section, to confirm that there 
are no issues when enabling GEOS.  This is crucial.


It takes much time to do this for each library.

In my case, for PHPNG support, my CMake command includes: 
"-DWITH_PHPNG=1 -DPHP_EXTENSION_DIR=/usr/lib/php/20220829"


In your case I am not sure, but, I would start by examining line-by-line 
the CMake output before the words "Configuring incomplete" (and totally 
ignoring the generated 'output' file).


Maybe you can find the PHPNG section in your cmake command output, and 
paste that here for the community to review.


-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/




On 2023-10-17 4:24 p.m., Jan Hartmann via MapServer-users wrote:

Hi all,

  I am trying to compile MapServer with all dependencies in a separate 
user-directory. Everything has been compiled with —prefix=$INSTALLBIN.  PHP has 
also been compiled into that directory, but I don't get MapServer to use it. It 
compiles against the system-php, but that is another version than the compiled 
one. I call CMAKE with the following options:

...
 -DGDAL_LIBRARY=$INSTALLBIN/lib/libgdal.so \
 -DGDAL_INCLUDE_DIR=$INSTALLBIN/include \
 ...

I removed the sysem-PHP, and added -DPHP_INCLUDE_DIR=$INSTALLBIN/include/php \, 
but that doesn't work, and I cannot find the PHP-library to add.

CMAKE ends with the message:  "Configuring incomplete, errors occurred!", without giving the precise 
errors. In the error log I get messages of missing "strrstr", "strlcat" and strlcpy".

Can you help me?

Jan Hartmann
Amsterdam
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users



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


Re: [MapServer-users] symbol minsize/maxsize in mapServer 8

2023-10-11 Thread Jeff McKenna via MapServer-users
I'm sorry for that docs confusion Jörg.  Someone found the pull request 
that I had made, for the 8.0 release, and I was shocked to see all of my 
changes in the docs for that release - it goes to show the effort, 
behind the scenes, not just code changes, for such releases.  -jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/



On 2023-10-11 12:06 p.m., Jörg Thomsen (WhereGroup) via MapServer-users 
wrote:

Hello,

I am curious about min- an maxsize in MS 8.

I found in the docs:

MAXSIZE [double]
Removed in version 8.0.


And I know don't now how to determine the maxsize of a point Symbol.

maxsize still works, but not as expected. There is no error-message and 
the maxsize auf the point-symbol is set, but when I zoom in more than 
the scale of SYMBOLSCALEDENOM the outline of the symbol ist getting and 
bigger.


Here are two layers I tested with and you can test the WMS with
https://schulung.foss.academy/cgi-bin/mapserv?map=minmaxsize=browse=openlayers=all
(you have to zoom in to see what happens)

    LAYER
   NAME 'point'
   TYPE POINT
   DATA 'pois_p.shp'

   METADATA
     'ows_title' 'Points'
   END

   SYMBOLSCALEDENOM 10
   CLASS
     NAME 'points'
     STYLE
   SYMBOL 'circle'
   SIZE 20
   COLOR 218 247 195
   OUTLINECOLOR 250 250 0
     END
   END
     END

     LAYER
   NAME 'pointmaxsize'
   TYPE POINT
   DATA 'pois_p.shp'

   METADATA
     'ows_title' 'Pointsmaxsize'
   END

   SYMBOLSCALEDENOM 10
   CLASS
     NAME 'points'
     STYLE
   SYMBOL 'circle'
   SIZE 20
   MAXSIZE 30
   COLOR 100 100 250
   OUTLINECOLOR 0 0 250
     END
   END
     END




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


Re: [MapServer-users] Cluster with Oracle Spatial data

2023-10-10 Thread Jeff McKenna via MapServer-users

Hi Ivan,

I believe this should work with any database or OGR connection (I think 
my initial tests, for the docs, were with an OGR/KML connection, but I 
remember testing SpatiaLite later as well for cluster).


(I'll see if I can test this with Oracle, but, it may take me a while to 
setup, so someone else might have to jump in & help you here)


-jeff






--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/




On 2023-10-10 10:50 a.m., Yankov, Ivan via MapServer-users wrote:

Hi,

I have a problem with clustering a point layer (combine multiple 
features into a single feature based on their relative positions)


using a point datasource from an Oracle Spatial Database.

When I test the cluster feature using a point layer in Shape-Format, it 
works exactly as expected.


In this case I use “DATA " D:\geodata\point_layer.shp" “ as my 
datasource and everything works just fine.


But when I change the datasource to “ CONNECTIONTYPE oraclespatial “ and 
then use the same point layer


from the Oracle Spatial Database, then nothing actually happens. I don’t 
even get some kind of an error message.


Does anyone know the reason for this behaviour and how can I get the 
cluster feature to work with an Oracle Spatial datasource?


Thank you in advance!

Best Regards



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


[MapServer-users] demo. server updates happening now

2023-09-15 Thread Jeff McKenna
Notice that I'm doing many upgrades today to the server hosting 
demo.mapserver.org , expect minor downtime.


-jeff






--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] PHPNG Mapscript Support for PHP 8.1.x

2023-06-13 Thread Jeff McKenna

Hi Nicol,

PHPNG MapScript fully supports both PHP 8.2.x and PHP 8.1.x, in fact, 
for the big MapServer 8.0 release push, a big effort was spent on 
enabling PHPUnit tests for these PHP versions - meaning that when a 
commit or pull request is made to the MapServer repository, tests are 
automatically run against both PHP 8.2 and PHP 8.1, to make sure that 
MapScript is operating smoothly.


(for the next MapServer 8.2.0 release I am planning on creating a 
document containing all of these supported versions)


For Windows users, the upcoming MS4W release will contain PHP 8.2.7 
MapScript.


Hope that helps,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2023-06-12 6:10 p.m., Nicol Hermann wrote:

Hello dear Mapserver team,

are there any plans to support PHP 8.1.x? with PHPNG Mapscript?
As far as I can see only PHP 7.x is supported currently.

Thanks
Nicol



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


Re: [MapServer-users] FW: Unable to build mapserver 8 on WIndows with v8 support

2023-06-08 Thread Jeff McKenna
My answer still applies, for any version of MapServer.  Maybe you could 
add build tests to the MapServer repository, so that it shows your 
errors (and then V8 is tested for every commit automagically, against 
all platforms).


To summarize: it just needs a champion, like yourself, to get this 
moving again inside the MapServer core.


-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2023-06-08 1:22 p.m., Сухно Николай wrote:

in this case the situation is different  
https://github.com/MapServer/MapServer/issues/5484
The author of the topic tried to use the compiled libraries from version 3.14, 
although 3.20 is needed
Version 7.0.4 is also discussed there.
I have a positive experience building a mapserver 7.0.0 with v8 support  for 
windows and Linux(centos 7).
If someone needs it, I can give instructions on this.

But my original question is about mapserver 8.

-Original Message-
From: MapServer-users  On Behalf Of 
Jeff McKenna
Sent: Thursday, June 8, 2023 6:32 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [MapServer-users] FW: Unable to build mapserver 8 on WIndows with 
v8 support

I honestly don't think that any love has been given to V8 support in many years 
(see the discussion at
https://github.com/MapServer/MapServer/issues/5484 )

Might be good to give that issue a ping, and for you to post your exact errors 
there, and maybe even a pull request if possible.

PS. as MS4W distributes all mapscripts, V8 is not yet included, and I'm willing 
to add itbut it seems it will take some effort, a community effort...

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of 
FOSS4G http://gatewaygeo.com/



On 2023-06-08 12:09 p.m., nikolay...@outlook.com wrote:

Good day to all!

I'm trying to compile a mapserver with v8 support for windows

as written in the docs
https://mapserver.org/installation/v8.html#obtaining-compiling-and-installing-v8-and-v8-mapscript
 
<https://mapserver.org/installation/v8.html#obtaining-compiling-and-installing-v8-and-v8-mapscript>
 «you have to use v8 3.20»

The problem in v8, that  is a very old version and it can't be built for
MSVC versions higher than 2013

At the same time, the SDK  mapserver 8 is only available for 2022
https://gisinternals.com/sdk.php <https://gisinternals.com/sdk.php>

Previously I built v8 under MSVC 2013, but this lib’s  not work with
MSVC 2022 due to binary incompatibility


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



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



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


Re: [MapServer-users] FW: Unable to build mapserver 8 on WIndows with v8 support

2023-06-08 Thread Jeff McKenna
I honestly don't think that any love has been given to V8 support in 
many years (see the discussion at 
https://github.com/MapServer/MapServer/issues/5484 )


Might be good to give that issue a ping, and for you to post your exact 
errors there, and maybe even a pull request if possible.


PS. as MS4W distributes all mapscripts, V8 is not yet included, and I'm 
willing to add itbut it seems it will take some effort, a community 
effort...


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2023-06-08 12:09 p.m., nikolay...@outlook.com wrote:

Good day to all!

I'm trying to compile a mapserver with v8 support for windows

as written in the docs 
https://mapserver.org/installation/v8.html#obtaining-compiling-and-installing-v8-and-v8-mapscript <https://mapserver.org/installation/v8.html#obtaining-compiling-and-installing-v8-and-v8-mapscript> «you have to use v8 3.20»


The problem in v8, that  is a very old version and it can't be built for 
MSVC versions higher than 2013


At the same time, the SDK  mapserver 8 is only available for 2022 
https://gisinternals.com/sdk.php <https://gisinternals.com/sdk.php>


Previously I built v8 under MSVC 2013, but this lib’s  not work with 
MSVC 2022 due to binary incompatibility



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



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


Re: [MapServer-users] breaking changes in branch-7-6 after commit of experimental changes from branch-8-0

2023-05-30 Thread Jeff McKenna
Hi Oliver, a pull request in the documentation repository would be 
warmly received: https://github.com/MapServer/MapServer-documentation 
Thank-you for catching this.  -jeff







--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2023-05-30 9:20 a.m., Oliver Christen wrote:

before that commit, the following code was working:

     STYLE
       COLOR 255 255 255
       SYMBOL "rectangle3"
       ANGLE -45
       SIZE 8
       GAP 10
     END

after that commit, it no longer works, as ANGLE -45 is not accepted 
anymore, instead it had to be changed to


STYLE
       COLOR 255 255 255
       SYMBOL "rectangle3"
       ANGLE 315
       SIZE 8
       GAP 10
     END

the documentation https://mapserver.org/mapfile/style.html 
<https://mapserver.org/mapfile/style.html> say it must be of type 
DOUBLE, but double can be negative and nothing say explicitly in the 
documentation that the value can not be negative.


I see this discussion here:
https://github.com/MapServer/MapServer/issues/6463 
<https://github.com/MapServer/MapServer/issues/6463>

but no comment if something was done or agreed on about this.
A note should be added to the documentation to make that clear, as it 
was done for label size (see below).

I can do a PR if that would be acceptable ?

for label size, I see that a note was added saying the value must be 
greater than zero on 26 january 2022, so I guess this is on me for not 
noticing it (but im not alone not noticing it so I guess it wasnt 
clearly stated/announced either)


Best regards
Oliver





On Tue, May 30, 2023 at 1:27 PM Rahkonen Jukka 
<mailto:jukka.rahko...@maanmittauslaitos.fi>> wrote:


Hi,

__ __

Maybe the commit could be adjusted in Mapserver 7. Out of curiosity,
what is the use case for zero sized labels and symbols? To disable
them, or? About the angle, by the Mapserver 7.0 documentation,
doesn’t it feel like negative angles were not thought to work ever?


“Angle, given in degrees, to rotate the symbol (counter clockwise).
Default is 0 (no rotation). If you have an attribute that specifies
angles in a clockwise direction (compass direction), you have to
adjust the angle attribute values before they reach MapServer
(360-ANGLE), as it is not possible to use a mathematical expression
for ANGLE.”

__ __

-Jukka Rahkonen-

__ __

*Lähettäjä:*MapServer-users mailto:mapserver-users-boun...@lists.osgeo.org>> *Puolesta *Oliver
Christen
*Lähetetty:* tiistai 30. toukokuuta 2023 13.59
*Vastaanottaja:* mapserver-users@lists.osgeo.org
<mailto:mapserver-users@lists.osgeo.org>
*Aihe:* [MapServer-users] breaking changes in branch-7-6 after
commit of experimental changes from branch-8-0

__ __

Dear Mapserver commiters

__ __

this commit there:

https://github.com/MapServer/MapServer/pull/6818
<https://github.com/MapServer/MapServer/pull/6818>

__ __

broke a lot of things, 

like style angles not supporting negative values anymore or label
size mandatorily greater than zero (also possibly for symbol)

__ __

Im not against changes, but changes should be: 

a) documented 

b) announced with preferably a deprecation period

__ __

so, please revert that commit or provide adequate
change/documentation for all the breaking changes.


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


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Jeff McKenna
Yes, first get your mapfile image working with map2img, then move to 
GetCapabilities request, remove warnings from it, then try a GetMap 
request.  (this are always my steps, when creating mapfiles)


An empty map image usually means that MapServer is drawing from the 
MAP-level extent that you set, but you may have the source projection 
(at the layer-level) incorrect.



-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2023-05-04 3:09 p.m.,


Its just a single white png though.




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


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Jeff McKenna

Ah, you're missing EXTENT at the MAP level, below SIZE

-jeff



On 2023-05-04 3:03 p.m., Chris Cantey wrote:

I forgot about map2img!

map2img -m mapserver.map -o test.png  -map_debug 3

returns:
msDrawMap(): Image handling error. Unable to initialize image. 
msCalculateScale(): General error message. Invalid image extent, 
minx=-1.00, miny=-1.00, maxx=-1.00, maxy=-1.00. 



On Thu, May 4, 2023 at 1:00 PM Chris Cantey <mailto:cantey0...@gmail.com>> wrote:


I also changed the wms_srs to "wms_srs" "EPSG:4326 EPSG:3857"

So ignore that part of pastebin

On Thu, May 4, 2023 at 12:59 PM Jeff McKenna
mailto:jmcke...@gatewaygeomatics.com>> wrote:

Also, make sure you can generate a valid map image with a map2img
commandline call.

-jeff



    On 2023-05-04 2:51 p.m., Jeff McKenna wrote:
 > Chris can you paste your latest mapfile at
https://pastebin.com/ <https://pastebin.com/> and
 > paste the link here for everyone?  (and for any future
mailing list
 > messages, please use that method, for sharing your mapfile
and config
 > files)
 >
 > thanks,
 >
 > -jeff
 >
 >
 >
 > On 2023-05-04 2:45 p.m., Chris Cantey wrote:
 >> We were also a little concerned about web>template. We
didn't see
 >> anywhere what exactly we were supposed to put in the TEMPLATE
 >> document. its basically the same html document as
 >> https://dev.gis.lcc.mn.gov/tmp/mapserver/
<https://dev.gis.lcc.mn.gov/tmp/mapserver/>
 >> <https://dev.gis.lcc.mn.gov/tmp/mapserver/
<https://dev.gis.lcc.mn.gov/tmp/mapserver/>> but with  on top.
 >>
 >> CC
 >>
 >> On Thu, May 4, 2023 at 12:32 PM Chris Cantey
mailto:cantey0...@gmail.com>
 >> <mailto:cantey0...@gmail.com <mailto:cantey0...@gmail.com>>>
wrote:
 >>
 >>     I need that t-shirt! The quotes are in the mapfile, I
think gmail
 >>     just hyperlinked the string.
 >>
 >>     I am kind of testing 2 ways: Using the browser(a few
methods there),
 >>     using linux: mapserv
 >>
"QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map"

 >>
 >>     When I do that, I still get a validation error:
 >>
 >>     [Thu May  4 12:18:06 2023].428388 loadParams() QUERY_STRING:
 >>     map=/home/map=home/gis/tmp/mapserver/mapserver.map
 >>     [Thu May  4 12:18:06 2023].428506 msCGILoadMap(): Web
application
 >>     error. CGI variable "map" fails to validate.
 >>
 >>     I'm wondering on the front end if there's a projection
issue, I see
 >>     green network activity:
https://dev.gis.lcc.mn.gov/tmp/mapserver/
<https://dev.gis.lcc.mn.gov/tmp/mapserver/>
 >>     <https://dev.gis.lcc.mn.gov/tmp/mapserver/
<https://dev.gis.lcc.mn.gov/tmp/mapserver/>>
 >>
 >>     On Thu, May 4, 2023 at 12:29 PM Jeff McKenna
 >>     mailto:jmcke...@gatewaygeomatics.com>
 >>     <mailto:jmcke...@gatewaygeomatics.com
<mailto:jmcke...@gatewaygeomatics.com>>> wrote:
 >>
 >>     Also, your onlineresource is missing quotes, such as:
 >>
 >>     "wms_onlineresource"
 >>
 >>
"https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map 
<https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map> 
<https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map 
<https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map>>"
 >>
 >>
 >>
     >>
 >>     -jeff
 >>
 >>
 >>
 >>     --     Jeff McKenna
 >>     GatewayGeo: Developers of MS4W, MapServer Consulting
and Training
 >>     co-founder of FOSS4G
 >> http://gatewaygeo.com/ <http://gatewaygeo.com/>
<http://gatewaygeo.com/ <http://gatewaygeo.com/>>
 >>
 >>
 >>
 >>     On 2023-05-04 2:13 p.m., Jeff McKenna wrote:
 >>  > Thanks.  I think you 

Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Jeff McKenna
Also, make sure you can generate a valid map image with a map2img 
commandline call.


-jeff



On 2023-05-04 2:51 p.m., Jeff McKenna wrote:
Chris can you paste your latest mapfile at https://pastebin.com/ and 
paste the link here for everyone?  (and for any future mailing list 
messages, please use that method, for sharing your mapfile and config 
files)


thanks,

-jeff



On 2023-05-04 2:45 p.m., Chris Cantey wrote:
We were also a little concerned about web>template. We didn't see 
anywhere what exactly we were supposed to put in the TEMPLATE 
document. its basically the same html document as 
https://dev.gis.lcc.mn.gov/tmp/mapserver/ 
<https://dev.gis.lcc.mn.gov/tmp/mapserver/> but with  on top.


CC

On Thu, May 4, 2023 at 12:32 PM Chris Cantey <mailto:cantey0...@gmail.com>> wrote:


    I need that t-shirt! The quotes are in the mapfile, I think gmail
    just hyperlinked the string.

    I am kind of testing 2 ways: Using the browser(a few methods there),
    using linux: mapserv
    "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map"

    When I do that, I still get a validation error:

    [Thu May  4 12:18:06 2023].428388 loadParams() QUERY_STRING:
    map=/home/map=home/gis/tmp/mapserver/mapserver.map
    [Thu May  4 12:18:06 2023].428506 msCGILoadMap(): Web application
    error. CGI variable "map" fails to validate.

    I'm wondering on the front end if there's a projection issue, I see
    green network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/
    <https://dev.gis.lcc.mn.gov/tmp/mapserver/>

    On Thu, May 4, 2023 at 12:29 PM Jeff McKenna
    mailto:jmcke...@gatewaygeomatics.com>> wrote:

    Also, your onlineresource is missing quotes, such as:

    "wms_onlineresource"

"https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map <https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map>"





    -jeff



    --     Jeff McKenna
    GatewayGeo: Developers of MS4W, MapServer Consulting and Training
    co-founder of FOSS4G
    http://gatewaygeo.com/ <http://gatewaygeo.com/>



    On 2023-05-04 2:13 p.m., Jeff McKenna wrote:
 > Thanks.  I think you solved any validation issues ( this
    request would
 > not validate, for example :
 >

https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map <https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map> )   so it's something else, very minor likely (I've got that t-shirt too, ha)

 >
 > -jeff
 >
 >
 >
 > On 2023-05-04 2:00 p.m., Chris Cantey wrote:
 >> Thanks, Jeff.. I found that out, thanks.
 >>
     >> I will work down from your points.
 >>
 >> Besc,
 >>
 >> On Thu, May 4, 2023 at 11:57 AM Jeff McKenna
 >> mailto:jmcke...@gatewaygeomatics.com>
    <mailto:jmcke...@gatewaygeomatics.com
    <mailto:jmcke...@gatewaygeomatics.com>>>
 >> wrote:
 >>
 >>     Also note, that the regular expression "^" trick applies
    to the
 >>     MS_MAP_PATTERN in the config file (not the MS_ERRORFILE
    path in the
 >>     mapfile).
 >>
 >>
 >>     Thanks for using MapServer Chris,
 >>
 >>     -jeff
 >>
 >>
 >>
 >>     --     Jeff McKenna
 >>     GatewayGeo: Developers of MS4W, MapServer Consulting and
    Training
 >>     co-founder of FOSS4G
 >> http://gatewaygeo.com/ <http://gatewaygeo.com/>
    <http://gatewaygeo.com/ <http://gatewaygeo.com/>>
 >>
 >>
 >>     On 2023-05-04 1:48 p.m., Jeff McKenna wrote:
 >>  > More points for your consideration:
 >>  >
 >>  > - make sure all layers have a PROJECTION object
 >>  > - remove any old references to the
    (non-standard/non-existing)
 >>  > EPSG:900913, replace with EPSG:3857  (see
    https://epsg.io/3857 <https://epsg.io/3857>
 >>     <https://epsg.io/3857 <https://epsg.io/3857>> )
 >>  > - remove all warnings from your GetCapabilities
    response, every
 >>     single
 >>  > warning, there should be no warnings in the response,
    before you
 >>     move to
 >>  > testing GetMap requests
 >>   

Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Jeff McKenna
Chris can you paste your latest mapfile at https://pastebin.com/ and 
paste the link here for everyone?  (and for any future mailing list 
messages, please use that method, for sharing your mapfile and config files)


thanks,

-jeff



On 2023-05-04 2:45 p.m., Chris Cantey wrote:
We were also a little concerned about web>template. We didn't see 
anywhere what exactly we were supposed to put in the TEMPLATE document. 
its basically the same html document as 
https://dev.gis.lcc.mn.gov/tmp/mapserver/ 
<https://dev.gis.lcc.mn.gov/tmp/mapserver/> but with  on top.


CC

On Thu, May 4, 2023 at 12:32 PM Chris Cantey <mailto:cantey0...@gmail.com>> wrote:


I need that t-shirt! The quotes are in the mapfile, I think gmail
just hyperlinked the string.

I am kind of testing 2 ways: Using the browser(a few methods there),
using linux: mapserv
"QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map"

When I do that, I still get a validation error:

[Thu May  4 12:18:06 2023].428388 loadParams() QUERY_STRING:
map=/home/map=home/gis/tmp/mapserver/mapserver.map
[Thu May  4 12:18:06 2023].428506 msCGILoadMap(): Web application
error. CGI variable "map" fails to validate.

I'm wondering on the front end if there's a projection issue, I see
green network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/
<https://dev.gis.lcc.mn.gov/tmp/mapserver/>

On Thu, May 4, 2023 at 12:29 PM Jeff McKenna
mailto:jmcke...@gatewaygeomatics.com>> wrote:

Also, your onlineresource is missing quotes, such as:

"wms_onlineresource"

"https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map 
<https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map>"




-jeff



-- 
Jeff McKenna

GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/ <http://gatewaygeo.com/>



On 2023-05-04 2:13 p.m., Jeff McKenna wrote:
 > Thanks.  I think you solved any validation issues ( this
request would
 > not validate, for example :
 >

https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
 
<https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map>
 )   so it's something else, very minor likely (I've got that t-shirt too, ha)
 >
 > -jeff
 >
 >
 >
 > On 2023-05-04 2:00 p.m., Chris Cantey wrote:
 >> Thanks, Jeff.. I found that out, thanks.
 >>
     >> I will work down from your points.
 >>
 >> Besc,
 >>
 >> On Thu, May 4, 2023 at 11:57 AM Jeff McKenna
 >> mailto:jmcke...@gatewaygeomatics.com>
<mailto:jmcke...@gatewaygeomatics.com
<mailto:jmcke...@gatewaygeomatics.com>>>
 >> wrote:
 >>
 >>     Also note, that the regular expression "^" trick applies
to the
 >>     MS_MAP_PATTERN in the config file (not the MS_ERRORFILE
    path in the
 >>     mapfile).
 >>
 >>
 >>     Thanks for using MapServer Chris,
 >>
 >>     -jeff
 >>
 >>
 >>
 >>     --     Jeff McKenna
 >>     GatewayGeo: Developers of MS4W, MapServer Consulting and
Training
 >>     co-founder of FOSS4G
 >> http://gatewaygeo.com/ <http://gatewaygeo.com/>
<http://gatewaygeo.com/ <http://gatewaygeo.com/>>
 >>
 >>
 >>     On 2023-05-04 1:48 p.m., Jeff McKenna wrote:
 >>  > More points for your consideration:
 >>  >
 >>  > - make sure all layers have a PROJECTION object
 >>  > - remove any old references to the
(non-standard/non-existing)
 >>  > EPSG:900913, replace with EPSG:3857  (see
https://epsg.io/3857 <https://epsg.io/3857>
 >>     <https://epsg.io/3857 <https://epsg.io/3857>> )
 >>  > - remove all warnings from your GetCapabilities
response, every
 >>     single
 >>  > warning, there should be no warnings in the response,
before you
 >>     move to
 >>  > testing GetMap requests
 >>  > - if you have PostGIS/db connections, consider
setting EXTENT
 >> at the
 >>  > layer-level, to improve spe

Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Jeff McKenna

Also, your onlineresource is missing quotes, such as:

"wms_onlineresource" 
"https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map;





-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2023-05-04 2:13 p.m., Jeff McKenna wrote:
Thanks.  I think you solved any validation issues ( this request would 
not validate, for example : 
https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map )   so it's something else, very minor likely (I've got that t-shirt too, ha)


-jeff



On 2023-05-04 2:00 p.m., Chris Cantey wrote:

Thanks, Jeff.. I found that out, thanks.

I will work down from your points.

Besc,

On Thu, May 4, 2023 at 11:57 AM Jeff McKenna 
mailto:jmcke...@gatewaygeomatics.com>> 
wrote:


    Also note, that the regular expression "^" trick applies to the
    MS_MAP_PATTERN in the config file (not the MS_ERRORFILE path in the
    mapfile).


    Thanks for using MapServer Chris,

    -jeff



    --     Jeff McKenna
    GatewayGeo: Developers of MS4W, MapServer Consulting and Training
    co-founder of FOSS4G
    http://gatewaygeo.com/ <http://gatewaygeo.com/>


    On 2023-05-04 1:48 p.m., Jeff McKenna wrote:
 > More points for your consideration:
 >
 > - make sure all layers have a PROJECTION object
 > - remove any old references to the (non-standard/non-existing)
 > EPSG:900913, replace with EPSG:3857  (see https://epsg.io/3857
    <https://epsg.io/3857> )
 > - remove all warnings from your GetCapabilities response, every
    single
 > warning, there should be no warnings in the response, before you
    move to
 > testing GetMap requests
 > - if you have PostGIS/db connections, consider setting EXTENT 
at the

 > layer-level, to improve speed for your clients (review
    optimizations at
 > https://mapserver.org/optimization/vector.html
    <https://mapserver.org/optimization/vector.html> )
 > - during GetMap testing, comment any TEMPLATE params in mapfile
 >
 >
 > -jeff
 >
 >
 >
 >

    ___
    MapServer-users mailing list
    MapServer-users@lists.osgeo.org 
<mailto:MapServer-users@lists.osgeo.org>

    https://lists.osgeo.org/mailman/listinfo/mapserver-users
    <https://lists.osgeo.org/mailman/listinfo/mapserver-users>



--
Chris Cantey
geo-odyssey.com <http://geo-odyssey.com>




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


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Jeff McKenna
Thanks.  I think you solved any validation issues ( this request would 
not validate, for example : 
https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map 
)   so it's something else, very minor likely (I've got that t-shirt 
too, ha)


-jeff



On 2023-05-04 2:00 p.m., Chris Cantey wrote:

Thanks, Jeff.. I found that out, thanks.

I will work down from your points.

Besc,

On Thu, May 4, 2023 at 11:57 AM Jeff McKenna 
mailto:jmcke...@gatewaygeomatics.com>> 
wrote:


Also note, that the regular expression "^" trick applies to the
MS_MAP_PATTERN in the config file (not the MS_ERRORFILE path in the
mapfile).


Thanks for using MapServer Chris,

-jeff



    -- 
Jeff McKenna

GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/ <http://gatewaygeo.com/>


On 2023-05-04 1:48 p.m., Jeff McKenna wrote:
 > More points for your consideration:
 >
 > - make sure all layers have a PROJECTION object
 > - remove any old references to the (non-standard/non-existing)
 > EPSG:900913, replace with EPSG:3857  (see https://epsg.io/3857
<https://epsg.io/3857> )
 > - remove all warnings from your GetCapabilities response, every
single
 > warning, there should be no warnings in the response, before you
move to
 > testing GetMap requests
 > - if you have PostGIS/db connections, consider setting EXTENT at the
 > layer-level, to improve speed for your clients (review
optimizations at
 > https://mapserver.org/optimization/vector.html
<https://mapserver.org/optimization/vector.html> )
 > - during GetMap testing, comment any TEMPLATE params in mapfile
 >
 >
 > -jeff
 >
 >
 >
 >

___
MapServer-users mailing list
MapServer-users@lists.osgeo.org <mailto:MapServer-users@lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users
<https://lists.osgeo.org/mailman/listinfo/mapserver-users>



--
Chris Cantey
geo-odyssey.com <http://geo-odyssey.com>


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/

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


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Jeff McKenna
Also note, that the regular expression "^" trick applies to the 
MS_MAP_PATTERN in the config file (not the MS_ERRORFILE path in the 
mapfile).



Thanks for using MapServer Chris,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2023-05-04 1:48 p.m., Jeff McKenna wrote:

More points for your consideration:

- make sure all layers have a PROJECTION object
- remove any old references to the (non-standard/non-existing) 
EPSG:900913, replace with EPSG:3857  (see https://epsg.io/3857 )
- remove all warnings from your GetCapabilities response, every single 
warning, there should be no warnings in the response, before you move to 
testing GetMap requests
- if you have PostGIS/db connections, consider setting EXTENT at the 
layer-level, to improve speed for your clients (review optimizations at 
https://mapserver.org/optimization/vector.html )

- during GetMap testing, comment any TEMPLATE params in mapfile


-jeff






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


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Jeff McKenna

More points for your consideration:

- make sure all layers have a PROJECTION object
- remove any old references to the (non-standard/non-existing) 
EPSG:900913, replace with EPSG:3857  (see https://epsg.io/3857 )
- remove all warnings from your GetCapabilities response, every single 
warning, there should be no warnings in the response, before you move to 
testing GetMap requests
- if you have PostGIS/db connections, consider setting EXTENT at the 
layer-level, to improve speed for your clients (review optimizations at 
https://mapserver.org/optimization/vector.html )

- during GetMap testing, comment any TEMPLATE params in mapfile


-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2023-05-04 1:38 p.m., Jeff McKenna wrote:

Yes I meant that, it forces it to be the start of the string, for security.

Can you also try changing WEB/METADATA param to  "wms_enable_request" "*"

(I may be missing something else obvious)

-jeff






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


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Jeff McKenna

Yes I meant that, it forces it to be the start of the string, for security.

Can you also try changing WEB/METADATA param to  "wms_enable_request" 
"*"


(I may be missing something else obvious)

-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2023-05-04 1:32 p.m., Chris Cantey wrote:
Did you mean to have the ^ in that string?   MS_MAP_PATTERN 
"^/home/web/gis/tmp/mapserver/".


It seemed to mess it up, so i reverted back to MS_MAP_PATTERN 
"/home/web/gis/tmp/mapserver/"


Same errors

On Thu, May 4, 2023 at 8:55 AM Jeff McKenna 
mailto:jmcke...@gatewaygeomatics.com>> 
wrote:


Hi Chris,

Can you try this in your config file:

     MS_MAP_PATTERN "^/home/web/gis/tmp/mapserver/"

thanks,

-jeff



-- 
Jeff McKenna

GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/ <http://gatewaygeo.com/>



On 2023-05-04 10:30 a.m., Chris Cantey wrote:
 > Hello all, I need some help.
 >
 > We are building a new web server a rebuilding mapserver on it,
migrating
 > from 6.4 to 8.0. But in testing, we keep getting the
"msWMSDispatch():
 > WMS server error. WMS request not enabled. Check
wms/ows_enable_request
 > settings." error.
 >
 > But we have that configured in our map file under
map>web>metadata. So
 > I'm not sure what is going on. Config file, map file, URL, error,
query
 > string, and error below.
 >

___
MapServer-users mailing list
MapServer-users@lists.osgeo.org <mailto:MapServer-users@lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users
<https://lists.osgeo.org/mailman/listinfo/mapserver-users>



--
Chris Cantey
geo-odyssey.com <http://geo-odyssey.com>



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


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Jeff McKenna

Hi Chris,

Can you try this in your config file:

   MS_MAP_PATTERN "^/home/web/gis/tmp/mapserver/"

thanks,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2023-05-04 10:30 a.m., Chris Cantey wrote:

Hello all, I need some help.

We are building a new web server a rebuilding mapserver on it, migrating 
from 6.4 to 8.0. But in testing, we keep getting the "msWMSDispatch(): 
WMS server error. WMS request not enabled. Check wms/ows_enable_request 
settings." error.


But we have that configured in our map file under map>web>metadata. So 
I'm not sure what is going on. Config file, map file, URL, error, query 
string, and error below.




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


Re: [MapServer-users] Database problem when using CLASSITEM

2023-04-30 Thread Jeff McKenna

Hi Jeremy,

I would run ogrinfo on that table to see what field to use for your 
CLASSITEM, such as:


ogrinfo PG:"user=postgres password=postgres dbname=mdm6data 
host=mxsig-db port=5432" tutoiral.states_ugl_imported -summary


(your timing is good as the tutorial was recently updated for MapServer 8 )

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2023-04-29 4:12 p.m., Jeremy JK wrote:

Hola

OK so I am going through the MapServer tutorial
Example 1-3 to be exact
the one with the classes
using classes to split layer polygon into land and water

when shp and dbf file is in filesystem it works fine
But
When I import shp file into postgres I get the following error

After checking the error logs, my question is how do I get a class 
column? Do I have to insert the dbf file into schema? If so, how?

Thanks

*Error*:
msDrawMap(): Image handling error. Failed to draw layer named 
'states_poly'. msPostGISLayerWhichShapes(): Query error. Error executing 
query. Check server logs




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


Re: [MapServer-users] Building mapserver on AlmaLinux with Oracle

2023-04-24 Thread Jeff McKenna

Hi Rob,

Does your issue occur with CMake 3.26.3 also?  (I "have that t-shirt", 
where I struggle with getting CMake to find libs and then upgrading 
CMake solves it)  Worth a try at least.


-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2023-04-23 6:14 p.m., Robert Hewlett wrote:

Hello All,

The end goal is to have mapserver compiled with both Oracle and PostGIS 
for AlmaLinux 9.1 (Lime Lynx).


The package in EPEL+CRB has mapserver minus oracle.

Note, this is the first time building with cmake. I have most 
likely made some rookie mistakes.


However, I feel the library names are slightly different e.g. 
Debian/Ubunut vs RHEL naming conventions.


For instance the protobuf packages is installed:
/usr/lib64/libprotobuf-c.so.1
/usr/lib64/libprotobuf-c.so.1.0.0
/usr/lib64/libprotobuf.so.25
/usr/lib64/libprotobuf.so.25.0.0

The prefix pathi is:

  -DCMAKE_PREFIX_PATH=/usr/lib:/usr/lib64:/usr/local/pgsql:/usr/local:/opt

But I get an error as seen below:

   PROTOBUFC library/component/dependency could not be found.

     HINTS:
     - disable PROTOBUFC support by adding -DWITH_PROTOBUFC=0
     - add the PROTOBUFC install directory to the CMAKE_PREFIX_PATH 
variable 
(-DCMAKE_PREFIX_PATH="/path/to/PROTOBUFC-install-dir;/path/to/other/dirs"

Call Stack (most recent call first):
   CMakeLists.txt:339 (report_optional_not_found)

Any help would be appreciated,

Rob


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


[MapServer-users] 8.0.1 & 7.6.5 released

2023-04-21 Thread Jeff McKenna
The MapServer team is pleased to announce the maintenance releases of 
MapServer 8.0.1 and 7.6.5


For the list of changes see the changelogs:

 - 8.0.1: 
https://mapserver.org/development/changelog/changelog-8-0.html#changelog-8-0-1


 - 7.6.5: 
https://mapserver.org/development/changelog/changelog-7-6.html#changelog-7-6-5


Or head to Download at https://mapserver.org/download.html

For those wanting searchable offline documentation (with click-able 
index of terms at end), the updated PDF is now available at 
https://download.osgeo.org/mapserver/docs/MapServer.pdf


(the demo server and its so many services have all received big upgrades 
as part of this effort: https://demo.mapserver.org )


Fun fact: most #foss4g releases happen on a Friday 

Happy (fast) mapserving...


--
The MapServer Team







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


[MapServer-users] Happy birthday to MapServer

2023-04-11 Thread Jeff McKenna
Happy 23rd birthday wishes to the whole MapServer project, as the first 
available commit in the repository was made back on 2000-04-11 (see the 
commit here 
https://github.com/MapServer/MapServer/commit/abe3c7aca45618c67750c3b421824f8e853cdfc0 
) for the 3.3 release.  The project history of course goes back to 1994.


Thank-you to all of the contributors and users and promoters, over all 
of these decades.


happy mapserv-ing!

https://pasteboard.co/Mr2aIuoM7LN3.png

-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/












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


Re: [MapServer-users] demo.mapserver.org seems down

2023-04-11 Thread Jeff McKenna
Yes my apologies Just, I've been upgrading the server.  It should be 
fixed soon.


(by the way, I've been monitoring the hits it gets, wow, quite a popular 
server!  So I definitely know how important this is to everyone.  I 
worked on it all Easter weekend)


Hope you had a nice Easter.



-jeff



On 2023-04-11 8:13 a.m., Just van den Broecke wrote:

Hi,

All links to demo.mapserver.org are stale (502 Bad Gateway). The 
http-redirect 301 to SSL works though. Maybe a proxy setting?


Best,

Just


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


Re: [MapServer-users] HTTP/2 Protocol Error MS Demo server

2023-03-29 Thread Jeff McKenna

Hi Just,

I've been working hard on the demo server, for the 8.0.1 release, so 
your report is good timing, will take a look...


Thanks,

-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2023-03-29 7:08 a.m., Just van den Broecke wrote:

Hi,

In the pygeoapi CI on GitHub we experience suddenly an error in the OGR 
Provider that connects via WFS to the MapServer demo server. The problem 
has to do with HTTP/2 on a Ubuntu 20.04 system.


Error is like:
"Failure, Msg: HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR 
(err 1)"


I can trigger the same error with curl on a Ubuntu 20.04 LTS (used by 
the GH CI)


  curl -v  https://demo.mapserver.org/cgi-bin/wfs

* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
* http2 error: Invalid HTTP header field was received: frame type: 1, 
stream: 1, name: [upgrade], value: [h2,h2c]

* HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
* stopped the pause stream!
* Connection #0 to host demo.mapserver.org left intact
curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)


Forcing HTTP 1.1 gets rid of the error:

curl -v  --http1.1 https://demo.mapserver.org/cgi-bin/wfs

So it doesn't seem pygeoapi nor GDAL-related. Looks more like this 
(Apache) problem:

https://serverfault.com/questions/937253/https-doesnt-work-with-safari

Best,

--Just

Just van den Broecke
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users



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


Re: [MapServer-users] Changing opacity of one layer in a multilayer WMS request URL with MapServer 8

2023-02-21 Thread Jeff McKenna
Wonderful to hear that you are using the MapServer.pdf!  (I actually put 
much effort into maintaining that PDF output, that but I never hear 
feedback...until someone reports a problem, like you did now, ha). 
Sometimes my updates differ from website rebuilds, will be sure to 
update the PDF for the upcoming 8.0.1 release.


Again, thanks for this report!

(also, don't be afraid to report doc issues like this at 
https://github.com/MapServer/MapServer-documentation/issues )


thanks again for the report!

-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2023-02-21 12:52 p.m., Matthew Graber wrote:

Hello all!

With MapServer 8, I'm wondering what the proper way to change the 
opacity of a single layer in a multilayer WMS request is.


For example, the following URL excerpt shows the old way of 
accomplishing this that worked while using MapServer 7:


SERVICE=WMS=1.3.0=GetMap=image%2Fpng=test_a,test_b[test_b]=OPACITY+50

My understanding is that this would have the same effect as adding 
"OPACITY 50" to the test_b layer in the mapfile. The mapfile containing 
test_a and test_b did not have OPACITY included when they were written. 
Obviously, this no longer works with MapServer 8, and now that request 
has the same results as omitting the "[test_b]=OPACITY+50" 
portion entirely.


Based on https://mapserver.org/fr/MIGRATION_GUIDE.html 
<https://mapserver.org/fr/MIGRATION_GUIDE.html>, I see that OPACITY now 
belongs inside a COMPOSITE object. I tried the following modifications 
to the request URL:


SERVICE=WMS=1.3.0=GetMap=image%2Fpng=test_a,test_b[test_b].composite=OPACITY+50
SERVICE=WMS=1.3.0=GetMap=image%2Fpng=test_a,test_b[test_b].composite[0]=OPACITY+50

I also tried this both with the mapfile left as-is, and with an empty 
COMPOSITE object being included in each layer object, and each time I 
got the same unsuccessful result as before.


Is there a way to accomplish this in MapServer 8?

Also, does this map.layer[layername]=... syntax still work in MapServer 
8? The documentation at 
https://mapserver.org/cgi/controls.html#using-mapserver-version-8 
<https://mapserver.org/cgi/controls.html#using-mapserver-version-8> 
suggests it might no longer work for MapServer 8 (based on the heading 
"Using MapServer version < 8"), but the documentation at 
https://mapserver.org/pdf/MapServer.pdf 
<https://mapserver.org/pdf/MapServer.pdf> shows the same examples with 
the heading "Using MapServer version <= 8" on page 1065 of the PDF, so 
I'm unsure if this is still intended to work in MapServer 8.


Thank you,
Matt

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


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


[MapServer-users] Fwd: pygeoapi 0.14.0 released

2023-02-03 Thread Jeff McKenna

Super news (below) from the pygeoapi team, MapServer MapScript support


 Forwarded Message 



The pygeoapi team announces the release of pygeoapi 0.14.0.

This release provides new support for OGC API - Maps draft specification,
improvement to OGC API - Tiles support,
numerous bugfixes

Source and binary downloads


The source code is available at:https://pygeoapi.io/download 



PyPI packages are available at:https://pypi.org/project/pygeoapi 



Version 0.14.0 (2023-02-03)
---

- add support for OGC API - Maps (MapServer MapScript and WMS Facade 
backends)

- update OGC API - Tiles support
- fix various Starlette front end issues
- update reuse of OpenAPI generation for downstream applications
- autodetect SQLiteGPKG geometry columns, fix provider get_fields JSON 
Schema types

- update to Ubuntu jammy in Docker image
- fix field typing in CSV and GeoJSON feature providers
- add 413 support for providers
- add links to /processes endpoint
- update all string interpolations to f-string notation

All contributions are always welcome.

The pygeoapi team

https://pygeoapi.io  

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


[MapServer-users] MapCache 1.14.0 available (security release)

2023-01-30 Thread Jeff McKenna
MapCache 1.14.0 is now released, that includes handling a string 
formatting injection vulnerability.


Changelog: 
https://mapserver.org/development/changelog/mapcache/changelog-1-14.html

Download: https://download.osgeo.org/mapserver/mapcache-1.14.0.tar.gz

thanks,

--
MapServer / MapCache team








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


Re: [MapServer-users] Link in SLD doc returns an exception

2023-01-01 Thread Jeff McKenna

Happy new year Brent,

I have been updating the demo server with big changes, so your timing is 
good: if you don't mind, it helps me if you file this as a ticket in the 
documentation repository (I'll then tag it there as a demo server 
ticket) : https://github.com/MapServer/MapServer-documentation


Thanks,

-jeff


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2022-12-30 5:34 p.m., Brent Fraser wrote:


Hi All,

I'm experimenting with SLD and reading the MapServer doc.  On the SLD 
page under Server Side Support, it says "Test the remote SLD request" 
with a link to


https://demo.mapserver.org/cgi-bin/wms?SERVICE=wms=1.1.1=GetMap=country_bounds=png=400=300=EPSG:4326==-180.0,-90.0,180.0,90.0=TRUE=https://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml
 
<https://demo.mapserver.org/cgi-bin/wms?SERVICE=wms=1.1.1=GetMap=country_bounds=png=400=300=EPSG:4326==-180.0,-90.0,180.0,90.0=TRUE=https://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml>

The link looks good but it returns an exception:


"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd;>



msSLDApplySLDURL: WMS server error. Could not open SLD 
https://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml 
<https://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml> and 
save it in a temporary file. Please make sure that the sld url is valid 
and that the temporary path is set. The temporary path can be defined 
for example by setting TEMPPATH in the map file. Please check the 
MapServer documentation on temporary path settings.
msHTTPExecuteRequests(): HTTP request error. HTTP GET request failed 
with status 404 () for 
https://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml 
<https://demo.mapserver.org/ogc-demos/map/sld/sld_line_simple.xml>





Is the demo in a repo somewhere or does someone have some insight?  Thanks!

Best regards,
Brent Fraser


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



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


Re: [MapServer-users] ASKING HELP

2022-12-22 Thread Jeff McKenna
Good afternoon, the TinyOWS home is at : 
https://mapserver.org/tinyows/index.html


Wishing you a merry Christmas,

-jeff






--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-12-21 12:40 p.m., Boubacar Bah wrote:
good evening? I hope that you all are ok. by the way i have a problem 
with the tinyows server. which does not work. proof the link to their 
site does a redirect: http://www.tinyows.org/ <http://www.tinyows.org/>
so I would like to know if there is another server alternative for the 
wfs-T TRANSFER DATA transaction from the website to the POSTGIS database.

waiting for your reply cordially.




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


Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Jeff McKenna

On 2022-12-20 3:42 a.m., Marcin Niemyjski via MapServer-users wrote:

Failed to download capabilities:Download of capabilities failed


I would take QGIS out of the equation, as recent MapServer does not have 
a layer limit, see my instructions to test the exact QGIS requests in 
your browser instead, at 
https://github.com/MapServer/MapServer/wiki/Get-the-Raw-WMS-Request-Generated-by-QGIS 
 (also note the mention of QGIS caching the GetCapabilities there, and 
the workaround, as you modify your services)


Wishing all, the MapServer community, a wonderful Christmas with your 
families.


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/







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


Re: [MapServer-users] Tileindex in format different than SHP?

2022-12-14 Thread Jeff McKenna
I had recently spent a few weeks of effort on updating the documentation 
for TILEINDEX, with many examples, see : 
https://mapserver.org/optimization/tileindex.html


-jeff


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-12-14 7:23 a.m., Marcin Niemyjski via MapServer-users wrote:

Hello,

Can I use format different than SHP while using tileindex of rasters?

When using Mapfile with configuration as below:

LAYER
         NAME "2021-01-02_high"
         STATUS ON
         TILEINDEX "/DyskPlanetiler/Sentinel1COG/2021/01/02/2021-01-02.gpkg"
         TILEITEM "location"
         TYPE RASTER
         MAXSCALEDENOM 400
         GROUP "2021-01-02"
         PROJECTION
             "init=epsg:4326"
         END
END

error is recived:
msShapefileOpen(): Unable to access file. 
(/DyskPlanetiler/Sentinel1COG/2021/01/01/2021-01-01.gpkg)


is there a way to use geopackage or flatgeobuf as indexes or do I have 
to go back to shp?


Best,
Marcin

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



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


Re: [MapServer-users] fix tutorial? (Re: GetFeatureInfo html template)

2022-12-07 Thread Jeff McKenna

On 2022-12-07 8:26 a.m., Jörg Thomsen (WhereGroup) wrote:

Hi,

Am 07.12.22 um 11:44 schrieb Marcin Niemyjski via MapServer-users:

Hello,

I'm looking for tutorial of enabling GetFeatureInfo requests of WMS. I 
would be grateful for any example of code of .tmpl file. What I want 
to do is simple table with name and value of attribute for selected 
feature.

there should be one in the tuitorial
https://www.mapserver.org/tutorial/index.html
https://demo.mapserver.org/tutorial/section3.html

but ist seems to be broken, who could fix it?




I had started some fixes last week, will continue now (follow along at 
https://github.com/MapServer/MapServer-documentation/issues/779 ).  If 
you ever notice issues with the demo server or any of the many services 
relying on it, either email me directly or report the issue in the 
'MapServer-documentation' repository.  thanks,


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




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


Re: [MapServer-users] Catalogue Service for the Web (CSW) with MapServer?

2022-11-28 Thread Jeff McKenna
For several years now, every MS4W installation comes with a working CSW 
endpoint out-of-the-box (through pycsw : https://pycsw.org/ , which is a 
lightweight Python implementation).  At some point soon MS4W will also 
serve OGC API Records (the equivalent of CSW) through pygeoapi ( 
https://pygeoapi.io/ ), which is definitely worth your time to examine 
as well.


Hope that helps,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-11-28 10:33 a.m., Gerhard Völkl wrote:

Hello,

Is ist possible to create an *Catalogue Service for the Web (CSW) with 
MapServer?*

*
*
*If Not Which free software do you use?*
*
*
*Thanks*
*
*
*Best Regards Gerhard*


Von meinem iPad gesendet

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



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


Re: [MapServer-users] Trying to get the right transformation with Mapserver 8.0.0 + PROJ 9.1.0

2022-11-08 Thread Jeff McKenna
Hi Wouter, when I get stuck like this, the first thing I do is compile 
'master' of PROJ, GDAL, and also MapServer, and then re-try.  Once that 
fails then I know I'm officially stuck :)


-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-11-08 9:43 a.m., Wouter Visscher wrote:

Hi,

I'm struggling a bit with Mapserver (8.0.0) + PROJ (9.1.0) getting it to 
use the right transformation (RDTRANS2018) rules.


I have a (Docker) environment with
- PROJ 9.1.0
- GDAL 3.5.2
- Mapserver 8.0.0 (branch-8-0)

When I run cs2cs (PROJ) the output is correct (in order words what I 
expect) going from EPSG:28992 -> EPSG:4258.
With PROJ_DEBUG on I can verify that is calling the right tif 
(nl_nsgi_rdtrans2018.tif in this case)
Moving up the chain by using GDAL (ogr2ogr GPKG EPSG:28992 -> GPKG 
EPSG:4258) I get the same correct result.


But putting it all together with Mapserver I'm not seeing the same 
result and I'm getting results +100m from where they should be.
The strange thing is when I use EPSG:25831 (ETRS89 / UTM zone 31N, in 
meters) instead of EPSG:4258 (ETRS89, degree) the results are correctly 
translated. (also using the nl_nsgi_rdtrans2018.tif when called with cs2cs)


Mapserver also seems to use the correct PROJ 9.1.0, when I alter 
PROJ_DATA or remove the proj.db it says it's missing them.
Also using different data sources like GPKG, FGB, and so on doesn't seem 
to change this behaviour.


Does anyone know what could be causing this or advice on how to further 
investigate the issue?


Regards,
Wouter



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


Re: [MapServer-users] readGIF error meaning ?

2022-11-07 Thread Jeff McKenna

Hello JC,

If you are using MS4W, you can test a GetLegendGraphic request by using 
the local demo WMS service that comes with every MS4W install, 
out-of-the-box, such as:


https://ms4w.dev/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/local.map=WMS=1.1.1=getlegendgraphic=countries=image/png

(you should be able to modify the url above for 127.0.0.1/ instead)

If that works locally for you, just follow the local-demo.map, for your 
own mapfile.


-jeff


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2022-11-07 11:23 a.m., Jean-Christophe Bastin wrote:

Hello,

I have many map files and I’m trying to get legends from them.

I followed the documentation I found : 
https://mapserver.org/ogc/wms_server.html#getlegendgraphic-request 
<https://mapserver.org/ogc/wms_server.html#getlegendgraphic-request>


The map file I test follows the requirements. I tried many calls :

http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map=WMS=mylayer=getlegendgraphic=image/png=1.0.0
 
<http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map=WMS=mylayer=getlegendgraphic=image/png=1.0.0>

http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map=WMS=mylayer=getlegendgraphic=image/png=1.1.0
 
<http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map=WMS=mylayer=getlegendgraphic=image/png=1.1.0>

http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map=WMS=mylayer=getlegendgraphic=image/png=1.1.1
 
<http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map=WMS=mylayer=getlegendgraphic=image/png=1.1.1>

http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map=WMS=mylayer=getlegendgraphic=image/png=1.3.0_VERSION=1.1.0
 
<http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map=WMS=mylayer=getlegendgraphic=image/png=1.3.0_VERSION=1.1.0>

Each of them give me the error :

readGIF(): General error message. corrupted gif image?: Failed to read 
from file


What does that mean ? Am I missing a parameter in my call or something 
more in the map file that is not in the documentation ?


Or is it the kind of generic error “I can’t generate your legend, just 
find by yourself why” ? XD


Many thanks !

*JCB*




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


Re: [MapServer-users] Swig Mapscript Still Fails to Build with PHP 8

2022-09-28 Thread Jeff McKenna

Hi BG,

I've added a wiki page for this, that includes macOS specific steps to 
compile SWIG from source, at 
https://github.com/MapServer/MapServer/wiki/Compiling-SWIG-from-source


I strongly encourage you to edit and enhance that page, make 
corrections, and/or create new wiki pages and share them here, to record 
your steps so that others can learn from your journey.


(you can then add your new pages to the "Tips, Tricks, Howtos" section 
of https://github.com/MapServer/MapServer/wiki )


Thanks,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/





On 2022-09-28 12:48 p.m., b g wrote:

Hi Jeff,

Thanks for your response. It was indeed helpful and gave me something to 
try out. However, when I try those lines of code, this is what it says:


Looking for PCRE2 tarball...

ls: pcre2-*.tar*: No such file or directory

Could not find tarball matching pattern: pcre2-*.tar*

admin@Administrators-Mac swig-git-master % ./autogen.sh

+ test -d Tools/config

+ aclocal -I Tools/config

./autogen.sh: line 11: aclocal: command not found

admin@Administrators-Mac swig-git-master % ./configure --prefix=/usr

zsh: no such file or directory: ./configure

admin@Administrators-Mac swig-git-master % make

make: *** No targets specified and no makefile found.Stop.


Are there any other lines that I need to include with those? The first 
few run just fine (although I needed to replace 'wget' with 'curl'). And 
does this replace the use of the Github clone for MapServer 8.0? Or is 
this supposed to be setup in conjunction with MapServer 8.0?


Thanks again for your help,

bg


*From:* MapServer-users  on 
behalf of Jeff McKenna 

*Sent:* Tuesday, September 27, 2022 6:11 PM
*To:* mapserver-users@lists.osgeo.org 
*Subject:* Re: [MapServer-users] Swig Mapscript Still Fails to Build 
with PHP 8

Hi BG,

Thanks for starting this discussion here, as many other readers will
help & learn from your situation; I first want to wish you a warm
welcome from the MapServer community :)

As Seth mentioned, I spent a lot of effort setting up the automated PHP
8 + MapServer 8 builds "on the cloud", and some of those steps can be
used by you directly.

But to step back a bit, first thing to mention is that PHP 8 with
MapServer 8 is best handled through the SWIG library "master" branch,
and this is likely one of your issues (the Homebrew formula you are
using for SWIG is probably SWIG 4.0.x, and you need the upcoming 4.1.0
release, or build its master branch from source).

Regarding the SWIG 4.1.0 upcoming release (and its heavy demand), see my
call for help at
https://lists.osgeo.org/pipermail/mapserver-dev/2022-September/016881.html 
<https://lists.osgeo.org/pipermail/mapserver-dev/2022-September/016881.html>

Regarding you possibly compiling SWIG 'master' branch, you can follow my
exact steps to do this on these lines:
https://github.com/MapServer/MapServer/blob/main/ci/travis/before_install.sh#L38-L47 
<https://github.com/MapServer/MapServer/blob/main/ci/travis/before_install.sh#L38-L47>
(maybe other Mac devs can update those steps here in this discussion
thread for you)

I personally think all this will take some time before all packagers
catch up to these changes, to make it smooth for their users.  In this
case some time is required before the next SWIG can be released, and
then propagated to all those FOSS4G packages that we love.

Its for this exact reason that I have put almost my entire career into
MS4W, to prevent users from facing these same build challenges (and
there are many challenges, ha).

I'm not sure that I've helped with this response, other than giving you
some background info.

Don't be discouraged, you will indeed fall in love with MapServer :)

Thanks,

-jeff




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


Re: [MapServer-users] Swig Mapscript Still Fails to Build with PHP 8

2022-09-27 Thread Jeff McKenna

Hi BG,

Thanks for starting this discussion here, as many other readers will 
help & learn from your situation; I first want to wish you a warm 
welcome from the MapServer community :)


As Seth mentioned, I spent a lot of effort setting up the automated PHP 
8 + MapServer 8 builds "on the cloud", and some of those steps can be 
used by you directly.


But to step back a bit, first thing to mention is that PHP 8 with 
MapServer 8 is best handled through the SWIG library "master" branch, 
and this is likely one of your issues (the Homebrew formula you are 
using for SWIG is probably SWIG 4.0.x, and you need the upcoming 4.1.0 
release, or build its master branch from source).


Regarding the SWIG 4.1.0 upcoming release (and its heavy demand), see my 
call for help at 
https://lists.osgeo.org/pipermail/mapserver-dev/2022-September/016881.html


Regarding you possibly compiling SWIG 'master' branch, you can follow my 
exact steps to do this on these lines: 
https://github.com/MapServer/MapServer/blob/main/ci/travis/before_install.sh#L38-L47 
(maybe other Mac devs can update those steps here in this discussion 
thread for you)


I personally think all this will take some time before all packagers 
catch up to these changes, to make it smooth for their users.  In this 
case some time is required before the next SWIG can be released, and 
then propagated to all those FOSS4G packages that we love.


Its for this exact reason that I have put almost my entire career into 
MS4W, to prevent users from facing these same build challenges (and 
there are many challenges, ha).


I'm not sure that I've helped with this response, other than giving you 
some background info.


Don't be discouraged, you will indeed fall in love with MapServer :)

Thanks,

-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/






On 2022-09-27 12:39 p.m., b g wrote:

Good morning,

I have been trying to build the MapServer 8.0 release using PHP 8. I am 
a new user having only been working with MapServer for just a couple of 
months, please forgive me I don't ask questions in the appropriate way.


I have seen posts on the Github referring to the new release as 
supporting PHP 8 as mentioned here: 
https://github.com/MapServer/MapServer/pull/6430 
<https://github.com/MapServer/MapServer/pull/6430>**and here: 
https://github.com/MapServer/MapServer/issues/6632 
<https://github.com/MapServer/MapServer/issues/6632>. However, I fail to 
see a post mentioning the steps of what I need to change in the build 
process. My process is as follows: I install Homebrew and then install 
the dependencies -- httpd php@8.0 cmake pkg-config swig fcgi gd gdal 
geos giflib postgresql proj protobuf-c proj@7. After this I clone 
MapServer from Github and checkout rel-8-0-0. Next, I run cmake with the 
following options:


cmake ..  -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_FIND_FRAMEWORK=LAST 
-DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DWITH_CLIENT_WFS=ON 
-DWITH_CLIENT_WMS=ON -DWITH_CURL=ON -DWITH_FCGI=ON -DWITH_FRIBIDI=OFF 
-DWITH_GDAL=ON -DWITH_GEOS=ON -DWITH_HARFBUZZ=OFF -DWITH_KML=ON 
-DWITH_OGR=ON -DWITH_POSTGIS=ON -DWITH_PROJ=ON -DWITH_PYTHON=OFF 
-DWITH_SOS=ON -DWITH_WFS=ON -WITH_CAIRO=ON -DCMAKE_SKIP_RPATH=ON 
-DWITH_PHPNG=ON -DCMAKE_INCLUDE_PATH="/usr/local/Cellar/postgresql"


And then make. However, make fails with errors referring to bindings 
needing PHP 7. The error log is listed below:



https://pastebin.com/99xWFcpE <https://pastebin.com/99xWFcpE>


Clearly, I must be missing something or doing something wrong during the 
build process since others have stated that version 8.0.0 works with PHP 
8. Could anyone be so kind to point out my error so that I could get 
this to work? Any help is much appreciated. Thank you so much.


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


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


[MapServer-users] 8.0.0 released !

2022-09-13 Thread Jeff McKenna

The MapServer team is thrilled to announce the release of MapServer 8.0.0

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-0.html .  Also included is 
an updated 1,143 page PDF of documentation, and of course an updated & 
maintained (so important) demo server of various OGC instances at 
https://demo.mapserver.org


It's been 22 years of commits by the MapServer community, so let's 
celebrate with a video! https://vimeo.com/748836978


Thanks for all of your feedback and passion for MapServer.


--
The MapServer Team




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


[MapServer-users] 8.0.0-rc2 released

2022-09-05 Thread Jeff McKenna
The MapServer team is super excited to announce the second release 
candidate of MapServer 8.0.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-0.html .


Thanks for all of your feedback and passion for MapServer.  If all goes 
well with this RC2, the final release will happen at the end of this 
week (!).



--
The MapServer Team





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


Re: [MapServer-users] Mapserver 8 rc1

2022-08-26 Thread Jeff McKenna

Hi Scott,

Can you open a ticket for this at 
https://github.com/MapServer/MapServer/issues ?  Thanks,


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-08-25 11:19 p.m., Scott wrote:
ms_error log is telling me it's unable to build the SQL query. There are 
no errors in the postgresql log.


Even if I comment the line out I get an error, such as:
--where st_intersects(geom, !BOX!)
or:
/* !BOX! */

If it exists any where in the DATA block, it fails.

Here's the ms error log:

[Thu Aug 25 13:46:55 2022].451955 msPostGISBuildSQL(): General error 
message. Failed to build SQL 'where'.
[Thu Aug 25 13:46:55 2022].451980 msPostGISLayerWhichShapes(): Query 
error. Failed to build query SQL.
[Thu Aug 25 13:46:55 2022].452010 msDrawMap(): Image handling error. 
Failed to draw layer named 'wptByTrailType'.


On 8/25/22 13:03, Steve Lime wrote:
Hmmm... Wasn't an intentional omission. If you have logging turned on 
and can see the resulting SQL, does the !BOX! get replaced but just 
incorrectly or is the !BOX! still in the SQL.


On Wed, Aug 24, 2022 at 5:16 PM Scott <mailto:pub...@postholer.com>> wrote:


    I've installed 8rc1 and I've run into an issue. I didn't see
    anything in
    the change log, so I'll put it here.

    The !BOX! variable that has been historically available doesn't 
seem to

    be supported with CONNECTIONTYPE POSTGIS any longer. For instance:

     DATA "geom from (
        select
           geom
        from sometable
        where st_intersects(geom, !BOX!)
     ) as sq using unique geom using srid=4269"

    ...will throw an error:

    
    http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd
    <http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd>">
    
    
    msDrawMap(): Image handling error. Failed to draw layer named
    wptsAll.
    msPostGISLayerWhichShapes(): Query error. Failed to build query SQL.
    msPostGISBuildSQL(): General error message. Failed to build SQL
    where.
    
    

    If I remove the !BOX! it will work.

    Thanks!
    Scott

    --
    www.postholer.com <http://www.postholer.com>
    ___
    MapServer-users mailing list
    MapServer-users@lists.osgeo.org 
<mailto:MapServer-users@lists.osgeo.org>

    https://lists.osgeo.org/mailman/listinfo/mapserver-users
    <https://lists.osgeo.org/mailman/listinfo/mapserver-users>


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



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


[MapServer-users] 8.0.0-rc1 released

2022-08-20 Thread Jeff McKenna
The MapServer team is super excited to announce the first release 
candidate of MapServer 8.0.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-0.html .


Thanks for all of your feedback and passion for MapServer.


--
The MapServer Team














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


Re: [MapServer-users] Hiding path to .map-files with Mapserver 8/ms4w5.0.0

2022-08-19 Thread Jeff McKenna
Please also be aware of the official CONFIG file documentation at 
https://mapserver.org/mapfile/config.html


Thanks,

-jeff





--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2022-08-19 4:19 a.m., Liva Vågane wrote:

Thank you!
Moving the aliases to the ms4w.conf-file did solve my problem!

Liva


fre. 19. aug. 2022 kl. 08:51 skrev Jörg Thomsen (WhereGroup) 
mailto:joerg.thom...@wheregroup.com>>:


Hi,

why don't you use the variables in the config-file? very easy to
use, no
restart of apache needed.

https://mapserver.org/development/rfc/ms-rfc-135.html
<https://mapserver.org/development/rfc/ms-rfc-135.html>

    MAPS
      MAP1 "/opt/mapserver/myapp/map1.map"
      MAP2 "/opt/mapserver/myapp/map2.map"
    END

Jörg




Am 18.08.22 um 18:03 schrieb Liva Vågane:
 > Hello,
 >
 > __
 >
 > Can anyone confirm that specifying the location of mapfiles using an
 > Apache variable
 >

<https://mapserver.org/cgi/controls.html?#specifying-the-location-of-mapfiles-using-an-apache-variable
 
<https://mapserver.org/cgi/controls.html?#specifying-the-location-of-mapfiles-using-an-apache-variable>>
 is
 > working in Mapserver 8/ms4w5.0.0?
 >
 > I can't get it to work with ms4w version 5.0.0-beta2, as I have with
 > ms4w 4.0.5
 >
 > This variant
 > <https://mapserver.org/ogc/wms_server.html#apache-setenvif
<https://mapserver.org/ogc/wms_server.html#apache-setenvif>> could
be an
 > alternative, but I would prefer not to generate a copy of
mapserv.exe
 > for every .map-file.
 >
 > __ __
 >
 > Thank you for your help!
 >
 > __ __
 >
 > Sincerely,
 >
 > Liva Vågane
 >
 >
 > ___
 > MapServer-users mailing list
 > MapServer-users@lists.osgeo.org
<mailto:MapServer-users@lists.osgeo.org>
 > https://lists.osgeo.org/mailman/listinfo/mapserver-users
<https://lists.osgeo.org/mailman/listinfo/mapserver-users>


-- 
Viele Grüße,

Jörg Thomsen

-
Aufwind durch Wissen!
Jetzt neu: Web-Seminare und Online-Schulungen
bei der www.foss-academy.com <http://www.foss-academy.com>
-

Jörg Thomsen
WhereGroup GmbH
Bundesallee 23
10717 Berlin
Germany

Tel: +49 (0)30 / 5130 278 74
Fax: +49 (0)30 / 5130 278 11

joerg.thom...@wheregroup.com <mailto:joerg.thom...@wheregroup.com>
www.wheregroup.com <http://www.wheregroup.com>

Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885

---
Folgen Sie der WhereGroup auf twitter:
http://twitter.com/WhereGroup_com <http://twitter.com/WhereGroup_com>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org <mailto:MapServer-users@lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users
<https://lists.osgeo.org/mailman/listinfo/mapserver-users>


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


[mapserver-users] 8.0.0-beta2 released

2022-08-15 Thread Jeff McKenna

The MapServer team is super excited to announce the second beta
release of MapServer 8.0.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-0.html .


(the first beta received so much excellent feedback before even a public 
announcement, that it was felt to focus on making those important 
changes, before the full announcement)  #passion


We're on schedule for a release candidate this coming Friday.

--
The MapServer Team

















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


Re: [mapserver-users] Mapserver 8, PHP 8 and Mapscript

2022-07-21 Thread Jeff McKenna
I should also add here, as you mention PHP 8: I did much effort recently 
to upgrade the continuous build systems (TravisCI, GitHub action) so 
that various PHP versions are now tested for PHPNG MapScript, including 
PHP 8.1.x, and re-enabled PHPUnit tests that test each MapScript object, 
every time a pull request or commit is made to the project repository. 
(you can find those tests inside /msautotest/php/ and follow the README 
there)


More tests are warmly welcomed of course! :)

Thanks,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2022-07-21 10:00 a.m., Jeff McKenna wrote:

Hi Sven,

For MapServer 8 (and beyond) you will need to enable the switch 
"-DWITH_PHPNG" to enable PHP MapScript through SWIG, as the old 
unmaintained PHP native MapScript has been removed for MapServer 8.


(I hope I am understanding your question correctly)

Thanks,

-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-07-21 6:54 a.m., Sven Schroeter wrote:

Hi,

I have a Problem compiling with Mapserver 8, PHP 8 and Mapscript on 
Debian 11 Bullseye


I have downloaded Mapserver 8.0 beta and configured it as follows:

|cmake-DCMAKE_INSTALL_PREFIX=/opt \|

|-DCMAKE_PREFIX_PATH=/usr/local:/opt \|

|-DWITH_CLIENT_WFS=ON \|

|-DWITH_CLIENT_WMS=ON \|

|-DWITH_WCS=ON \|

|-DWITH_THREAD_SAFETY=ON \|

|-DWITH_PHP=ON \|

|-DWITH_KML=ON \|

|-DWITH_GEOS=ON \|

|-DWITH_GDAL=ON \|

|-DWITH_OGR=ON \|

|-DWITH_PROJ=ON \|

|-DWITH_CAIRO=ON \|

|-DWITH_POSTGIS=ON \|

|-DWITH_CURL=ON \|

|-DWITH_SOS=ON \|

|-DWITH_XMLMAPFILE=0 \|

|-DWITH_FCGI=ON \|

|-DWITH_LIBXML2=ON \|

|-DWITH_GIF=ON \|

|-DWITH_FRIBIDI=0 \|

|-DWITH_HARFBUZZ=0 \|

|-DWITH_PROTOBUFC=0 \|

|-DWITH_PYTHON=OFF \|

|-DWITH_SVGCAIRO=OFF \|

|..|

  When I use Mapserver 7.6.4 in the same setup, the following lines 
appear:


-- /usr/include/php/20200930/main

-- Found PHP-Version 8.0.21 (using /usr/bin/php-config)

In Mapserver 8 these are missing and accordingly the output in 
mapscripts is:


--* Mapscripts

--* Python: disabled

--* PHPNG: disabled

That means PHP is not activated. In comparison the output with 
Mapserver 7.6.4:


--* Mapscripts

--* Python: disabled

--* PHP: ENABLED

--* PHPNG: disabled

It is the same server with the same installation components. 
Accordingly, in a make and make under Version 8 install PHP Mapscript 
is not installed.


php - v generates the following

Unable to load dynamic library 'php_mapscript.so' (tried: 
/usr/lib/php/20200930/php_mapscript.so 
(/usr/lib/php/20200930/php_mapscript.so: cannot open shared object 
file: No such file or directory), 
/usr/lib/php/20200930/php_mapscript.so.so 
(/usr/lib/php/20200930/php_mapscript.so.so: cannot open shared object 
file: No such file or directory)) in Unknown on line 0


Note: PHP is installed with FPM module (php8.0-fpm) and instead of 
mpm_prefork mpm_event is used.



Any idea?

Thanks Sven



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


Re: [mapserver-users] Mapserver 8, PHP 8 and Mapscript

2022-07-21 Thread Jeff McKenna

Hi Sven,

For MapServer 8 (and beyond) you will need to enable the switch 
"-DWITH_PHPNG" to enable PHP MapScript through SWIG, as the old 
unmaintained PHP native MapScript has been removed for MapServer 8.


(I hope I am understanding your question correctly)

Thanks,

-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-07-21 6:54 a.m., Sven Schroeter wrote:

Hi,

I have a Problem compiling with Mapserver 8, PHP 8 and Mapscript on 
Debian 11 Bullseye


I have downloaded Mapserver 8.0 beta and configured it as follows:

|cmake-DCMAKE_INSTALL_PREFIX=/opt \|

|-DCMAKE_PREFIX_PATH=/usr/local:/opt \|

|-DWITH_CLIENT_WFS=ON \|

|-DWITH_CLIENT_WMS=ON \|

|-DWITH_WCS=ON \|

|-DWITH_THREAD_SAFETY=ON \|

|-DWITH_PHP=ON \|

|-DWITH_KML=ON \|

|-DWITH_GEOS=ON \|

|-DWITH_GDAL=ON \|

|-DWITH_OGR=ON \|

|-DWITH_PROJ=ON \|

|-DWITH_CAIRO=ON \|

|-DWITH_POSTGIS=ON \|

|-DWITH_CURL=ON \|

|-DWITH_SOS=ON \|

|-DWITH_XMLMAPFILE=0 \|

|-DWITH_FCGI=ON \|

|-DWITH_LIBXML2=ON \|

|-DWITH_GIF=ON \|

|-DWITH_FRIBIDI=0 \|

|-DWITH_HARFBUZZ=0 \|

|-DWITH_PROTOBUFC=0 \|

|-DWITH_PYTHON=OFF \|

|-DWITH_SVGCAIRO=OFF \|

|..|

  When I use Mapserver 7.6.4 in the same setup, the following lines appear:

-- /usr/include/php/20200930/main

-- Found PHP-Version 8.0.21 (using /usr/bin/php-config)

In Mapserver 8 these are missing and accordingly the output in 
mapscripts is:


--* Mapscripts

--* Python: disabled

--* PHPNG: disabled

That means PHP is not activated. In comparison the output with Mapserver 
7.6.4:


--* Mapscripts

--* Python: disabled

--* PHP: ENABLED

--* PHPNG: disabled

It is the same server with the same installation components. 
Accordingly, in a make and make under Version 8 install PHP Mapscript is 
not installed.


php - v generates the following

Unable to load dynamic library 'php_mapscript.so' (tried: 
/usr/lib/php/20200930/php_mapscript.so 
(/usr/lib/php/20200930/php_mapscript.so: cannot open shared object file: 
No such file or directory), /usr/lib/php/20200930/php_mapscript.so.so 
(/usr/lib/php/20200930/php_mapscript.so.so: cannot open shared object 
file: No such file or directory)) in Unknown on line 0


Note: PHP is installed with FPM module (php8.0-fpm) and instead of 
mpm_prefork mpm_event is used.



Any idea?

Thanks Sven





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


Re: [mapserver-users] External WMS issue

2022-06-09 Thread Jeff McKenna
I have also tried to document my steps, in the official document at 
https://mapserver.org/ogc/wxs_secure.html


-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2022-06-08 7:07 p.m., John Huotari via MapServer-users wrote:

I'm having trouble hitting a WMS referenced from within my .map file.  Instead of the image from the WMS 
being drawn as a layer in my map, I instead get an error logged of "request failed with curl error 
code 60 (SSL certificate problem: unable to get local issuer certificate) for 
https://basemap.nationalmap.gov/arcgis/services/USGSTopo/MapServer/WmsServer?LAYERS=0=GetMap=WMS;..."

The confusing thing to me is that the exact same .map file works just fine to produce a map image 
containing the referenced layer when I run mapserver -nh at a command prompt.  i.e. mapserv -nh 
"QUERY_STRING=map=test.map&..." > test.png

I've configured a CURL_CA_BUNDLE environment variable pointing to a 
curl-ca-bundle.crt file and I think the fact that I can reach that external WMS 
when running the mapserv command at a command prompt would indicate it's 
configured correctly.  Any thoughts on what could cause the failure I'm seeing 
though MapServer running on Windows though IIS as a FastCGI app while 
succeeding when running the same .map file at a command prompt?  Or any 
thoughts on what I might try to troubleshoot further?

.map file contents are below

MAP
   NAME "MAP"
   CONFIG "MS_ERRORFILE" "e:/LogFiles/ms_error3.txt"
   CONFIG "PROJ_LIB" "E:/ms/projlib/"
   DEBUG 5
   EXTENT -20037508.342789244 -20037508.342789244 20037508.342789244 
20037508.342789244
   SIZE 256 256
   SYMBOLSET "E:\ms\basedata\symbols.txt"
   FONTSET "E:\ms\basedata\fonts.txt"
   IMAGECOLOR 255 255 255
   TRANSPARENT ON
   DEFRESOLUTION 72
   RESOLUTION 72
   UNITS meters
   PROJECTION "init=epsg:3857" END
   WEB
 METADATA
   "wms_enable_request" "*"
 END
   END
   LAYER
 STATUS DEFAULT TYPE RASTER NAME "WMS_DRG"
 DEBUG 5
 CONNECTIONTYPE WMS CONNECTION 
"https://basemap.nationalmap.gov/arcgis/services/USGSTopo/MapServer/WmsServer?;
 PROJECTION "init=epsg:3857" END
 METADATA
   "wms_srs"  "EPSG:3857"
   "wms_name"  "0"
   "wms_server_version"  "1.1.1"
   "wms_format"  "image/png"
 END
   END
END

*** PLEASE NOTE ***
This message, along with any attachments, is for the designated recipient(s) 
only and may contain privileged, proprietary, or otherwise confidential 
information. If this message has reached you in error, kindly destroy it 
without review and notify the sender immediately. Any other use of such 
misdirected e-mail by you is prohibited. Where allowed by local law, electronic 
communications with Zurich and its affiliates, including e-mail and instant 
messaging (including content), may be scanned for the purposes of information 
security and assessment of internal compliance with company policy.
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users



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


Re: [mapserver-users] External WMS issue

2022-06-09 Thread Jeff McKenna

Hi John,

There is a long-standing issue on Windows systems where environment 
variables are not able to be accessed, by the FOSS4G software stack.  To 
work around this for MS4W users, I set that CURL_CA_BUNDLE manually all 
throughout the MS4W stack, instead of through an environment variable. 
(the upcoming MapServer 8 release will include a config file where we 
can also set this instead)  I also set CURL_CA_BUNDLE in MS4W's Apache 
http server.  All of those manual sets have basically eliminated the 
hundreds of reports I'd get weekly of that variable not being read, from 
MS4W users.


Hope that helps (this issue is not discussed often publicly, but trust 
me, it unfortunately exists).


-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-06-08 7:07 p.m., John Huotari via MapServer-users wrote:

I'm having trouble hitting a WMS referenced from within my .map file.  Instead of the image from the WMS 
being drawn as a layer in my map, I instead get an error logged of "request failed with curl error 
code 60 (SSL certificate problem: unable to get local issuer certificate) for 
https://basemap.nationalmap.gov/arcgis/services/USGSTopo/MapServer/WmsServer?LAYERS=0=GetMap=WMS;..."

The confusing thing to me is that the exact same .map file works just fine to produce a map image 
containing the referenced layer when I run mapserver -nh at a command prompt.  i.e. mapserv -nh 
"QUERY_STRING=map=test.map&..." > test.png

I've configured a CURL_CA_BUNDLE environment variable pointing to a 
curl-ca-bundle.crt file and I think the fact that I can reach that external WMS 
when running the mapserv command at a command prompt would indicate it's 
configured correctly.  Any thoughts on what could cause the failure I'm seeing 
though MapServer running on Windows though IIS as a FastCGI app while 
succeeding when running the same .map file at a command prompt?  Or any 
thoughts on what I might try to troubleshoot further?

.map file contents are below

MAP
   NAME "MAP"
   CONFIG "MS_ERRORFILE" "e:/LogFiles/ms_error3.txt"
   CONFIG "PROJ_LIB" "E:/ms/projlib/"
   DEBUG 5
   EXTENT -20037508.342789244 -20037508.342789244 20037508.342789244 
20037508.342789244
   SIZE 256 256
   SYMBOLSET "E:\ms\basedata\symbols.txt"
   FONTSET "E:\ms\basedata\fonts.txt"
   IMAGECOLOR 255 255 255
   TRANSPARENT ON
   DEFRESOLUTION 72
   RESOLUTION 72
   UNITS meters
   PROJECTION "init=epsg:3857" END
   WEB
 METADATA
   "wms_enable_request" "*"
 END
   END
   LAYER
 STATUS DEFAULT TYPE RASTER NAME "WMS_DRG"
 DEBUG 5
 CONNECTIONTYPE WMS CONNECTION 
"https://basemap.nationalmap.gov/arcgis/services/USGSTopo/MapServer/WmsServer?;
 PROJECTION "init=epsg:3857" END
 METADATA
   "wms_srs"  "EPSG:3857"
   "wms_name"  "0"
   "wms_server_version"  "1.1.1"
   "wms_format"  "image/png"
 END
   END
END

*** PLEASE NOTE ***
This message, along with any attachments, is for the designated recipient(s) 
only and may contain privileged, proprietary, or otherwise confidential 
information. If this message has reached you in error, kindly destroy it 
without review and notify the sender immediately. Any other use of such 
misdirected e-mail by you is prohibited. Where allowed by local law, electronic 
communications with Zurich and its affiliates, including e-mail and instant 
messaging (including content), may be scanned for the purposes of information 
security and assessment of internal compliance with company policy.
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users



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


Re: [mapserver-users] Screen is square blank square window

2022-06-08 Thread Jeff McKenna

Hi Jeremy,

I would start always with making sure that your mapfile generates a 
valid map image, through the commandline with shp2img (or map2img with 
MapServer 8), see https://mapserver.org/utilities/shp2img.html  Such as:


  shp2img -m mdm61vectorCaribe.map -o ttt.png -all_debug 3

Make sure your boundaries layer appears nicely in your map image, and 
then once you have that ready, move onto your application request or WMS 
GetMap testing, etc.


PS. be careful with your EPSG:900913 use, as this is long deprecated (in 
most FOSS4G software now) as EPSG:3857 is recommended instead.  Read 
more about this at https://mapserver.org/mapfile/projection.html  But 
don't worry about the fun projection issues yet, start with 
shp2img/map2img first.


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-06-08 3:19 p.m., Jeremy JK wrote:

Hello all,
When I call on mapserver I see nothing in the browser window
only a grey square against a black background
Thanks for your help

this is my mapserver petition:

http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mdm61vectorCaribe.map=cbarbados_administrativeboundaries=image%2Fpng=4891.969809375=5=5=0==WMS=1.1.1=GetMap==059=EPSG%3A900913=-12281420.399711,-1098306.4872519,-4405349.0063027,4850328.8011857=805=608 
<http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mdm61vectorCaribe.map=cbarbados_administrativeboundaries=image%2Fpng=4891.969809375=5=5=0==WMS=1.1.1=GetMap==059=EPSG%3A900913=-12281420.399711,-1098306.4872519,-4405349.0063027,4850328.8011857=805=608>


This is the log file
52, -6635790.2658974118530750 1476490.8980501613114029, 
-6635788.7212414033710957 1476485.6568205237854272, 
-6635788.5621886961162090 1476485.1171328218188137, 
-6635786.9534297138452530 1476479.6583917171228677, 
-6635783.4353540828451514 1476467.1054714780766517, 
-6635779.1915921270847321 1476450.7408135060686618, 
-6635777.6594455474987626 1476444.0638863830827177, 
-6635776.2385215582326055 1476434.2757148493546993, 
-6635775.0103269824758172 1476422.8186795604415238, 
-6635773.4231182178482413 1476408.2214688013773412, 
-6635772.0777894463390112 1476396.2395822617691010, 
-6635770.4671615911647677 1476382.4886730741709471, 
-6635768.7171466927975416 1476359.7367921238765121, 
-6635766.8391131982207298 1476343.5201003090478480))

[Wed Jun  8 14:18:21 2022].812616 msPostGISLayerNextShape called.
[Wed Jun  8 14:18:21 2022].812648 msPostGISLayerFreeItemInfo called.
[Wed Jun  8 14:18:21 2022].812659 msPostGISLayerClose called: the_geom 
from caribe.barbados_administrativeboundaries using unique gid using 
srid=900913
[Wed Jun  8 14:18:21 2022].812736 
msConnPoolRelease(cbarbados_administrativeboundaries,user=postgres 
password=StrongAdminP@ssw0rd dbname=postgis_db host=127.0.0.1 
port=5432,0x5648bf2b6100)
[Wed Jun  8 14:18:21 2022].812752 msDrawMap(): Layer 20 
(cbarbados_administrativeboundaries), 0.783s

[Wed Jun  8 14:18:21 2022].834235 msPostGISLayerIsOpen called.
[Wed Jun  8 14:18:21 2022].843507 msConnPoolClose(user=postgres 
password=StrongAdminP@ssw0rd dbname=postgis_db host=127.0.0.1 
port=5432,0x5648bf2b6100)





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


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


Re: [mapserver-users] Mapserver projection, auto and extent

2022-05-19 Thread Jeff McKenna

Hi Trygve,

You can examine the problem QGIS GetMap request closely, through the 
Network Logger (it's really a saviour) 
https://github.com/mapserver/mapserver/wiki/Get-the-Raw-WMS-Request-Generated-by-QGIS


Then you can go back to review the trusty WMS Server document, and make 
sure you have set the required metadata: 
https://mapserver.org/ogc/wms_server.html


(which also means to remove all warnings from your GetCapabilities response)

But that QGIS network logger is your lifeline :)

Hope that gets you started,

PS. I never use 'auto', ever, never, it's my own rule and that's how I 
keep my sanity and avoid these issues, ha.  But others like it.  I only 
speak for myself here.


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-05-19 10:26 a.m., Trygve Aspenes wrote:

Hi

I got a geotiff raster with a projection which is not an EPSG code, so 
in the mapfile I use AUTO in the layer projection. This also means I 
skip the extent and projection in map level in the mapfile. In one 
client this works fine ( this client request epsg:3857 and this looks 
fine to me)


But in QGIS, this does not work nor any other projections.

Then I add EXTENT and PROJECTION in my mapfile like this:
MAP

   EXTENT -56.6378419 31.5007307 95.025531 84.6828537
   PROJECTION
     "init=epsg:4326"
   END

END

And then EPSG:4326 works in QGIS also. But if I try to change the 
projection i qgis, eg to EPSG:3857, this does not work in QGIS, even if 
it still work in my other client.


So what is it that I don't understand about EXTENT and PROJECTION. I 
have looked at the documentation 
https://mapserver.org/mapfile/projection.html#important-notes and and as 
far as I can understand from the second bullet point the projection 
definition at map level can be looked as the outgoing projection with 
the extent accordingly.


What do I need to do to make QGIS be able to use other projections as well?

I do have a link to my getcapabilities document, but hesitates to put it 
here.


Trygve Aspenes





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


Re: [mapserver-users] HTML Template legend

2022-05-16 Thread Jeff McKenna

Hi Marie,

I have just updated the official demo server today, and made sure that 
the various services (including the popular HTML Legend demo) work with 
the upcoming MapServer8 code:


 - demo home: https://demo.mapserver.org/
 - HTML Legend demo: https://demo.mapserver.org/itasca_legend/

The legend demo should give you some working examples to play with. (the 
interface may be old but the basic information & code shown there is 
very useful)


(I have been recently asked to share this demo through the default MS4W 
install for all users, which I will be sure to do)


Let me know if that helps or you need anything else, and thanks for this 
nudge ha!


Thanks,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2022-05-16 1:14 p.m., Marie Neige Guérin wrote:
Hi! Do you have a legend html template exemple to share ? (ref to 
https://mapserver.org/output/html_legend.html 
<https://mapserver.org/output/html_legend.html>)


Thank you!




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


[mapserver-users] FlatGeoBuf access (and WFS output) steps in MapServer

2022-04-25 Thread Jeff McKenna

Hi all,

I've spent some effort to document how to enable the optimized 
FlatGeobuf (FGB) format for vectors in MapServer, for both 
reading/access as well as steps to output FGB through WFS (you could 
also use these same steps for WMS GetFeatureInfo output of FGB as well): 
 https://mapserver.org/input/vector/flatgeobuf.html


The user community might be interested also in some performance testing 
that I've done with FlatGeobuf with MapServer (hardcore developers might 
question my exact methods, but for general users these results should be 
interesting).  I've added the results as a note in the Vector 
Optimization document ( https://mapserver.org/optimization/vector.html )


I used shp2img/map2img to test the map drawing speed for a few popular 
vector formats (note that these are averaged times, and are not done on 
a cold connection), with the latest MapServer 8.0-dev code on Windows 
through MS4W:


  Shapefile  0.011s
  FlatGeobuf 0.014s
  GeoPackage 0.042s
  SpatiaLite 0.045s
  PostGIS0.053s
  GeoJSON0.089s

The point is not to cause controversy or start analyzing my simple 
testing methods, but instead to generally show how optimized FlatGeobuf 
is for rendering (and filtering) in MapServer, and that we should all be 
considering this format for sharing vectors through our MapServer services.


Thanks,

-jeff


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/





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


Re: [mapserver-users] dynamic ows_serviceurl

2022-04-13 Thread Jeff McKenna
This is exactly why PHP MapScript has been so popular for so long 
("wrappers" of OGC services) and why so many examples of this exists in 
the MapServer documentation.  Honestly though, someday I also hope for a 
more direct way to handle these dynamic changes, but until then, 
#mapscriptrocks :)


-jeff


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2022-04-13 5:37 p.m., Paul via MapServer-users wrote:
Thanx for the suggestions Kaido, Seth, Steve. Updating the mapfile at 
deployment indeed is a better option then the querystring approach, let 
me verify what scripting options (sed?) i have on our docker image.




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


[mapserver-users] Happy birthday to MapServer

2022-04-11 Thread Jeff McKenna
Happy birthday wishes to the whole MapServer project, as the first 
available commit in the repository was made back on 2000-04-11 (see the 
commit here 
https://github.com/MapServer/MapServer/commit/abe3c7aca45618c67750c3b421824f8e853cdfc0 
) for the 3.3 release.  The project history of course goes back to 1994.


Thank-you to all of the contributors and users and promoters, over all 
of these decades.


happy mapserv-ing!

-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/






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


Re: [mapserver-users] Floating point exception

2022-04-08 Thread Jeff McKenna

Ciao Luca,

What happens when you pass the full query through ogrinfo with the 
"-sql" switch:


  ogrinfo -ro PG:"user= password= host=127.0.0.1 port=5432
dbname=" -sql "select "short_name"::text,ST_AsBinary(("geom"),'NDR') 
as geom,"research_groups_id"::text from (select research_groups_id,

short_name, geom from main.research_groups where
ST_Contains(ST_GeomFromText('POLYGON((-15.2587587587588
35,-15.2587587587588 70,37.2587587587588 70,37.2587587587588
35,-15.2587587587588 35))',4326), geom)) as subquery"


-jeff



On 2022-04-08 9:49 a.m., Luca Delucchi wrote:

On Fri, 8 Apr 2022 at 13:43, Jeff McKenna  wrote:


Ciao Luca,



Ciao,


I am wondering also if you tried to access the PostGIS data through
ogrinfo yet (to confirm there is no data issue).  Note that I'd
recommend GDAL 3.4.2, PROJ 8.2.1 with MapServer-main.

   ogrinfo -ro PG:"user= password= host=127.0.0.1 port=5432
dbname=" table -summary



yes this works


Then, follow along the debugging document (
https://www.mapserver.org/optimization/debugging.html ) and add the
following inside your MAP object in mapfile:

CONFIG "CPL_DEBUG" "ON"
CONFIG "CPL_TIMESTAMP" "ON"
CONFIG "PROJ_DEBUG" "ON"

Then re-retry map2img with -all_debug 5, and look for the full SELECT
query made to your database, and run that same query inside psql
commandline.



using map2img as suggested by Even  I got this

Reading symbols from map2img...
(gdb) run
Starting program: /home/lucadelu/installati/bin/map2img -m
eurodeer_new.map -o eurodeer.png -all_debug 5 -conf mapserver.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffebf54700 (LWP 801419)]
[New Thread 0x7fffeb753700 (LWP 801420)]
msDrawMap(): Image handling error. Failed to draw layer named 'Reserch
groups'. 
msPostGISLayerWhichShapes(): Query error. Failed to build query SQL. 
msPostGISBuildSQL(): General error message. Failed to build SQL 'where'. 
msSearchDiskTree(): Search returned no results. Unable to open spatial
index for 
/home/lucadelu/github/euromammals/print_maps/././data/ne_10m_admin_0_sovereignty.qix.
In most cases you can safely ignore this message, otherwise check file
names and permissions. 
[Fri Apr  8 14:38:55 2022].491539: GDAL: In GDALDestroy - unloading
GDAL shared library.
[Thread 0x7fffebf54700 (LWP 801419) exited]
[Thread 0x7fffec613bc0 (LWP 801411) exited]
[Inferior 1 (process 801411) exited with code 01]


However using shp2img with a running map file I was able to get the
full postgis query and run it on a database returning the error
"Floating point exception" without any problem.

select "short_name"::text,ST_AsBinary(("geom"),'NDR') as
geom,"research_groups_id"::text from (select research_groups_id,
short_name, geom from main.research_groups where
ST_Contains(ST_GeomFromText('POLYGON((-15.2587587587588
35,-15.2587587587588 70,37.2587587587588 70,37.2587587587588
35,-15.2587587587588 35))',4326), geom)) as subquery




-jeff






--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Floating point exception

2022-04-08 Thread Jeff McKenna

Ciao Luca,

I am wondering also if you tried to access the PostGIS data through 
ogrinfo yet (to confirm there is no data issue).  Note that I'd 
recommend GDAL 3.4.2, PROJ 8.2.1 with MapServer-main.


 ogrinfo -ro PG:"user= password= host=127.0.0.1 port=5432 
dbname=" table -summary


Then, follow along the debugging document ( 
https://www.mapserver.org/optimization/debugging.html ) and add the 
following inside your MAP object in mapfile:


  CONFIG "CPL_DEBUG" "ON"
  CONFIG "CPL_TIMESTAMP" "ON"
  CONFIG "PROJ_DEBUG" "ON"

Then re-retry map2img with -all_debug 5, and look for the full SELECT 
query made to your database, and run that same query inside psql 
commandline.



-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2022-04-01 9:22 a.m., Luca Delucchi wrote:

Hi all,

I'm getting "Floating point exception" error running shp2img, also
running with the debug option I don't get any other information.
The mapfile read data from PostGIS database, and If I use the same
mapfile with different database with the same tables I don't get this
error, so I think the problem is in the data but I don't know
where/what investigate

thanks in advance



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


Re: [mapserver-users] Floating point exception

2022-04-01 Thread Jeff McKenna

Ciao Luca,

I had earlier documented by usual PostGIS debugging steps at 
https://mapserver.org/optimization/vector.html#debugging-speed-issues-with-postgis


Also, instead of the "-map_debug 3" option with shp2img, try "-all_debug 
5" (use "3" if you just want to show the draw speed times)


The goal would be to output the exact query that MapServer is trying to 
execute against your database, and then try running that query at the 
psql commandline.


And, if all else fails, be sure to retry all of this with a build of 
today's MapServer "main" branch, and try with map2img.


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-04-01 9:22 a.m., Luca Delucchi wrote:

Hi all,

I'm getting "Floating point exception" error running shp2img, also
running with the debug option I don't get any other information.
The mapfile read data from PostGIS database, and If I use the same
mapfile with different database with the same tables I don't get this
error, so I think the problem is in the data but I don't know
where/what investigate

thanks in advance



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


Re: [mapserver-users] [REMINDER] OSGeo Local Chapter Meeting (aka TCMUG. Meeting)

2022-03-08 Thread Jeff McKenna
Good point Bob, breweries are well done by OSM mappers ha.  (it was the 
'&' versus 'and' in the name that got me)


-jeff



On 2022-03-08 2:18 p.m., Basques, Bob (CI-StPaul) wrote:

Jeff,

I was just getting to reply something like, "what' it's not there".  I remember 
all the breweries being some of the first stuff located (and for that matter, maintained) 
in OSM.  :c)


Bobb

  


On 3/8/22, 12:15 PM, "MapServer-users on behalf of Jeff McKenna" 
 
wrote:

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


 Oh it's there!  My first search didn't work it seems ha.  Ok now you can
 focus only on the meeting instead ;)

 -jeff



 On 2022-03-08 2:13 p.m., Jeff McKenna wrote:
 > Bonus points to add that 'Keg and Case' node into OSM while you partake
 > in consuming the 'brown pops' ha:
 > https://www.openstreetmap.org/node/6507015829
 >
 >
 >
 > On 2022-03-08 1:31 p.m., Basques, Bob (CI-StPaul) wrote:
 >> Hello all,
 >>
 >> I didn’t get any volunteers for a presentation this month, so going to
 >> the face to face route.
 >>
 >> The meeting will be at Keg and Case
 >> <https://goo.gl/maps/DjboSusmpa3VqL1U9>, on west 7^th street in Saint
 >> Paul.
 >>
 >> Date: Mar. 9^th
 >>
 >> When: 4:30 – 6:00 (7:00 comedy open Mic too)
 >>
 >> Bobb
 >>
 >> Previous meeting recordings can be accessed at the OSGeo chapter page
 >> 
<https://staging.www.osgeo.org/local-chapters/twin-cities-mn-usa-chapter/>
 >>
 >>
 >> Get me in Teams
 >> 
<https://teams.microsoft.com/l/chat/0/0?users=bob.basq...@ci.stpaul.mn.us>
 >>
 >>
 >> *PW19-S295-C024*
 >>
 >>
 >> ___
 >> MapServer-users mailing list
 >> MapServer-users@lists.osgeo.org
 >> https://lists.osgeo.org/mailman/listinfo/mapserver-users
 >
 >


 --
 Jeff McKenna
 GatewayGeo: Developers of MS4W, MapServer Consulting and Training
     co-founder of FOSS4G
 http://gatewaygeo.com/
 ___
 MapServer-users mailing list
 MapServer-users@lists.osgeo.org
 https://lists.osgeo.org/mailman/listinfo/mapserver-users




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] [REMINDER] OSGeo Local Chapter Meeting (aka TCMUG. Meeting)

2022-03-08 Thread Jeff McKenna
Oh it's there!  My first search didn't work it seems ha.  Ok now you can 
focus only on the meeting instead ;)


-jeff



On 2022-03-08 2:13 p.m., Jeff McKenna wrote:
Bonus points to add that 'Keg and Case' node into OSM while you partake 
in consuming the 'brown pops' ha: 
https://www.openstreetmap.org/node/6507015829




On 2022-03-08 1:31 p.m., Basques, Bob (CI-StPaul) wrote:

Hello all,

I didn’t get any volunteers for a presentation this month, so going to 
the face to face route.


The meeting will be at Keg and Case 
<https://goo.gl/maps/DjboSusmpa3VqL1U9>, on west 7^th street in Saint 
Paul.


Date: Mar. 9^th

When: 4:30 – 6:00 (7:00 comedy open Mic too)

Bobb

Previous meeting recordings can be accessed at the OSGeo chapter page 
<https://staging.www.osgeo.org/local-chapters/twin-cities-mn-usa-chapter/> 



Get me in Teams 
<https://teams.microsoft.com/l/chat/0/0?users=bob.basq...@ci.stpaul.mn.us> 



*PW19-S295-C024*


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






--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] [REMINDER] OSGeo Local Chapter Meeting (aka TCMUG. Meeting)

2022-03-08 Thread Jeff McKenna
Bonus points to add that 'Keg and Case' node into OSM while you partake 
in consuming the 'brown pops' ha: 
https://www.openstreetmap.org/node/6507015829




On 2022-03-08 1:31 p.m., Basques, Bob (CI-StPaul) wrote:

Hello all,

I didn’t get any volunteers for a presentation this month, so going to 
the face to face route.


The meeting will be at Keg and Case 
<https://goo.gl/maps/DjboSusmpa3VqL1U9>, on west 7^th street in Saint Paul.


Date: Mar. 9^th

When: 4:30 – 6:00 (7:00 comedy open Mic too)

Bobb

Previous meeting recordings can be accessed at the OSGeo chapter page 
<https://staging.www.osgeo.org/local-chapters/twin-cities-mn-usa-chapter/>


Get me in Teams 
<https://teams.microsoft.com/l/chat/0/0?users=bob.basq...@ci.stpaul.mn.us>


*PW19-S295-C024*


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



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Issue - Style constantly changes using Mapserver 7.6

2022-02-26 Thread Jeff McKenna
You can also play with the various PROCESSING directives for raster 
layers to see if that helps: 
https://mapserver.org/input/raster.html#special-processing-directives 
(RESAMPLE, LOAD_FULL_RES_IMAGE, ...)


-jeff





On 2022-02-25 4:34 p.m., Jeff McKenna wrote:
Maybe my test does show it a little (the brown "rain-snow" area to the 
left of my mouse, on top of the "rain" green area), as the resampling 
happens as you zoom-in.


-jeff




On 2022-02-25 4:19 p.m., Jeff McKenna wrote:

Hi Felix,

I have tested your case here locally on Windows with MS4W (this will 
be MS4W 5.0-beta3, that contains GDAL 3.4.1, MapServer 8.0dev, PROJ 
8.2.1 etc).


I have used one of those GRIB2 files ( 
https://dd.weather.gc.ca/model_hrdps/continental/grib2/00/001/CMC_hrdps_continental_PTYPE_SFC_0_ps2.5km_2022022500_P001-00.grib2 
) and created a WMS service through MS4W, and then used QGIS 3.24 to 
add the WMS service, and zoomed-in 3 times : see the animated gif at 
https://pasteboard.co/N9LZcB9Nfgpc.gif


I don't see your issue.

Could you pick one GRIB2 file (the one that is shown in the extents of 
your image) and change your mapfile to use that single data file (no 
patterns) and reproduce your issue?


If yes, let us know here the exact filename that is shown in your 
image (and the exact extents to use).


Have a nice weekend,

-jeff











--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Issue - Style constantly changes using Mapserver 7.6

2022-02-25 Thread Jeff McKenna
Maybe my test does show it a little (the brown "rain-snow" area to the 
left of my mouse, on top of the "rain" green area), as the resampling 
happens as you zoom-in.


-jeff




On 2022-02-25 4:19 p.m., Jeff McKenna wrote:

Hi Felix,

I have tested your case here locally on Windows with MS4W (this will be 
MS4W 5.0-beta3, that contains GDAL 3.4.1, MapServer 8.0dev, PROJ 8.2.1 
etc).


I have used one of those GRIB2 files ( 
https://dd.weather.gc.ca/model_hrdps/continental/grib2/00/001/CMC_hrdps_continental_PTYPE_SFC_0_ps2.5km_2022022500_P001-00.grib2 
) and created a WMS service through MS4W, and then used QGIS 3.24 to add 
the WMS service, and zoomed-in 3 times : see the animated gif at 
https://pasteboard.co/N9LZcB9Nfgpc.gif


I don't see your issue.

Could you pick one GRIB2 file (the one that is shown in the extents of 
your image) and change your mapfile to use that single data file (no 
patterns) and reproduce your issue?


If yes, let us know here the exact filename that is shown in your image 
(and the exact extents to use).


Have a nice weekend,

-jeff








--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Issue - Style constantly changes using Mapserver 7.6

2022-02-25 Thread Jeff McKenna

Hi Felix,

I have tested your case here locally on Windows with MS4W (this will be 
MS4W 5.0-beta3, that contains GDAL 3.4.1, MapServer 8.0dev, PROJ 8.2.1 etc).


I have used one of those GRIB2 files ( 
https://dd.weather.gc.ca/model_hrdps/continental/grib2/00/001/CMC_hrdps_continental_PTYPE_SFC_0_ps2.5km_2022022500_P001-00.grib2 
) and created a WMS service through MS4W, and then used QGIS 3.24 to add 
the WMS service, and zoomed-in 3 times : see the animated gif at 
https://pasteboard.co/N9LZcB9Nfgpc.gif


I don't see your issue.

Could you pick one GRIB2 file (the one that is shown in the extents of 
your image) and change your mapfile to use that single data file (no 
patterns) and reproduce your issue?


If yes, let us know here the exact filename that is shown in your image 
(and the exact extents to use).


Have a nice weekend,

-jeff





--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2022-02-25 10:34 a.m., Laframboise,Felix (ECCC) wrote:

Hi,

I am currently using GDAL 3.1.3 and Mapserver 7.6.2 on a Ubuntu machine. 
I created a layer using a GRIB2 file as the source data.


When I tested the layer on QGIS 3.20, I noticed that it does not output 
correctly. When I’m zooming or moving the viewing extent to visualize 
the layer or data, the style constantly changes. I tested with WMS 
GetMap requests through a browser and the output issue is still there. 
See example GIF here: https://pasteboard.co/wAmyAUDyEeZs.gif 
<https://pasteboard.co/wAmyAUDyEeZs.gif>


I validated the different classes (CLASS) in the style used in the 
mapfile and everything seems to be in order. From what I understand, 
Mapserver seems to do some interpolation, but I can’t quite understand 
how it affects the output on that scale. I investigated and checked if 
the source file was the issue, but from what I see it doesn’t seem like 
it’s the case, as I tested with other data from another source file in 
NetCDF, and the issue is still there.


I created a test case to show you the issue here:

·Sample mapfile: https://pastebin.com/KC3UkR4m 
<https://pastebin.com/KC3UkR4m>


·GRIB2 Source file (available here: 
https://dd.weather.gc.ca/model_hrdps/continental/grib2/00/001/ 
<https://dd.weather.gc.ca/model_hrdps/continental/grib2/00/001/>) for 
the source data (using following patterns) : 
/CMC_hrdps_continental_PTYPE_SFC_0_ps2.5km_*.grib2/


Do you have an idea what could be the issue or how the interpolation 
works, and how to solve this issue?


Thanks a lot in advance for your answer(s)!

Félix Laframboise

Félix Laframboise, B.Sc.

Développeur géospatial / Geospatial developer

Systèmes de données géospatiales et ouvertes

Geospatial and Open Data Systems

Service Météorologique du Canada

Meteorological Service of Canada

Environnement et Changement Climatique Canada

Environment and Climate Change Canada

felix.laframbo...@ec.gc.ca <mailto:felix.laframbo...@ec.gc.ca>


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


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


Re: [mapserver-users] vector tiles?

2022-02-23 Thread Jeff McKenna

Hi Rich,

Good catch, if you file a ticket for this in the docs repository I will 
tackle: https://github.com/MapServer/MapServer-documentation/issues


(for Windows users, MS4W includes the MVT demo, but you make a good 
point, and more could be setup for users out-of-the-box, I will tackle 
this for the MS4W 5.0-final release: https://ms4w.com/trac/ticket/369 )


-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2022-02-22 7:35 p.m., Richard Greenwood wrote:
The only problem that I'm struggling with is (I think) an 
OpenLayers issue. I want to do vector tiles in state plane coordinates, 
not epsg:3857. AFAIK only t-rex and mapserver can serve non epsg:3857 
vector tiles.


But more generally, I think that advertising that mapserver can serve 
vector tiles might be nice. An RFC with no voting history doesn't 
inspire great confidence in a pretty great feature.


On Tue, Feb 22, 2022 at 4:23 PM Steve Lime <mailto:sdl...@gmail.com>> wrote:


Correct. Rich, what docs would be most helpful?

On Sat, Feb 19, 2022 at 8:09 AM Thomas Gratier
mailto:osgeo.mailingl...@gmail.com>>
wrote:

Hi,

The code has been merged
https://github.com/MapServer/MapServer/pull/5376
<https://github.com/MapServer/MapServer/pull/5376> but as you
can see in the PR the documentation page has never been created.
The demo code mentioned in the RFC works

https://mapserver.org/development/rfc/ms-rfc-119.html#bug-id-and-references

<https://mapserver.org/development/rfc/ms-rfc-119.html#bug-id-and-references>


Regards

Thomas Gratier

Le sam. 19 févr. 2022 à 03:11, Richard Greenwood
mailto:richard.greenw...@gmail.com>> a écrit :

Are vector tiles supported and documented? My searches only
find RFC 119.

-- 
Richard W. Greenwood

www.greenwoodmap.com <http://www.greenwoodmap.com>





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


[mapserver-users] Reminder: Please add your site (or OGC services) to the MapServer Gallery

2022-02-22 Thread Jeff McKenna

Hi everyone!

Short story: please add your MapServer site or MapServer data services 
to the wiki page at 
https://github.com/MapServer/MapServer/wiki/MapServer-Site-Gallery


Background:

A few years ago a new MapServer user reminded us that we need working 
examples of applications (and MapServer-driven OGC/WMS/WFS/OWS services) 
listed on our map gallery. Please take a minute to add your site and 
specs (respecting the syntax and alphabetical order) at:

https://github.com/MapServer/MapServer/wiki/MapServer-Site-Gallery

It has become a great resource! Please take a moment to make sure that 
your MapServer-driven site or OGC services are listed there, especially 
as we are getting closer to the big MapServer 8.0 release. So help show 
the powers of MapServer!!


Thanks for making the MapServer community a vibrant place,

-jeff


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/






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


[mapserver-users] Call for more listed Service Providers

2022-02-22 Thread Jeff McKenna

Hi everyone,

Short story:

Please add your company to the list of MapServer service providers, if 
you handle this type of work (see the related ticket at 
https://github.com/MapServer/MapServer-documentation/pull/674 )


Longer explanation:

It's time to give an update to the MapServer Service Providers page ( 
https://mapserver.org/community/service_providers.html ), as this helps 
provide an important resource for the community, for those looking for 
professional help.  The page lists professional service providers by 
Core Contributors, Contributors, and Other Service Providers; you can 
read about the background on these sections in the related RFC 
https://mapserver.org/development/rfc/ms-rfc-116.html


Please let me know if you would like to add your company.  You may wish 
to mention your addition in the related pull request for this at 
https://github.com/MapServer/MapServer-documentation/pull/674


I'll leave this ticket open for 10 business days, to hopefully give 
others a chance to add their company.


Thanks for making the MapServer community a vibrant place,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/






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


Re: [mapserver-users] mapserv cli and run-time substitution

2022-02-07 Thread Jeff McKenna
Thanks Andrea, I have added your working example to the documentation, 
and included the step of checking your data type through an ogrinfo 
command.  Thanks again. https://mapserver.org/mapfile/validation.html


-jeff





On 2022-02-06 11:22 a.m., andy wrote:


On Sun, 6 Feb 2022 at 15:21, Steve Lime <mailto:sdl...@gmail.com>> wrote:


This should be the way to do it. No quotes around %year% in either
expression.


Yes, it works thank you Seth and Steve!!

--
___

Andrea Borruso
website: https://medium.com/tantotanto <https://medium.com/tantotanto>
38° 7' 48" N, 13° 21' 9" E, EPSG:4326
___

"cercare e saper riconoscere chi e cosa,
  in mezzo all’inferno, non è inferno,
e farlo durare, e dargli spazio"

Italo Calvino

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



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapFile DATA CONNECTION

2022-01-24 Thread Jeff McKenna

Hi James,

I've definitely been in your shoes before with these major Postgres 
upgrades.  Although not specific to your problem, here are some of my 
first steps to verify in battling these types of issues:


- always set PROCESSING "CLOSE_CONNECTION=DEFER" on each PG layer

- always set EXTENT and "wms_extent" on each PG layer

- after the Postgres upgrade, execute on your restored database through 
psql :


  SELECT postgis_extensions_upgrade();

- possibly remove any need for a reprojection in your requests, and 
re-test without


- set various CONFIG settings to turn on debugging (see 
https://mapserver.org/optimization/debugging.html )


Those are some quick thoughts here, without any food in my stomach 
before dinner, ha.


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-01-24 3:39 p.m., Lugosi, Jim via MapServer-users wrote:

Hi folks,

We are in the process of upgrading our Open Source Web Mapping Stack 
(ex. MapServer, PostgreSQL, PostGIS, OpenLayers).  However, we have run 
into an issue with performance when switching from our manually compiled 
9.6 PostgreSQL version / PostGIS 2.4 to PostgreSQL 13 / PostGIS 3.x (yum 
install & config).  The rendering and map interaction is very slow.  We 
are have tuned the database based on our previous configuration and new 
documentation for PostgreSQL.  Yet performance is still suffering.


The database seems to be function as expected.  We are tracking the 
requests and responses from the database.  Over 90% of the requests are 
being handled in under 1 second.  However, the one thing I did notice is 
the amount of queries to obtain the postgis version.  Why is this extra 
query/connection being sent?  Seems a bit too much.


Anyway, and help and/or suggestions would be greatly appreciated.

Linux – CentOS 7.x

MapServer – own server

PostgreSQL/PostGIS – own server

Application(s) – own server

Thanks

  __J
    _ \<,_
   (_*_)/ (_*_)

James Lugosi

Clackamas County GISP

IS Software Specialist, Senior

121 Library Court, Oregon City OR 97045

503-723-4829



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


[mapserver-users] Announcing MS4W 5.0-beta2

2021-12-23 Thread Jeff McKenna

Hi everyone,

A beta2 is now available, containing only the change in PROJ, that was 
first caught by Sven.  Thanks to all of the fast feedback from everyone. 
 https://ms4w.com/release/experimental/ms4w_5.0.0_beta2.zip


I also took the time to create a Migration Guide draft on the wiki ( 
https://ms4w.com/trac/wiki/MigrationGuide5.x ), containing sections on:

  - REQUIREMENTS.txt
  - ms4w.conf
  - PHP MapScript
  - Python MapScript
  - PROJ
  - Removed mapfile parameters
  - map2img

Please help adding to it by editing the wiki page directly.

Wishing a safe and healthy Christmas holiday to all.

Thank-you for using MS4W.
"MS4W: open doors as well as windows"


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Announcing MS4W 5.0-beta1

2021-12-11 Thread Jeff McKenna
 3.10.1 (trac ticket 309)
 - rebuilt ICONV support with Visual Studio 2019 compiler
 - upgraded FreeXL support to 2.0.0-RC1 with Visual Studio 2019 
compiler

   (trac ticket 353)
 - upgraded libxml2 support to 2.9.11 with Visual Studio 2019 
compiler

   (trac ticket 355)
 - rebuilt RT Topology Library support with Visual Studio 2019 
compiler
 - upgraded ReadOSM support to 1.1.0a with Visual Studio 2019 
compiler
 - upgraded SpatiaLite support to 5.0.1 with Visual Studio 2019 
compiler

   (trac ticket 278)
 - upgraded SpatiaLite-tools support to 5.0.1 with Visual 
Studio 2019 compiler

 - upgraded FITS support to 4.0.0 with Visual Studio 2019 compiler
 - rebuilt LibKML support with Visual Studio 2019 compiler
 - upgraded Freetype support to 2.11.0 with Visual Studio 2019 
compiler
 - upgraded Pixman support to 0.40.0 with Visual Studio 2019 
compiler

 - rebuilt Cairo support with Visual Studio 2019 compiler
 - upgraded Boost support to 1.77.0 with Visual Studio 2019 
compiler
 - upgraded Poppler support to 21.11.0 with Visual Studio 2019 
compiler

   (trac ticket 138)
 - added KEA 1.4.14 support with Visual Studio 2019 compiler
   (trac ticket 266)
 - added INTERLIS vector format support with Visual Studio 2019 
compiler
 - upgraded GIFLIB support to 5.2.1 with Visual Studio 2019 
compiler
 - upgraded HarfBuzz support to 3.1.2 with Visual Studio 2019 
compiler

   (trac ticket 356)
 - upgraded FriBidi support to 1.0.11 (trac ticket 357)
 - upgraded PCRE support to 8.45 with Visual Studio 2019 compiler
 - rebuilt libfcgi with Visual Studio 2019 compiler
 - rebuilt libSVG support with Visual Studio 2019 compiler
 - rebuilt libSVG-Cairo support
 - upgraded protobuf support to 3.19.1 with Visual Studio 2019 
compiler
 - upgraded protobuf-c support to 1.4.0 with Visual Studio 2019 
compiler

 - added MS4W version output to GDAL utilities "--version" command
 - upgraded Lua support to 5.4.3 with Visual Studio 2019 compiler
 - updated cURL certificates bundle
 - rebuilt mod_fcgid with Visual Studio 2019 compiler
 - rebuilt Apache H264 Streaming Module
 - upgraded BerkeleyDB support to 18.1.40 with Visual Studio 2019
   compiler
 - upgraded bzip2 support to 1.0.8 with Visual Studio 2019 compiler
 - upgraded APCu to 5.1.21 (for PHP)
 - upgraded dbase to 7.1.1 (for PHP)
 - upgraded to Oracle SDK 21.3.0.0.0
 - updated the VC Redistributable in /tmp
 - added LICENSE_PROJ.txt
 - minor update to TinyOWS demo data scripts
 - added PDF (Poppler) utilities into /tools
 - upgraded PHP_OGR extension for PHP8 and GDAL3 support to
   1.6.0 with Visual Studio 2019 compiler
 - added libdeflate 1.8 support and utilities with Visual Studio
   2019 compiler (trac ticket 292)
 - added WebP 1.2.1 support and utilities with Visual Studio
   2019 compiler (trac ticket 359)
 - added geosop commandline utility for GEOS with Visual Studio
   2019 compiler
 - enabled regex support for SQLite through the PCRE library
   with Visual Studio 2019 compiler
 - upgraded to TinyOWS git-main-2021-11-17
 - upgraded Python to 3.10.1 (trac ticket 331)
 - set PYTHONUTF8 environment variable (trac ticket 322)
 - configure use of GDAL Python utility scripts eg. setenv.bat 
| gdal2tiles -h

 - configure use of Python MapScript
 - added Python MapScript test script:
   /ms4w/msplugins/mapscript/python/quickmap.py
 - upgraded mod_wsgi to 4.9.0
 - added mod_wsgi test script:
   /ms4w/msplugins/mapscript/python/test-wsgi-mapscript.py
 - upgraded to pycsw-3.0.dev0
 - upgraded osm2pgsql commandline utility to git-master-2021-12-09
   with Visual Studio 2019 compiler
 - moved osm2pgsql styles into /ms4w/share/
 - added OGCAPI template files into /ms4w/share/


Finally, wishing you and the whole MapServer community a safe and 
healthy Christmas holiday.


Thank-you for using MS4W.
"MS4W: open doors as well as windows"

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




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


Re: [mapserver-users] How to Turn off a Layer when other specific Layer is ON in a map file ?

2021-11-24 Thread Jeff McKenna
Ah!  Boy this was tricky to get working.  In my tests, it is the logical 
operators AND and OR that are not working, with MapServer 8.0-dev (I 
tested mode=map, map2img/shp2img, WMS GetMap, and PHP MapScript).  But 
the great news is that something like the following works well, in all 
modes :


 LAYER
   ..
   REQUIRES "![yourlayername]"
 END


   not working: REQUIRES "![yourlayername] OR ![someotherlayername]"

I'll add these notes to the docs today...   Thanks for the nudge on this 
Carlos!


-jeff




On 2021-11-23 6:07 p.m., Jeff McKenna wrote:
Indeed I think my testing was wrong, as mode=map and layers= was 
overriding the REQUIRES parameter, as I see that in msautotest things 
are working with shp2img.  So, maybe I should not have sent these 
messages ha.


-jeff



On 2021-11-23 5:42 p.m., Rahkonen Jukka (MML) wrote:

Hi Jeff,

I know REQUIRES has worked in a positive way (show copyright when a 
layer is on) because I have used that feature but I do not admin that 
service any more and I can't check the details. Probably I used 
version 6.x then.


-Jukka Rahkonen-

-Alkuperäinen viesti-
Lähettäjä: MapServer-users  
Puolesta Jeff McKenna

Lähetetty: tiistai 23. marraskuuta 2021 23.35
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] How to Turn off a Layer when other 
specific Layer is ON in a map file ?


To give a more detailed example of what *should* work:

    LAYER
  ..
  REQUIRES "![modis] OR ![someotherlayername]"
    END

I'll continue my 8.0-dev testing...


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training 
co-founder of FOSS4G http://gatewaygeo.com/



On 2021-11-23 5:29 p.m., Jeff McKenna wrote:

Hi Carlos,

I had a great answer drafted for you, tooting my own horn on the recent
MapServer tutorial updates for MapServer 8.x, and the demo server
updates...as by chance the tutorial mentions that the parameter
"REQUIRES" at the LAYER level should do exactly what you need, super :
but sadly my tests now fail with MapServer 8.0-dev, I cannot get
REQUIRES to work, such as:

    LAYER
     ..
     REQUIRES "![modis]"
    END

   where modis is another layer name.

Since I hadn't been testing this feature, and it is only briefly
mentioned in the tutorial (and not part of the live demo), I have no way
of saying when this should have worked, for what MapServer version.  It
is part of the tutorial mapfiles, but the functionality is not working,
for my local tests.

But your question has made me see more room for improvement in the
tutorial, and its mapfiles, so your question has helped.

Sorry for my non-news, ha.

I'll do more testing on this feature and report back.

-jeff





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







--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How to Turn off a Layer when other specific Layer is ON in a map file ?

2021-11-23 Thread Jeff McKenna
Indeed I think my testing was wrong, as mode=map and layers= was 
overriding the REQUIRES parameter, as I see that in msautotest things 
are working with shp2img.  So, maybe I should not have sent these 
messages ha.


-jeff



On 2021-11-23 5:42 p.m., Rahkonen Jukka (MML) wrote:

Hi Jeff,

I know REQUIRES has worked in a positive way (show copyright when a layer is 
on) because I have used that feature but I do not admin that service any more 
and I can't check the details. Probably I used version 6.x then.

-Jukka Rahkonen-

-Alkuperäinen viesti-
Lähettäjä: MapServer-users  Puolesta 
Jeff McKenna
Lähetetty: tiistai 23. marraskuuta 2021 23.35
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] How to Turn off a Layer when other specific Layer 
is ON in a map file ?

To give a more detailed example of what *should* work:

LAYER
  ..
  REQUIRES "![modis] OR ![someotherlayername]"
END

I'll continue my 8.0-dev testing...


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of 
FOSS4G http://gatewaygeo.com/


On 2021-11-23 5:29 p.m., Jeff McKenna wrote:

Hi Carlos,

I had a great answer drafted for you, tooting my own horn on the recent
MapServer tutorial updates for MapServer 8.x, and the demo server
updates...as by chance the tutorial mentions that the parameter
"REQUIRES" at the LAYER level should do exactly what you need, super :
but sadly my tests now fail with MapServer 8.0-dev, I cannot get
REQUIRES to work, such as:

    LAYER
     ..
     REQUIRES "![modis]"
    END

   where modis is another layer name.

Since I hadn't been testing this feature, and it is only briefly
mentioned in the tutorial (and not part of the live demo), I have no way
of saying when this should have worked, for what MapServer version.  It
is part of the tutorial mapfiles, but the functionality is not working,
for my local tests.

But your question has made me see more room for improvement in the
tutorial, and its mapfiles, so your question has helped.

Sorry for my non-news, ha.

I'll do more testing on this feature and report back.

-jeff





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




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How to Turn off a Layer when other specific Layer is ON in a map file ?

2021-11-23 Thread Jeff McKenna

Thanks Jukka, was that in CGI, or WMS modes?

Maybe I am testing wrong, ha.

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2021-11-23 5:42 p.m., Rahkonen Jukka (MML) wrote:

Hi Jeff,

I know REQUIRES has worked in a positive way (show copyright when a layer is 
on) because I have used that feature but I do not admin that service any more 
and I can't check the details. Probably I used version 6.x then.

-Jukka Rahkonen-

-Alkuperäinen viesti-
Lähettäjä: MapServer-users  Puolesta 
Jeff McKenna
Lähetetty: tiistai 23. marraskuuta 2021 23.35
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] How to Turn off a Layer when other specific Layer 
is ON in a map file ?

To give a more detailed example of what *should* work:

LAYER
  ..
  REQUIRES "![modis] OR ![someotherlayername]"
END

I'll continue my 8.0-dev testing...


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of 
FOSS4G http://gatewaygeo.com/


On 2021-11-23 5:29 p.m., Jeff McKenna wrote:

Hi Carlos,

I had a great answer drafted for you, tooting my own horn on the recent
MapServer tutorial updates for MapServer 8.x, and the demo server
updates...as by chance the tutorial mentions that the parameter
"REQUIRES" at the LAYER level should do exactly what you need, super :
but sadly my tests now fail with MapServer 8.0-dev, I cannot get
REQUIRES to work, such as:

    LAYER
     ..
     REQUIRES "![modis]"
    END

   where modis is another layer name.

Since I hadn't been testing this feature, and it is only briefly
mentioned in the tutorial (and not part of the live demo), I have no way
of saying when this should have worked, for what MapServer version.  It
is part of the tutorial mapfiles, but the functionality is not working,
for my local tests.

But your question has made me see more room for improvement in the
tutorial, and its mapfiles, so your question has helped.

Sorry for my non-news, ha.

I'll do more testing on this feature and report back.

-jeff





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



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


Re: [mapserver-users] How to Turn off a Layer when other specific Layer is ON in a map file ?

2021-11-23 Thread Jeff McKenna

To give a more detailed example of what *should* work:

  LAYER
..
REQUIRES "![modis] OR ![someotherlayername]"
  END

I'll continue my 8.0-dev testing...


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2021-11-23 5:29 p.m., Jeff McKenna wrote:

Hi Carlos,

I had a great answer drafted for you, tooting my own horn on the recent 
MapServer tutorial updates for MapServer 8.x, and the demo server 
updates...as by chance the tutorial mentions that the parameter 
"REQUIRES" at the LAYER level should do exactly what you need, super : 
but sadly my tests now fail with MapServer 8.0-dev, I cannot get 
REQUIRES to work, such as:


   LAYER
    ..
    REQUIRES "![modis]"
   END

  where modis is another layer name.

Since I hadn't been testing this feature, and it is only briefly 
mentioned in the tutorial (and not part of the live demo), I have no way 
of saying when this should have worked, for what MapServer version.  It 
is part of the tutorial mapfiles, but the functionality is not working, 
for my local tests.


But your question has made me see more room for improvement in the 
tutorial, and its mapfiles, so your question has helped.


Sorry for my non-news, ha.

I'll do more testing on this feature and report back.

-jeff





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


Re: [mapserver-users] How to Turn off a Layer when other specific Layer is ON in a map file ?

2021-11-23 Thread Jeff McKenna

Hi Carlos,

I had a great answer drafted for you, tooting my own horn on the recent 
MapServer tutorial updates for MapServer 8.x, and the demo server 
updates...as by chance the tutorial mentions that the parameter 
"REQUIRES" at the LAYER level should do exactly what you need, super : 
but sadly my tests now fail with MapServer 8.0-dev, I cannot get 
REQUIRES to work, such as:


  LAYER
   ..
   REQUIRES "![modis]"
  END

 where modis is another layer name.

Since I hadn't been testing this feature, and it is only briefly 
mentioned in the tutorial (and not part of the live demo), I have no way 
of saying when this should have worked, for what MapServer version.  It 
is part of the tutorial mapfiles, but the functionality is not working, 
for my local tests.


But your question has made me see more room for improvement in the 
tutorial, and its mapfiles, so your question has helped.


Sorry for my non-news, ha.

I'll do more testing on this feature and report back.

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-11-23 3:45 p.m., Carlos Neves (LREC) wrote:

Hi List,

It seems to be simple, but I can't find a way. How to turn off a Layer 
in MAPSERVER when a specific Layer is ON in a MAP file?


Any Help would be appreciated.

Best Regards

Carlos


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



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


[mapserver-users] searching the list archives

2021-11-02 Thread Jeff McKenna

Hi all,

As most of you know, Nabble.com has been unreliable, so here are some 
updated ways to search the MapServer list archives:


- mapserver-users: 
https://www.mail-archive.com/mapserver-users@lists.osgeo.org/


(or https://marc.info/?l=mapserver-users )

- mapserver-dev: https://marc.info/?l=mapserver-dev

(I've begun the process to enable mail-archive.com for the dev list: 
https://www.mail-archive.com/mapserver-dev@lists.osgeo.org/



-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/







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


Re: [mapserver-users] Getting started with mapcache for WMTS...

2021-10-26 Thread Jeff McKenna

Hi Carl,

I forgot to mention that to keep an eye on the MS4W wiki also, that 
users sometimes post tips etc.  In this case I remember a user asking 
how to configure MS4W + MapCache + WMTS + OpenLayers, so I created the 
wiki page at https://ms4w.com/trac/wiki/MapCacheOpenLayers 
(edits/updates welcomed, as it is indeed a 'wiki' and depends on your 
updates as new software versions etc often change those steps)


As you travel down this page you could also create a wiki page and share 
your tips (or pitfalls) for other users: 
https://ms4w.com/trac#AdditionalNotesTips


Have a nice week,

-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-10-25 10:59 p.m., Jeff McKenna wrote:

Hi Carl,

You can also find those same local MapCache configuration steps for MS4W 
online at https://ms4w.com/README_INSTALL.html#mapcache-apache-module 
(but I'm very glad to see you following the steps in your local README, 
great!)  Thanks again for the positive feedback for MS4W.


PS.  someone asked recently the same question about the mailing list 
search, here was my response:



I just use Google search to query the archives:
   - goto https://google.ca
   - in the search box enter: 
site:lists.osgeo.org/pipermail/mapserver-users/ yoursearchterm


This may not always contain the latest archives (depending on the speed 
of Google-mothership bots), but I find it very helpful.





--

Thank-you for using MS4W.
"MS4W: open doors as well as windows"


-jeff





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


Re: [mapserver-users] Mapserver + WMS

2021-10-11 Thread Jeff McKenna

Hi Carl,

Also, as you travel down this path, please aim to adding your upcoming 
elevation WMS service into the MapServer Site Gallery : 
https://github.com/MapServer/MapServer/wiki/MapServer-Site-Gallery


This really helps new users see the powers of MapServer.

Thanks!

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2021-10-11 3:35 p.m., Jeff McKenna wrote:

Hi Carl,

First, welcome to the MapServer community!

Thanks for the detailed question, and pointing to the source data, this 
always helps to give a proper answer.


You've done well and are very close.  Here are some points to consider:

- the OGC specification for serving raw raster data is actually WCS 
(which MapServer does well, see https://mapserver.org/ogc/wcs_server.html )


- but you're right that a cool trick is to use the (more) popular WMS 
specification and set an OUTPUTFORMAT in your server's mapfile, to 
generate a GeoTIFF through a WMS GetMap request.


- I see that you've already setup an OUTPUTFORMAT such as:

OUTPUTFORMAT
   NAME "GEOTIFF_16"
   DRIVER "GDAL/GTiff"
   MIMETYPE "image/tiff"
   IMAGEMODE INT16
   EXTENSION "tif"
END

- now the trick is to call that specific outputformat.  I recommend 
always testing this at the commandline first, with shp2img (which will 
be renamed to 'map2img' shortly, for the MapServer 8.0 release).  It 
takes a mapfile and generates an output (or gives exact error).


- since you are using MS4W, just open a CMD window and cd into /ms4w. 
Then execute 'setenv.bat' to set necessary paths.  Then, in that same 
windows, cd to where your mapfile is, and execute the following (notice 
the "-i" switch, which requests the named outputformat set in the 
mapfile) :


   shp2img -m local.map -o ttt16.tif -map_debug 3 -i GEOTIFF_16

- that command should return a draw speed for each layer, and generate 
your 16-bit GeoTIFF.  And look closely at that response, the first words 
will be something like:


    rendering using outputformat named GEOTIFF_16 (GDAL/GTiff)

Great! That's what we want.

- once you're satisfied, now we can turn to WMS requests.  But always 
first start with removing any "WARNING" messages in your GetCapabilities 
request, and then also verifying that the  section of that 
response includes a listed "image/tiff" format option.  (example 
GetCapabilities request) :



http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map=WMS=1.3.0=GetCapabilities 



- once you're happy with the GetCapabilities response, then you can try 
a GetMap request, that includes "=image/tiff"




http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map=WMS=1.3.0=GetMap=-90,-180,90,180=EPSG:4326=346=173=gebco==image/tiff=96_RESOLUTION=96_OPTIONS=dpi:96=TRUE 



- or you can stay right there at your commandline, and make that GetMap 
request there with the "mapserv -nh QUERY_STRING="" trick, and pipe that 
to a new image file, such as:


   mapserv -nh 
QUERY_STRING="map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map=WMS=1.3.0=GetMap=-90,-180,90,180=EPSG:4326=346=173=gebco==image/tiff=96_RESOLUTION=96_OPTIONS=dpi:96=TRUE" 
 > getmap.tif


Hope that helps.

Also thanks for the positive feedback on MS4W, its goal is to serve big 
data fast for organizations, on enterprise Windows servers, and it 
sounds like it has met your needs well.  Look for a big MS4W release 
soon ;)


And a happy (Canadian) Thanksgiving holiday to you.

-jeff





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


Re: [mapserver-users] Mapserver + WMS

2021-10-11 Thread Jeff McKenna

Hi Carl,

First, welcome to the MapServer community!

Thanks for the detailed question, and pointing to the source data, this 
always helps to give a proper answer.


You've done well and are very close.  Here are some points to consider:

- the OGC specification for serving raw raster data is actually WCS 
(which MapServer does well, see https://mapserver.org/ogc/wcs_server.html )


- but you're right that a cool trick is to use the (more) popular WMS 
specification and set an OUTPUTFORMAT in your server's mapfile, to 
generate a GeoTIFF through a WMS GetMap request.


- I see that you've already setup an OUTPUTFORMAT such as:

OUTPUTFORMAT
  NAME "GEOTIFF_16"
  DRIVER "GDAL/GTiff"
  MIMETYPE "image/tiff"
  IMAGEMODE INT16
  EXTENSION "tif"
END

- now the trick is to call that specific outputformat.  I recommend 
always testing this at the commandline first, with shp2img (which will 
be renamed to 'map2img' shortly, for the MapServer 8.0 release).  It 
takes a mapfile and generates an output (or gives exact error).


- since you are using MS4W, just open a CMD window and cd into /ms4w. 
Then execute 'setenv.bat' to set necessary paths.  Then, in that same 
windows, cd to where your mapfile is, and execute the following (notice 
the "-i" switch, which requests the named outputformat set in the mapfile) :


  shp2img -m local.map -o ttt16.tif -map_debug 3 -i GEOTIFF_16

- that command should return a draw speed for each layer, and generate 
your 16-bit GeoTIFF.  And look closely at that response, the first words 
will be something like:


   rendering using outputformat named GEOTIFF_16 (GDAL/GTiff)

Great! That's what we want.

- once you're satisfied, now we can turn to WMS requests.  But always 
first start with removing any "WARNING" messages in your GetCapabilities 
request, and then also verifying that the  section of that 
response includes a listed "image/tiff" format option.  (example 
GetCapabilities request) :



http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map=WMS=1.3.0=GetCapabilities

- once you're happy with the GetCapabilities response, then you can try 
a GetMap request, that includes "=image/tiff"




http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map=WMS=1.3.0=GetMap=-90,-180,90,180=EPSG:4326=346=173=gebco==image/tiff=96_RESOLUTION=96_OPTIONS=dpi:96=TRUE

- or you can stay right there at your commandline, and make that GetMap 
request there with the "mapserv -nh QUERY_STRING="" trick, and pipe that 
to a new image file, such as:


  mapserv -nh 
QUERY_STRING="map=/ms4w/apps/ticket-wms-gebco-outputformat/local.map=WMS=1.3.0=GetMap=-90,-180,90,180=EPSG:4326=346=173=gebco==image/tiff=96_RESOLUTION=96_OPTIONS=dpi:96=TRUE" 
> getmap.tif


Hope that helps.

Also thanks for the positive feedback on MS4W, its goal is to serve big 
data fast for organizations, on enterprise Windows servers, and it 
sounds like it has met your needs well.  Look for a big MS4W release soon ;)


And a happy (Canadian) Thanksgiving holiday to you.

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-10-07 8:12 p.m., Carl Godkin wrote:

Hi,

I'm new to mapserver but fairly experienced with GDAL.  I hope that 
someone can explain where I've gone wrong with setting up WMS.


I followed the instructions here 
[https://worldwind.earth/elevation-server.html 
<https://worldwind.earth/elevation-server.html>] almost exactly to set 
up a WMS server and it sort of works.  (I am using MS4W actually, so I 
didn't install Apache & Mapserver as that page described and of course I 
made a few other adaptations for Windows.)


I downloaded the GEBCO tiles from here 
[https://www.gebco.net/data_and_products/gridded_bathymetry_data/ 
<https://www.gebco.net/data_and_products/gridded_bathymetry_data/>] 
without any problems.


What I don't understand is that while the GEBCO GeoTIFF files that I am 
using have one band that gdalinfo describes as


  Band 1 Block=512x512 Type=Int16, ColorInterp=Gray

when I look at the WMS bands using gdalinfo, I see three byte-sized bands:

Band 1 Block=1024x1024 Type=Byte, ColorInterp=Red
Band 2 Block=1024x1024 Type=Byte, ColorInterp=Green
Band 3 Block=1024x1024 Type=Byte, ColorInterp=Blue

I'd really like to get 16-bit integer elevations from my WMS server but 
I don't know why this didn't just happen or how I mis-configured things 
to make it not happen.


I know these are not complete details, but rather than write a novel for 
my first post here, I'm hoping someone can suggest where the problem 
might be or suggest some further documentation to read.


Thanks very much,
carl




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


[mapserver-users] updated 8.0 release plan

2021-08-27 Thread Jeff McKenna

Hi all!

The MapServer project steering committee met yesterday online, to mainly 
discuss the upcoming 8.0 release.  Here is a summary of the updated plans:


8.0 plan:

 * Feature freeze: Fri. September 17, 2021
 * 8.0-beta: Fri. September 24, 2021
 * 8.0-rc1: Fri. October 1, 2021
 * 8.0 (final): Fri. October 8, 2021

Of course the wiki has a detailed list of the major items for 8.0 : 
https://github.com/mapserver/mapserver/wiki/MapServer-8.0-Release-Plan


Or you can also follow the exact tickets through the 8.0 milestone on 
GitHub: https://github.com/MapServer/MapServer/milestone/54


Please join in and help with the 8.0 release by however you can 
(testing, feedback/ideas, coding, documentation).  If you notice a 
ticket that you want included please give it a polite 'nudge' or 'bump' 
on GitHub, we want to hear from you, your feedback is important.  And 
remember to always include a short test case (data, mapfile, 
commands.txt) for your ticket report - this saves everyone time & 
energy.  Thanks!


-jeff /MapServer PSC


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/







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


Re: [mapserver-users] Asking help

2021-08-24 Thread Jeff McKenna

Hello Boubacar,

If you are using MS4W (https://ms4w.com) you already magically have PHP 
MapScript and Python MapScript installed locally: you can follow these 
instructions for each:


 - PHP MapScript https://ms4w.com/README_INSTALL.html#php
 - Python MapScript https://ms4w.com/README_INSTALL.html#python

 (Java & Csharp MapScript are also installed, and described in that 
same document)



Thank-you for using MS4W.
"MS4W: open doors as well as windows"

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2021-08-23 4:18 p.m., Boubacar Bah wrote:
Hello how are you . I need your help to install mapscript in my machine. 
I'm on window 10 and my mapserver version is 7.7 . Because l saw some 
tutorial on the but l didn't install it

. If someone can help me to install the mapscript .
Thanks



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


Re: [mapserver-users] mapserver-users Digest, Vol 163, Issue 11

2021-08-18 Thread Jeff McKenna

Hi Boubacar,

Please make sure that your "MAP=" path is correct (you have spelled 
"htdocs" incorrectly).


Also note that MS4W is designed so that all of your mapfiles & 
applications should live in the /ms4w/apps/ folder (but your htdocs use 
is fine if you wish).



Thank-you for using MS4W.
"MS4W: open doors as well as windows"



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-08-18 12:30 p.m., Boubacar Bah wrote:

hello jeff mkenna
I solved the first problem thanks to your solution but it sends another 
error :*msLoadMap(): Unable to access file. 
(C:\ms4w\Apache\hdocs\routes.map). *and yet the mapfile does exist in 
the location I gave to the map parameter.

can you help to solve this problem?
*
*

Le mer. 18 août 2021 à 15:53, <mailto:mapserver-users-requ...@lists.osgeo.org>> a écrit :


Send mapserver-users mailing list submissions to
mapserver-users@lists.osgeo.org <mailto:mapserver-users@lists.osgeo.org>

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.osgeo.org/mailman/listinfo/mapserver-users
<https://lists.osgeo.org/mailman/listinfo/mapserver-users>
or, via email, send a message with subject or body 'help' to
mapserver-users-requ...@lists.osgeo.org
<mailto:mapserver-users-requ...@lists.osgeo.org>

You can reach the person managing the list at
mapserver-users-ow...@lists.osgeo.org
<mailto:mapserver-users-ow...@lists.osgeo.org>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mapserver-users digest..."


Today's Topics:

    1. MAP Query Parameter (Patrick Young)
    2. asking help (Boubacar Bah)
    3. Re: MAP Query Parameter (J?rg Thomsen (WhereGroup))
    4. Re: asking help (J?rg Thomsen (WhereGroup))
    5. asking help (Boubacar Bah)
    6. Re: asking help (J?rg Thomsen (WhereGroup))
    7. Re: asking help (Jeff McKenna)
    8. Asking help (Boubacar Bah)


--

Message: 1
Date: Tue, 17 Aug 2021 16:37:30 -0600
From: Patrick Young mailto:patrick.mckendree.yo...@gmail.com>>
To: mapserver-users@lists.osgeo.org
<mailto:mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] MAP Query Parameter
Message-ID:


<mailto:jvegbehwknyh88r8doxxpcgpx%2bg1d9gmmuuba...@mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"

Hello!

I've been working through the mapserver tutorial where my setup is
fastcgi
using nginx + supervisor running the mapserv process, and the two are
talking via a unix socket.

I had been banging my head on a 502 error but finally figured it out
when I
set the map= query parameter to the full, absolute path of the mapfile I
was trying to use.

In the docs (https://mapserver.org/cgi/controls.html
<https://mapserver.org/cgi/controls.html>) it mentions

 > MAP [filename] Path, relative to the CGI directory, of the map
file to be
used.

I am curious though, what is the "CGI directory" when you're running
under
fastcgi?

Thanks!
Patrick
-- next part --
An HTML attachment was scrubbed...
URL:

<http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210817/49b4ff99/attachment-0001.html

<http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210817/49b4ff99/attachment-0001.html>>

--

Message: 2
Date: Wed, 18 Aug 2021 01:12:44 +0100
From: Boubacar Bah mailto:bahbouba@gmail.com>>
To: mapserver-users@lists.osgeo.org
<mailto:mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] asking help
Message-ID:


<mailto:zsjgf7x_...@mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"

hello how are you, l try to launch an url about mapfile in mapserver
but he
send an error:  mapserv(): Web application error. Traditional BROWSE
mode
requires a TEMPLATE in the WEB section, but none was provided.
some one can help to resolve this issue
-- next part --
An HTML attachment was scrubbed...
URL:

<http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210818/d2a47321/attachment-0001.html

<http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210818/d2a47321/attachment-0001.html>>

--

Message: 3
Date: Wed, 18 Aug 2021 09:01:25 +0200
From: J?rg Thomsen (WhereGroup)  mailto:joerg.thom...@wheregroup.com>>
To: mapserver-users@lists.osgeo.org
<mailto:mapserver-users@lists.osgeo.org>

Re: [mapserver-users] asking help

2021-08-18 Thread Jeff McKenna

Hi Boubacar,

Since you are using MS4W, here are some related points for you:

- you are missing the "MAP=" part of your request, such as:


https://ms4w.dev/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/local.map=map=all

- on your MS4W home page (http://127.0.0.1) you can see a link to "open 
map viewer in new window" (which uses the OpenLayers template) such as:



https://ms4w.dev/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/local.map=browse=openlayers=all

You can modify that url for your local mapfile, such as:


http://127.0.0.1/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/local.map=browse=openlayers=all

Make sure that your "MAP=" path to your local mapfile is correct.


Thank-you for using MS4W.
"MS4W: open doors as well as windows"



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-08-18 6:59 a.m., Boubacar Bah wrote:

  hello how are you ; i'm using windows, and i'm using openlayer
and l use this url: 
http:\\localhost\cgi-bin\mapserv.exe?\C:\ms4w\Apache\hdocs\exe.map=quinzefevrier=map

this is my web section in my mapfile:

WEB
 IMAGEPATH  "/ms4w/tmp/ms_tmp/"
 IMAGEURL  "/ms_tmp/"
 END  # WEB





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


Re: [mapserver-users] Error MsDrawMap Image handling error when using PNG

2021-08-17 Thread Jeff McKenna

Hi Gerhard,

It seems to be a problem with the LIBPNG library on your server.  Is 
"PNG" listed in the response from the command "gdalinfo --formats" ?


I might also:

- recompile ZLIB

- recompile LIBPNG

(executing 'sudo ldconfig' after each)

- recompile GDAL (point to your external LIBPNG)

- test with 'gdalinfo --formats'

- recompile MapServer

- test your mapfile with a 'shp2img' command


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-08-12 7:15 a.m., Gerhard Völkl wrote:

Hello,

when using a png image as symbol I got the error

Image handling error

When using a gif image all is fine.
But I can’t change all 1000 Images to gif.

What can I do? Whatˋs wrong?

Here an example Output:

/usr/lib/cgi-bin/mapserv 
QUERY_STRING="map=/data/ows/maps/test.map=WMS=1.3.0=GetMap=725521.7,5433653.4,726708.5,5434495.5=EPSG:25832=1048=317=test==image/png=96_RESOLUTION=96_OPTIONS=dpi:96=TRUE"


libpng error: bad parameters to zlib

Content-Type: text/xml; charset=UTF-8



xmlns="http://www.opengis.net/ogc; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://www.opengis.net/ogc 
http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd;>




msDrawMap(): Image handling error. Failed to draw layer named 
test-layer.






GDAL: In GDALDestroy - unloading GDAL shared library.


Thanks

Best regards Gerhard

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



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


[mapserver-users] PSC meeting minutes available

2021-07-30 Thread Jeff McKenna
Hi all,

Yesterday's minutes of the MapServer Project Steering Committee (PSC) meeting 
are posted at: 
https://github.com/mapserver/mapserver/wiki/PSC-Meeting-2021-07-29

(some might prefer instead to read the logs: 
https://gatewaygeomatics.com/irc-mapserver/2021-07-29.html )



-jeff


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/










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


[mapserver-users] Please add your site (or OGC services) to the MapServer Gallery

2021-07-27 Thread Jeff McKenna
Hi everyone!

A few years ago a new MapServer user reminded us that we need working examples
of applications (and MapServer-driven WMS/WFS/OWS services) listed on
our map gallery.  Please take a minute to add your site and specs
(respecting the syntax and alphabetical order) at:
https://github.com/mapserver/mapserver/wiki/MapServer-Site-Gallery

It has become a great resource!  Please take a moment to make sure that your 
MapServer-driven site or OGC services are listed there, especially as we are 
getting closer to the big MapServer 8.0 release.  So help show off the powers 
of MapServer!!

Thank you everyone :)

-jeff


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/





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


[mapserver-users] Next MapServer project steering committe meeting: Thursday 13:00UTC

2021-07-27 Thread Jeff McKenna
Hi everyone!

This is not usual, but here it goes...

We all know that MapServer has a vibrant user community (and sometimes 
development is not as visible or discussed as in other projects), so 
(unofficially) I'd like to mention here that the MapServer Project Steering 
Committee ("PSC", that means the 10+ individuals who help make decisions 
regarding the management of MapServer releases and code changes) will be 
meeting this coming Thursday on IRC chat.  You are also encouraged to join the 
meeting (there is an agenda item near the end called "community feedback", 
where you can give input on what's important or missing in the upcoming 8.0 
release, etc).   Join and share!  That's what FOSS is all about.   Thanks!

- time:
- 13:00 UTC (8am Minny, 3pm Paris) 
https://www.timeanddate.com/worldclock/fixedtime.html?year=2021=07=29=13=0=0=MapServer+PSC+Meeting
- agenda: https://github.com/MapServer/MapServer/wiki/PSC-Meeting-2021-07-29
- location: the meeting will be held in the #mapserver channel at 
https://web.libera.chat/#mapserver


-jeff


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/








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


[mapserver-users] 7.6.4 released

2021-07-12 Thread Jeff McKenna
The MapServer team is pleased to announce the maintenance release of 
MapServer 7.6.4


For the list of changes see the Changelog at 
https://mapserver.org/development/changelog/changelog-7-6.html


Or head to Download at https://mapserver.org/download.html

For those wanting searchable offline documentation (with click-able 
index of terms at end), the updated PDF is now available at 
https://download.osgeo.org/mapserver/docs/MapServer.pdf


Fun fact: today's 7.6.4 release is exactly 10 years to the day since the 
MapServer 6.0.1 release :)


Happy (fast) mapserving...


--
The MapServer Team





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


Re: [mapserver-users] GetFetureInfo with rotated grid

2021-07-09 Thread Jeff McKenna

Hi LP,

Can you also confirm through a shp2img command, that you generate a 
valid map image, in your output EPSG:4326 projection, such as:


  shp2img -m test.map -o ttt.png -map_debug 3

(also, please add "STATUS ON" to your layer)

I would always start with a shp2img command, make sure that MapServer 
(and GDAL+PROJ in this case) can access your data, reproject it, and 
return a nice valid image.  Then, after that works, move onto the fun of 
WMS and OGC service testing.



-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-07-09 12:13 p.m., Rousseau Lambert,Louis-Philippe (ECCC) wrote:

Hi all,

I have an issue with WMS GetFeatureInfo request on a rotated GRIB2 file. 
When I try to do a GetFeatureInfo request on a valid location on my map, 
I get: “Search returned no results”. I tried the GetFeatureInfo request, 
using mapscript and the mapserv command, both give me the “Search 
returned no results”.


The file projection is “+proj=ob_tran +o_proj=longlat +o_lon_p=0 
+o_lat_p=31.758312 +lon_0=-92.402969 +R=6371229 +no_defs”


I’m using MapServer version 7.6.2, GDAL 3.1.3 (released 2020/09/01) and 
proj 7.2.0.


But If I try to get the value with gdallocationinfo using the –wsg84 
flag, I get a valid result, so I guess this issue is not with gdal ?:


```

gdallocationinfo -wgs84 rotated.grib2 -75 45

Report:

   Location: (578P,373L)

   Band 1:

     Value: 3.1022446478346e-07

```

I can get a GetFeatureInfo request to work, but I have to define a 
custom EPSG code (for example: EPSG:102987), add this EPSG code (102987) 
to my epsg file and reference it in my mapfile. This way, the 
GetFeatureInfo only works if requested in this custom EPSG using the 
rotated grid BBOX, if I do the request in another CRS, it still return 
no results:


```

mapserv -nh "QUERY_STRING=map= 
test.map=WMS=1.3.0=GetFeatureInfo=0,0,1,1=EPSG:102987=1000=1000=TEST_FORMAT=text/plain_LAYERS=TEST=5=5=image/png"


```

Here is a GetFeatureInfo request that returns no results using EPSG:4326:

```

mapserv -nh 
"QUERY_STRING=map=test.map=WMS=1.3.0=GetFeatureInfo=45,-74,46,-73=EPSG:4326=1000=1000=TEST_FORMAT=text/plain_LAYERS=TEST=5=5"


```

I have included a small mapfile that shows the previous behavior, you 
can use this curl command to download a sample GRIB2 data:


```

curl -o rotated.grib2 
'https://dd.weather.gc.ca/model_raqdps/10km/grib2/00/013/20210709T00Z_MSC_RAQDPS_PM2.5_EATM_RLatLon0.09x0.09_P013.grib2'


```

Do you have any ideas if I’m doing something wrong or if the issue is in 
MapServer ?


Thanks

LP


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



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


Re: [mapserver-users] OIDS in postgresql Postgis

2021-07-09 Thread Jeff McKenna

Hi Magnus,

This morning I did more testing on this, and discovered in the source 
code that MapServer still does in fact fallback to looking for an OID 
column, when no unique ID column is found (or specified in the DATA 
statement).  I've filed the ticket at 
https://github.com/MapServer/MapServer/issues/6367 (and EvenR has 
already applied a fix for this [very elegantly checking PG version 
before relying on OIDs as fallback] at 
https://github.com/MapServer/MapServer/pull/6368).  It would be great if 
you can test the fix locally and give feedback.


I've also added a note and warning about OIDs and unique IDs at 
https://mapserver.org/input/vector/postgis.html


So, now that I understand the issue, here is a very important point:

- for every PostGIS layer in my MapServer mapfile, I always specify a 
unique ID column with the "using unique" syntax, in the DATA statement
- that avoids any issue (such as your case, where you likely did not 
specify a unique ID column, and MapServer tried to guess)
- (and of course, I no longer use OIDs in my DATA statements, as these 
were removed in PostgreSQL 12.0)


Thanks again Magnus for this report, you spawned some great changes to 
both the source code and documentation!


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2021-07-08 5:54 a.m., Magnus Askaner wrote:

Support for OIDS has been dropped from Postgresql in recent versions.
After postgresql upgrade, trying to select a feature from a Postgis 
postgresql table gives an error  in postgresql logs: (sensitive info 
redacted)


2021-07-08 08:05:45.756 UTC [2270616] user_name@db ERROR:  column 
"oid" does not exist at character 70
2021-07-08 08:05:45.756 UTC [2270616] user_name@db HINT: Perhaps you 
meant to reference the column "[table_name].gid".
2021-07-08 08:05:45.756 UTC [2270616] user_name@db STATEMENT: select 
"[column_name]"::text,ST_AsBinary(ST_Force2D("the_geom"),'NDR') as 
geom,"oid"::text from [table_name] where "the_geom" && 
ST_GeomFromText('POLYGON(([]))',find_srid('','[table_name]','the_geom')) 
and ([column_name]='value')


It seems like mapserver still tries to look up oids.
 From earlier documentation I have got the impression that mapserver 
depends on oids when selecting from a postgis table.

Could this be avoided?

Calling mapserv cgi with wget gives "Missing Schema".
The connection string works.

Versions:
$ mapserv -v
MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS 
SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI 
SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS 
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


Postgreql:
version(): PostgreSQL 12.7 (Ubuntu 12.7-0ubuntu0.20.04.1) on 
x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 
9.3.0, 64-bit
POSTGIS_full_version() : POSTGIS="3.0.0 r17983" [EXTENSION] PGSQL="120" 
GEOS="3.8.0-CAPI-1.13.1 " PROJ="6.3.1" LIBXML="2.9.4" LIBJSON="0.13.1" 
LIBPROTOBUF="1.3.3" WAGYU="0.4.3 (Internal)"


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



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


Re: [mapserver-users] OIDS in postgresql Postgis

2021-07-08 Thread Jeff McKenna

Hi Magnus,

You are correct, that old (dirty) trick of using OIDs as the unique id 
column, for MapServer, is no longer possible since the PostgreSQL 12.x 
release.  (using that trick is party my fault, for promoting it, for so 
long)


So I was in the same boat as you, how to handle this with so many client 
databases with gazillions of records.  Here are some important points 
that I now follow personally:


- for tables that do not have a unique column, or "gid" etc, I generate 
a new "unique_id" column, such as:


  ALTER TABLE mytable ADD COLUMN unique_id SERIAL PRIMARY KEY;

- then I change in the mapfile PostGIS layer:

  DATA "geom FROM mydata USING UNIQUE unique_id USING SRID=3857"

- I was also concerned about what happens when restoring a dump (that 
contains OIDs, from an old version) into a PostgreSQL >=12, but I've 
done that so many times now that I can confidently tell you that there 
is one single warning displayed during the restore, and then the 
database is restored properly into PostgreSQL (without OIDs).  I do this 
on production databases, it works well.


Hope that helps a little.

-jeff




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-07-08 5:54 a.m., Magnus Askaner wrote:

Support for OIDS has been dropped from Postgresql in recent versions.
After postgresql upgrade, trying to select a feature from a Postgis 
postgresql table gives an error  in postgresql logs: (sensitive info 
redacted)


2021-07-08 08:05:45.756 UTC [2270616] user_name@db ERROR:  column 
"oid" does not exist at character 70
2021-07-08 08:05:45.756 UTC [2270616] user_name@db HINT: Perhaps you 
meant to reference the column "[table_name].gid".
2021-07-08 08:05:45.756 UTC [2270616] user_name@db STATEMENT: select 
"[column_name]"::text,ST_AsBinary(ST_Force2D("the_geom"),'NDR') as 
geom,"oid"::text from [table_name] where "the_geom" && 
ST_GeomFromText('POLYGON(([]))',find_srid('','[table_name]','the_geom')) 
and ([column_name]='value')


It seems like mapserver still tries to look up oids.
 From earlier documentation I have got the impression that mapserver 
depends on oids when selecting from a postgis table.

Could this be avoided?

Calling mapserv cgi with wget gives "Missing Schema".
The connection string works.

Versions:
$ mapserv -v
MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS 
SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI 
SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS 
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


Postgreql:
version(): PostgreSQL 12.7 (Ubuntu 12.7-0ubuntu0.20.04.1) on 
x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 
9.3.0, 64-bit
POSTGIS_full_version() : POSTGIS="3.0.0 r17983" [EXTENSION] PGSQL="120" 
GEOS="3.8.0-CAPI-1.13.1 " PROJ="6.3.1" LIBXML="2.9.4" LIBJSON="0.13.1" 
LIBPROTOBUF="1.3.3" WAGYU="0.4.3 (Internal)"



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


Re: [mapserver-users] ask help

2021-07-04 Thread Jeff McKenna

Hi Boubacar,

I'm not sure of books, but if you are on Windows you can install MS4W 
(https://ms4w.com) that now contains >80 working mapfiles + data, and 
then you can follow along the tutorial (which was recently updated) at : 
https://mapserver.org/tutorial/  The data & all mapfiles for the 
tutorial can be downloaded at 
https://download.osgeo.org/mapserver/docs/mapserver-tutorial.zip (it 
includes road highway shields, working WMS services, and lots of goodies 
to see locally in action).


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-07-03 12:07 p.m., Boubacar Bah wrote:
hello how are you ? I want to know if someone have a support or tutoriel 
for the beginner mapserver users like me and l look for an book about 
webmapping specficcaly :



  Géomatique webmapping en open source

Architectures web avec PostGIS, OpenLayers et MapServer

David Collado 
<https://www.eyrolles.com/Accueil/Auteur/david-collado-147950/>


attending your response .






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


Re: [mapserver-users] connect label to features

2021-06-25 Thread Jeff McKenna

Hi Luca,

The implemented leader label logic does not turn on leader lines for 
every point or feature.  (I believe this is what is causing the 
confusion, as reported by you and Bob)   I personally could see a new 
parameter in the LEADER object of "FORCE TRUE" being very useful, but 
that would take a champion to file a new ticket 
(https://github.com/MapServer/MapServer/issues), create a small test 
case (use yours, but also include the symbolset and fonts that your 
mapfile references, so a developer can just execute shp2img 
out-of-the-box), and then nudge/test/give feedback throughout the whole 
development process.


Hope that explains more what is happening.

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-06-25 9:21 a.m., Jeff McKenna wrote:

Hi Luca,

I was able to get leader lines with your data by just commented out your 
MINDISTANCE parameter in your LABEL.  Here is the resulting map image: 
https://pasteboard.co/K8eUIip.png


Hope that helps.

(please also never attach zip, images, or files, on a mailing list, 
instead just upload your zip or image somewhere, and point to it here 
instead)


Have a nice weekend,

-jeff




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


Re: [mapserver-users] connect label to features

2021-06-25 Thread Jeff McKenna

Hi Luca,

I was able to get leader lines with your data by just commented out your 
MINDISTANCE parameter in your LABEL.  Here is the resulting map image: 
https://pasteboard.co/K8eUIip.png


Hope that helps.

(please also never attach zip, images, or files, on a mailing list, 
instead just upload your zip or image somewhere, and point to it here 
instead)


Have a nice weekend,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-06-24 6:57 p.m., Luca Delucchi wrote:

Hi Jeff,

On Thu, 24 Jun 2021 at 21:37, Jeff McKenna
 wrote:


Luca, I've done more testing and in fact I can get point & line features
(with label leader lines)  to work with that mapfile.  I can now see
Thomas' point, that this is a documentation issue (likely when I
originally documented this I could only get it to work with polygons,
but now when I test I can get points,lines,polygons to work by adapting
that same mapfile).



Thanks a lot, I tried again changing some parameters but I didn't get
any leader lines.
I'm using mapserver 7.6.2 provided by Debian


I'll fix that document now.

If you post your mapfile and data I can test your data locally here.



here you are an example not working for me, with my output png


-jeff






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


Re: [mapserver-users] connect label to features

2021-06-24 Thread Jeff McKenna
Luca, I've done more testing and in fact I can get point & line features 
(with label leader lines)  to work with that mapfile.  I can now see 
Thomas' point, that this is a documentation issue (likely when I 
originally documented this I could only get it to work with polygons, 
but now when I test I can get points,lines,polygons to work by adapting 
that same mapfile).


I'll fix that document now.

If you post your mapfile and data I can test your data locally here.

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2021-06-24 3:12 p.m., Jeff McKenna wrote:

Hi Luca,

I agree with your thoughts that it would be nice if it worked with 
points as well.  (I don't believe that I ever had it working locally 
with anything but polygons)  Please definitely file a ticket.  Thanks!


-jeff



On 2021-06-24 2:29 p.m., Luca Delucchi wrote:

On Thu, 24 Jun 2021 at 19:08, Jeff McKenna
 wrote:


Hi Luca,



Hi Jeff,


I had created that page that Thomas pointed to, I see that my test files
are still available that I used to generate those map images
(https://download.osgeo.org/mapserver/tickets/label-leader.zip).  Give
that mapfile a try with your local MapServer instance, and let me know
if I need to update that test package.


I tested that data and it work properly, but as Thomas reported it
seems to work only with polygon, with my point data it doesn't work
Should I open a enhancement (or bug) issue? I think it should be
useful to have it at least for points, but also for line



-jeff


Thanks for your help






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


Re: [mapserver-users] connect label to features

2021-06-24 Thread Jeff McKenna

Hi Luca,

I agree with your thoughts that it would be nice if it worked with 
points as well.  (I don't believe that I ever had it working locally 
with anything but polygons)  Please definitely file a ticket.  Thanks!


-jeff



On 2021-06-24 2:29 p.m., Luca Delucchi wrote:

On Thu, 24 Jun 2021 at 19:08, Jeff McKenna
 wrote:


Hi Luca,



Hi Jeff,


I had created that page that Thomas pointed to, I see that my test files
are still available that I used to generate those map images
(https://download.osgeo.org/mapserver/tickets/label-leader.zip).  Give
that mapfile a try with your local MapServer instance, and let me know
if I need to update that test package.


I tested that data and it work properly, but as Thomas reported it
seems to work only with polygon, with my point data it doesn't work
Should I open a enhancement (or bug) issue? I think it should be
useful to have it at least for points, but also for line



-jeff


Thanks for your help




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] connect label to features

2021-06-24 Thread Jeff McKenna

Hi Luca,

I had created that page that Thomas pointed to, I see that my test files 
are still available that I used to generate those map images 
(https://download.osgeo.org/mapserver/tickets/label-leader.zip).  Give 
that mapfile a try with your local MapServer instance, and let me know 
if I need to update that test package.


(I think that I should start doing this for all documented features from 
now on, include a link to my test mapfiles)


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2021-06-24 2:00 p.m., thomas bonfort wrote:

https://mapserver.org/mapfile/leader.html
I'm not sure why it's limited to polygons though...

On Thu, Jun 24, 2021 at 6:58 PM Luca Delucchi  wrote:


Hi all,

I would like to know if it is possible to link a feature with its
label, something like QGIS is doing in Labels -> Callouts.

thanks a lot

--
ciao
Luca

www.lucadelu.org

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


  1   2   3   4   5   6   7   8   9   10   >