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





--
 (o_   Stefan Gofferje            | SCLT, MCP, CCSA
 //\   Reg'd Linux User #247167   | VCP #2263
 V_/_  https://www.gofferje.net   | https://www.saakeskus.fi

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

Reply via email to