[MapServer-users] XYZ file based layer shifted 180° East
Jaques Tati
jaques.tati at gmx.net
Mon Jul 29 00:02:42 PDT 2024
Good morning Gofferje,
there is not much detail about the version of MapServer you're using.
With the current version we also had a problem with shifting outputs.
Debugging revealed, that MapServer had a problem with the transformation
of the input coordinates of the application. We are using the
gisinternals distribution of MS8 binaries and since the current MS
version uses proj9 to deal with different CRSs i was able to solve our
problem with simply copying the file "epsg" from the directory
/proj/shared to the /proj9/shared directory.
Maybe you can give it a try.
best regards
S.H.
Am 28.07.2024 um 11:21 schrieb Stefan Gofferje via MapServer-users:
> Hi again,
>
> this time I'm trying to serve a raster layer based on an XYZ file
> which I create from the NOAA aurora forecast data. The XYZ file loads
> and displays correctly in QGIS, however, mapserver serves the layer
> shifted 180° East. I'm a little bit confused by that because I think I
> configured everything right...
>
> Here's the layer from my mapserver:
> https://mapserver.gofferje.net/?map=wms&service=WMS&version=1.3.0&request=GetMap&width=500&height=300&styles=&layers=aurora_forecast&format=image/png&crs=EPSG:4326&bbox=-90.000000,-180.000000,90.000000,180.000000
>
>
> Example XYZ file:
> https://cloud.gofferje.net/s/erjitMT3tMnDAp9
>
>
> Config:
>
> wms.map
> -------
> MAP
> NAME "WMS_server"
> SIZE 400 300
> EXTENT -180 -90 180 90
> IMAGECOLOR 255 255 255
>
>
> #
> # Start of web interface definition
> #
> WEB
> METADATA
> "wms_title" "WMS Test server"
> "wms_onlineresource" "https://mapserver.gofferje.net/?map=wms"
> "wms_srs" "EPSG:4326 EPSG:3067 EPSG:3857"
> "wms_getmap_formatlist" "PNG,PNG8,JPEG"
> "wms_enable_request" "* !GetLegendGraphic"
> END
> END
>
> PROJECTION
> "init=epsg:4326"
> END
>
> INCLUDE "layers/Auroras.lay"
>
> END #mapfile
>
>
> layers/Auroras.lay
> ------------------
> LAYER
> NAME "aurora_forecast"
> METADATA
> "wms_title" "Aurora forecast"
> "wms_srs" "EPSG:4326 EPSG:3067 EPSG:3857"
> END
> TYPE RASTER
> EXTENT -180 -90 180 90
> STATUS ON
> DATA "/maps/wfs/aurora/aurora.xyz"
> PROJECTION
> "init=epsg:4326"
> END
> END #layer
>
>
>
>
>
More information about the MapServer-users
mailing list