[mapserver-users] Securing MapServer Deployments

2022-04-01 Thread Seth G
Hi all,

I've written a blog post on Securing MapServer Deployments at 
https://geographika.net/posts/securing_mapserver.html which also includes 
details on the new CONFIG file available in MapServer 8.0
If anyone has any other tips or best practices around security, please send 
them on to the list,

Seth

--
web:https://geographika.net
twitter: @geographika
___
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] mapserver OGR does not forward BBOX at all

2022-04-01 Thread Rahkonen Jukka (MML)
Hi,

(Clipped out most of the thread because the max size of message body was 
exceeded).

That server does answer to GetCapabilities and DescribeFeatureType with WFS 
1.0.0 but not to GetFeature. It gives an error about wrong outputformat even 
that it not mandatory to the standard, and it does not accept GML2 even 
GetCapabilities is listing it as a supported format. So yes, the service is 
broken with WFS 1.0.0.

I suggested to try WFS connection and WFS 1.0.0 version as a comparison to OGR 
connection and WFS 1.1.0 but it is best to forget that test now. I don’t know 
what to suggest next. Myself I guess I would install Geoserver into localhost 
with the standard demo data and make a Mapserver layer from the topp:states 
feature type and see how it behaves. I do know that I have used Geoserver WFS 
as input for Mapserver WMS and it worked well but that was a long time ago and 
I believe I used the WFS connectiontype.

-Jukka Rahkonen-

Lähettäjä: Lars Fricke mailto:lars.fri...@skendata.de>>
Lähetetty: perjantai 1. huhtikuuta 2022 14.54
Vastaanottaja: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] mapserver OGR does not forward BBOX at all

Hi,
I just checked on using that server with WFS 1.0.0 but it is broken. Not even 
QGIS can open it, neither here nor in the  browser any geometry is provided.
So it looks as mapserver can not work with these?
Thanks again



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


[mapserver-users] Floating point exception

2022-04-01 Thread Luca Delucchi
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

-- 
ciao
Luca

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


Re: [mapserver-users] mapserver OGR does not forward BBOX at all

2022-04-01 Thread Lars Fricke

  
  
Hi,
  I just checked on using that server with WFS 1.0.0 but it is
  broken. Not even QGIS can open it, neither here nor in the 
  browser any geometry is provided.
  So it looks as mapserver can not work with these? 
  Thanks again


  


Am 31.03.22 um 15:40 schrieb Rahkonen
  Jukka (MML):


  
  
  
  
Hi,
 
Have you tried the connectiontype=WFS
alternative
https://mapserver.gis.umn.edu/ogc/wfs_client.html?
I am not sure what WFS versions it supports.
 
-Jukka Rahkonen-
 

  
Lähettäjä: MapServer-users
  
  Puolesta Lars Fricke
  Lähetetty: torstai 31. maaliskuuta 2022 13.59
  Vastaanottaja: mapserver-users@lists.osgeo.org
  Aihe: Re: [mapserver-users] mapserver OGR does not
  forward BBOX at all
  

 

  I looked a little deeper and this is the
output of the error log (our docker did not distinguish
between error and access log putting everything into the
terminal).

I hope, someone will notice what is going on? I think it is
strange that there are calls to "describeFeature" but no
"getFeatrue" at first. And once the "getFeature" is there it
is lacking the BBOX.

Thank you guys very much for your effort!!

