Dear community,

Problem description:
We configured two mapserver installations:
1 - Ubuntu  24.04.1 LTS (GNU/Linux 6.8.0-45-generic x86_64)
2 - Windows 11

Both distributions contain the same map file which delivers
an OGC WFS.
Both map files refer to the same source:
Postgres/GIS database with 2 records with point geometry stored with SRID 28992.

The OGC WFS is configured for GEOJSON output with EPSG:4326

Issue
The output of the Ubuntu OS differs (a bit) from the output of the Windows OS.

Ubuntu:

{
    "features": [
        {
            "geometry": {
                "coordinates": [
                    4.529922,
                    51.943676
                ],
                "type": "Point"
            },
            "id": "511557",

Windows:

{
    "features": [
        {
            "geometry": {
                "coordinates": [
                    4.529612,
                    51.942715
                ],
                "type": "Point"
            },
            "id": "511557",

I believe/think the Windows version is correct and the Ubuntu version is 
incorrect.

When I run cs2cs on the ubuntu server:
mapserver@mapserver:~$ echo 96033.1697484512 439710.083800115 | cs2cs 
+init=epsg:28992 +to +init=epsg:4326 -f "%.8f"
4.52961103      51.94271408 0.00000000
mapserver@mapserver:~$

When I run gdaltransform on the ubuntu server:
mapserver@mapserver:~$ echo "96033.1697484512 439710.083800115" | gdaltransform 
-s_srs EPSG:28992 -t_srs EPSG:4326
4.52961103108079 51.9427140778367 0
mapserver@mapserver:~$

Both outcome match the Windows result but do NOT match the Ubuntu mapserver 
results.

The versions of mapserver and extensions used differ from each other.

Ubuntu:
mapserver@mapserver:~$ mapserv -v
MapServer version 8.0.1 PROJ version 9.4 GDAL version 3.8 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=OGCAPI_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS 
SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE 
INPUT=FLATGEOBUF
mapserver@mapserver:~$


Windows:
C:\PROGRA~1\MAPSER~1\ms4w\Apache\cgi-bin>mapserv.exe -v
MapServer version 8.3.0-dev  (MS4W 5.0.0) PROJ version 9.5 GDAL version 3.10 
OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE 
SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV 
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER 
SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS 
SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE 
INPUT=FLATGEOBUF

Does the mapserver development team have an explanation for this difference?

I can send the map file separately if required.

With best regards,
André Mulder

_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to