Hello Stefan,
your hint isn't the solution, but might help ;)
1. we are at MapServer <= 7.6, so there is no epsg-file, but the projlib
with the sqlite.db
2. my tests are on debian (with MS 7.6 and 8.0), but the
original-problem has to be solved on a windows machine.
However, I made a test on a debian with MapServer 8.2 and a newer
projlib and there it works. So we will try to update the mapserver to
v8.2 at production.
Thanks!
Jörg
Am 19.12.24 um 12:50 schrieb Jaques Tati via MapServer-users:
Hello Jörg,
i couldn't find a hint on what MS version you're using, but with the
first installation of MS8
we also had a projection issue, - same as with you: without any hint in
any log or error file.
In the end it was simply solved by copying the file with the simple name
"epsg" from the
share/proj directory to the /share/proj9 directory (that is configured
through the mapserver_config file).
It's a simple task so maybe you can give it a try, - you need to restart
apache to make
MS aware of the new file.
Good luck
Stefan H.
Am 19.12.2024 um 12:42 schrieb Jörg Thomsen (WhereGroup) via
MapServer-users:
Hi,
I'm having a projection issue. There are two source datasets, one with
epsg 25833 and one with epsg 3068. Both should be at the same place
and they are, when viewing them in QGIS. In mapserver they don't
match. The example works with shp-files, but the problem occurs with
other Formats, eg gpkg, too.
https://schulung.foss.academy/mapbender/application/soldner?#10000@13.33114/52.49205r0@EPSG:3068
I've uploaded everything to
https://files.wheregroup.com/s/2QFHgNBanzJrSrN
When you change the projection to wgs84 or utm33 both polygons match,
with soldner they don't. The pink one with the data source in 3068 is
always displayed correct, but the blue one (data source 25833) is
placed ~400 meters south-west.
epsg 3068:
https://schulung.foss.academy/cgi-bin/mapserv?map=%2Fdata%2Fth%2Fmini.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&FORMAT=image%2Fpng&STYLES=%2C&TRANSPARENT=TRUE&LAYERS=mini25833%2Cmini%203068&WIDTH=1323&HEIGHT=1252&CRS=EPSG%3A3068&BBOX=17421.289685579035%2C18846.08290242035%2C19408.843660686984%2C20946.66710358875
AND epsg 25833:
https://schulung.foss.academy/cgi-bin/mapserv?map=%2Fdata%2Fth%2Fmini.map&&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&FORMAT=image%2Fpng&STYLES=%2C&TRANSPARENT=TRUE&LAYERS=mini25833%2Cmini%203068&WIDTH=1486&HEIGHT=958&CRS=EPSG%3A25833&BBOX=385517.0762893588%2C5816411.973997896%2C387875.47100614826%2C5817933.437040822
Thee are no hints in the ms-log and proj-log, below you'll find the
mapfile.
I don't have any more Ideas what's going wrong, perhaps anyone of the
helpful mapserver list can give me a hint?
Regards, Jörg
MAP
NAME "Mini_ges"
STATUS ON
EXTENT 0 0 80000 55000
UNITS METERS
PROJECTION
"init=epsg:25833"
END
CONFIG "PROJ_DEBUG" "4"
WEB
METADATA
ows_enable_request "*"
ows_srs "EPSG:4326 EPSG:25832 EPSG:25833 EPSG:3068"
wms_bbox_extended 'true'
END
END
LAYER
NAME "mini25833"
TYPE POLYGON
EXTENT 386801.3500214162049815 5817177.7080114781856537
386859.3500865547684953 5817221.2880833633244038
DATA 'mini'
DEBUG 5
METADATA
ows_srs "EPSG:4326 EPSG:25832 EPSG:25833 EPSG:3068"
END
PROJECTION
"init=epsg:25833"
END
CLASS
NAME "mini 25833"
STYLE
OUTLINECOLOR 72 164 255
WIDTH 5
END
END
END
LAYER
NAME "mini 3068"
TYPE POLYGON
EXTENT 0 0 80000 55000
DATA "mini3068"
DEBUG 5
METADATA
ows_srs "EPSG:4326 EPSG:25832 EPSG:25833 EPSG:3068"
END
PROJECTION
"init=epsg:3068"
END
CLASS
NAME "mini3068"
STYLE
OUTLINECOLOR 255 164 255
WIDTH 3
END
END
END
END # MAP
_______________________________________________
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
--
Viele Grüße,
Jörg Thomsen
********************************************
Das WhereGroup-Team wünscht Ihnen ein frohes
Weihnachtsfest und ein glückliches Jahr 2025!
********************************************
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
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users