"""
WFS: Could not find 
WFS: No transaction support
GDAL: GDALOpen(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f49d2c0) succeeds as WFS.
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal,boris:BR_BodenrichtwertLagetypisch,boris:BR_UmrechnungstabelleDatei,boris:BR_UmrechnungstabelleWerte,boris:BR_Verfahren)
HTTP: libcurl/7.68.0 GnuTLS/3.6.13 zlib/1.2.11 brotli/1.0.7
libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0)
libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
WFS: Turn off loading of multiple layer definitions at a
single time
WFS: 
https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal)
WFS: 
https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=1=EPSG:25832=GetFeature=boris:BR_BodenrichtwertZonal
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=1=EPSG:25832=GetFeature=boris:BR_BodenrichtwertZonal)
NAS: Prescanning /vsimem/tempwfs_0x56228f8b0420/file.gml.
OGR: XMLPlatformUtils::Initialize()
NAS: 1 remaining classes after prescan.

NAS: BR_BodenrichtwertZonal: 1 features.

GDAL: GDALOpen(/vsimem/tempwfs_0x56228f8b0420/file.gml,
this=0x56228f86b080) succeeds as NAS.
NAS: Clearing classes.
OGR: XMLPlatformUtils::Terminate()
GDAL: GDALClose(/vsimem/tempwfs_0x56228f8b0420/file.gml,
this=0x56228f86b080)
GDAL:
GDALClose(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f49d2c0)
WFS: Could not find 
WFS: No transaction support
GDAL: GDALOpen(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f452a20) succeeds as WFS.
GDAL:
GDALClose(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f452a20)
WFS: Could not find 
WFS: No transaction support
GDAL: GDALOpen(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f452a20) succeeds as WFS.
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal,boris:BR_BodenrichtwertLagetypisch,boris:BR_UmrechnungstabelleDatei,boris:BR_UmrechnungstabelleWerte,boris:BR_Verfahren)
WFS: Turn off loading of multiple layer definitions at a
single time
WFS: 
https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal)
WFS: 

Re: [mapserver-users] mapserver OGR does not forward BBOX at all

2022-04-01 Thread Lars Fricke

  
  
Hi,
  I just checked on using that server with WFS 1.0.0 but it is
  broken. Not even QGIS can open it, neither here nor in the 
  browser any geometry is provided.
  So it looks as mapserver can not work with these? 
  Thanks again


  


Am 31.03.22 um 15:40 schrieb Rahkonen
  Jukka (MML):


  
  
  
  
Hi,
 
Have you tried the connectiontype=WFS
alternative
https://mapserver.gis.umn.edu/ogc/wfs_client.html?
I am not sure what WFS versions it supports.
 
-Jukka Rahkonen-
 

  
Lähettäjä: MapServer-users
  
  Puolesta Lars Fricke
  Lähetetty: torstai 31. maaliskuuta 2022 13.59
  Vastaanottaja: mapserver-users@lists.osgeo.org
  Aihe: Re: [mapserver-users] mapserver OGR does not
  forward BBOX at all
  

 

  I looked a little deeper and this is the
output of the error log (our docker did not distinguish
between error and access log putting everything into the
terminal).

I hope, someone will notice what is going on? I think it is
strange that there are calls to "describeFeature" but no
"getFeatrue" at first. And once the "getFeature" is there it
is lacking the BBOX.

Thank you guys very much for your effort!!

"""
WFS: Could not find 
WFS: No transaction support
GDAL: GDALOpen(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f49d2c0) succeeds as WFS.
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal,boris:BR_BodenrichtwertLagetypisch,boris:BR_UmrechnungstabelleDatei,boris:BR_UmrechnungstabelleWerte,boris:BR_Verfahren)
HTTP: libcurl/7.68.0 GnuTLS/3.6.13 zlib/1.2.11 brotli/1.0.7
libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0)
libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
WFS: Turn off loading of multiple layer definitions at a
single time
WFS: 
https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal)
WFS: 
https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=1=EPSG:25832=GetFeature=boris:BR_BodenrichtwertZonal
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=1=EPSG:25832=GetFeature=boris:BR_BodenrichtwertZonal)
NAS: Prescanning /vsimem/tempwfs_0x56228f8b0420/file.gml.
OGR: XMLPlatformUtils::Initialize()
NAS: 1 remaining classes after prescan.

NAS: BR_BodenrichtwertZonal: 1 features.

GDAL: GDALOpen(/vsimem/tempwfs_0x56228f8b0420/file.gml,
this=0x56228f86b080) succeeds as NAS.
NAS: Clearing classes.
OGR: XMLPlatformUtils::Terminate()
GDAL: GDALClose(/vsimem/tempwfs_0x56228f8b0420/file.gml,
this=0x56228f86b080)
GDAL:
GDALClose(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f49d2c0)
WFS: Could not find 
WFS: No transaction support
GDAL: GDALOpen(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f452a20) succeeds as WFS.
GDAL:
GDALClose(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f452a20)
WFS: Could not find 
WFS: No transaction support
GDAL: GDALOpen(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f452a20) succeeds as WFS.
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal,boris:BR_BodenrichtwertLagetypisch,boris:BR_UmrechnungstabelleDatei,boris:BR_UmrechnungstabelleWerte,boris:BR_Verfahren)
WFS: Turn off loading of multiple layer definitions at a
single time
WFS: 
https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal)
WFS: 

