[gdal-dev] WMS layer issue at higher zoom level
Rahkonen Jukka
jukka.rahkonen at maanmittauslaitos.fi
Fri Oct 20 12:04:48 PDT 2023
Hi,
Do you have another WMS server as a source for this layer? The error message that you have this time suggests so: “GDALWMS: Unable to download block 497, 740.” If that is the case, do you admin also the remote WMS?
-Jukka Rahkonen-
Lähettäjä: gdal-dev <gdal-dev-bounces at lists.osgeo.org> Puolesta Peter Schmitt via gdal-dev
Lähetetty: perjantai 20. lokakuuta 2023 20.33
Vastaanottaja: Raghav Singh <raghav.singh at eagleview.com>
Kopio: gdal-dev at lists.osgeo.org
Aihe: Re: [gdal-dev] WMS layer issue at higher zoom level
If you know the querystring that generated the failure you could run even more verbose logging on the command line. Something like:
env CPL_DEBUG=ON CPL_TIMESTAMP=ON MS_DEBUGLEVEL=5 MS_ERRORFILE=/dev/stderr mapserv QUERY_STRING='SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png&WIDTH=256&HEIGHT=256&....'
and maybe you could copy the image locally and try something like
gdal_translate -tr 256 256 -projwin ulx uly lrx lry in.tif out.tif
to glean more information. It's possible the input image (or an overview within the image) is corrupted in some way. If it turns out an overview is corrupted, you could try regenerating it with gdaladdo?
On Fri, Oct 20, 2023 at 10:53 AM Raghav Singh via gdal-dev <gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>> wrote:
I ran mapserver locally ran the specific wms request locally so getting this error - Assertion failed: (MS_RENDERER_RAWDATA(image->format) || (MS_RENDERER_PLUGIN(image->format) && rb)), function msDrawRasterLayerGDAL, file mapdrawgdal.c, line 126.
Abort trap: 6
Any idea regarding this?
and in logs it's coming like this -
Fri Oct 20 21:56:56 2023].137990 msDrawMap(): rendering using outputformat named mypng (AGG/PNG).
[Fri Oct 20 21:56:56 2023].138020 msDrawMap(): WMS/WFS set-up and query, 0.000s
[Fri Oct 20 21:56:56 2023].198332 msDrawRasterLayerLow(PICT-INHEND19-psQwiZ1L4t): entering.
[Fri Oct 20 21:56:58 2023].803667 msDrawRasterLayerLow(PICT-INHEND19-psQwiZ1L4t): entering.
[Fri Oct 20 22:10:13 2023].219765 drawGDAL() error coming from here: Unable to access file. GDALDatasetRasterIO() failed: IReadBlock failed at X offset 497, Y offset 740: GDALWMS: Unable to download block 497, 740.
________________________________
From: Raghav Singh
Sent: 04 October 2023 11:09
To: gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org> <gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>>
Subject: WMS layer issue at higher zoom level
Hi,
I am trying to get a layer from wms and at higher zoom levels I am getting this error - msDrawMap(): Image handling error. Failed to draw layer named 'PICT-INHEND19-psQwiZ1L4t'. drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: /tmp/mapfilePassthru-v2-temp-HxmyxI, band 1: IReadBlock failed at X offset 1064, Y offset 1551.
So, for this I checked from the imageservice side the mapfile is being created correctly and it is also present there and the mapfile contains a gserve request for getting the tiles - that is also working fine. So getting this error from mapserver only and tried to put debug level 5 and other things also in the mapfile but couldn't get any other error, only this is coming. So need help in this if anybody knows what exactly is this and i can i debug mapserver locally if i want to then i can figure out the exact point where the error is coming from.
Thanks,
Raghav Singh
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20231020/a19404dd/attachment.htm>
More information about the gdal-dev
mailing list