Greetings!
On Debian Linux Bookworm, GDAL 3.10, MapServer 8.2.2, I'm unable to draw
contours, all other raster/vector layers are fine. Contours worked with
GDAL 3.9.2 and MapServer 8.2.2. I know GDAL raster memory is now off by
default with 3.10, so I might be missing something. Any help is greatly
appreciated! TIA!
Map file, tried with various settings, with comments and without comments:
LAYER
NAME "tstcontours"
TYPE LINE
STATUS ON
CONNECTIONTYPE CONTOUR
#CONNECTIONOPTIONS
# "GDAL_MEM_ENABLE_OPEN" "YES"
#END
DATA "/path/to/raster/conusDem30m_cog.tif"
PROCESSING "BANDS=1"
PROCESSING "CONTOUR_ITEM=elevation"
# PROCESSING "CONTOUR_INTERVAL=24.383999219712025"
# GEOMTRANSFORM (smoothsia(generalize([shape], 0.25*[data_cellsize])))
CLASS
NAME "contour"
STYLE
COLOR "#987654"
WIDTH 1
END
END
END
Localhost url:
http://127.0.0.1/cgi-bin/local_mapserver?&layers=tstcontours&width=1611&t_srs=EPSG:3857&bbox=-13179759.6,4394391,-13174391.4,4402174.2&format=image/png&srs=EPSG:3857&height=2335&service=WMS&request=GetMap&version=1.1.1
In browser error looks like:
<ServiceExceptionReport version="1.1.1">
<ServiceException>
msDrawMap(): Image handling error. Failed to draw layer named
'tstcontours'.
msContourLayerReadRaster(): Image handling error. Unable to open GDAL
Memory dataset.
</ServiceException>
</ServiceExceptionReport>
MapServer log file, DEBUG 5 looks like:
[Sun Nov 10 12:46:16 2024].196137 loadParams() QUERY_STRING:
&layers=tstcontours&width=1611&t_srs=EPSG:3857&bbox=-13179759.6,4394391,-13174391.4,4402174.2&format=image/png&srs=EPSG:3857&height=2335&service=WMS&request=GetMap&version=1.1.1
[Sun Nov 10 12:46:16 2024].213488 msLoadMap(): 0.017s
[Sun Nov 10 12:46:16 2024].214046 CGI Request 1 on process 30360
[Sun Nov 10 12:46:16 2024].228400 msDrawMap(): rendering using
outputformat named png (AGG/PNG).
[Sun Nov 10 12:46:16 2024].228438 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Sun Nov 10 12:46:16 2024].228468 Entering msContourLayerOpen().
[Sun Nov 10 12:46:16 2024].228899 Entering msContourLayerReadRaster().
[Sun Nov 10 12:46:16 2024].229149 msContourLayerReadRaster(): Entering
transform.
[Sun Nov 10 12:46:16 2024].255653 msContourLayerReadRaster():
src=11699,20417,85,96, dst=0,0,85,96
[Sun Nov 10 12:46:16 2024].261770 msContourLayerReadRaster(): Image
handling error. Unable to open GDAL Memory dataset.
[Sun Nov 10 12:46:16 2024].261785 msDrawMap(): Image handling error.
Failed to draw layer named 'tstcontours'.
[Sun Nov 10 12:46:16 2024].261977 mapserv request processing time
(msLoadMap not incl.): 0.048s
[Sun Nov 10 12:46:16 2024].261983 msFreeMap(): freeing map at
0x55d38fe17560.
--
www.postholer.com
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users