Re: [mapserver-users] mapserver OGR does not forward BBOX at all

2022-04-01 Thread Lars Fricke

  
  
Hi, 
  
  Thanks for the hint. That server seems to support WFS 1.0.0 but I
  did not want to rely on such an old standard as I don't know how
  long they will keep this up. I am seeing a lot of providers around
  here that drop 1.0.0 support. If OGR does not work I guess I'll
  have to try anyhow.
  
  Lars


  


Am 31.03.22 um 15:40 schrieb Rahkonen
  Jukka (MML):


  
  
  
  
Hi,
 
Have you tried the connectiontype=WFS
alternative
https://mapserver.gis.umn.edu/ogc/wfs_client.html?
I am not sure what WFS versions it supports.
 
-Jukka Rahkonen-
 

  
Lähettäjä: MapServer-users
  
  Puolesta Lars Fricke
  Lähetetty: torstai 31. maaliskuuta 2022 13.59
  Vastaanottaja: mapserver-users@lists.osgeo.org
  Aihe: Re: [mapserver-users] mapserver OGR does not
  forward BBOX at all
  

 

  I looked a little deeper and this is the
output of the error log (our docker did not distinguish
between error and access log putting everything into the
terminal).

I hope, someone will notice what is going on? I think it is
strange that there are calls to "describeFeature" but no
"getFeatrue" at first. And once the "getFeature" is there it
is lacking the BBOX.

Thank you guys very much for your effort!!

"""
WFS: Could not find 
WFS: No transaction support
GDAL: GDALOpen(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f49d2c0) succeeds as WFS.
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal,boris:BR_BodenrichtwertLagetypisch,boris:BR_UmrechnungstabelleDatei,boris:BR_UmrechnungstabelleWerte,boris:BR_Verfahren)
HTTP: libcurl/7.68.0 GnuTLS/3.6.13 zlib/1.2.11 brotli/1.0.7
libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0)
libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
WFS: Turn off loading of multiple layer definitions at a
single time
WFS: 
https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal)
WFS: 
https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=1=EPSG:25832=GetFeature=boris:BR_BodenrichtwertZonal
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=1=EPSG:25832=GetFeature=boris:BR_BodenrichtwertZonal)
NAS: Prescanning /vsimem/tempwfs_0x56228f8b0420/file.gml.
OGR: XMLPlatformUtils::Initialize()
NAS: 1 remaining classes after prescan.

NAS: BR_BodenrichtwertZonal: 1 features.

GDAL: GDALOpen(/vsimem/tempwfs_0x56228f8b0420/file.gml,
this=0x56228f86b080) succeeds as NAS.
NAS: Clearing classes.
OGR: XMLPlatformUtils::Terminate()
GDAL: GDALClose(/vsimem/tempwfs_0x56228f8b0420/file.gml,
this=0x56228f86b080)
GDAL:
GDALClose(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f49d2c0)
WFS: Could not find 
WFS: No transaction support
GDAL: GDALOpen(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f452a20) succeeds as WFS.
GDAL:
GDALClose(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f452a20)
WFS: Could not find 
WFS: No transaction support
GDAL: GDALOpen(/var/www/html/ground_reference_values_ni.xml,
this=0x56228f452a20) succeeds as WFS.
HTTP: Fetch(https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal,boris:BR_BodenrichtwertLagetypisch,boris:BR_UmrechnungstabelleDatei,boris:BR_UmrechnungstabelleWerte,boris:BR_Verfahren)
WFS: Turn off loading of multiple layer definitions at a
single time
WFS: 
https://www.geobasisdaten.niedersachsen.de/doorman/noauth/WFS_boris_2022?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=boris:BR_BodenrichtwertZonal
HTTP: