Re: [gdal-dev] WMS layer issue at higher zoom level

2023-10-20 Thread Rahkonen Jukka via gdal-dev
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  Puolesta Peter Schmitt 
via gdal-dev
Lähetetty: perjantai 20. lokakuuta 2023 20.33
Vastaanottaja: Raghav Singh 
Kopio: gdal-dev@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=1.3.0=GetMap=image/png=256=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 
mailto:gdal-dev@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@lists.osgeo.org 
mailto:gdal-dev@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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


--
Pete
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] WMS layer issue at higher zoom level

2023-10-20 Thread Peter Schmitt via gdal-dev
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=1.3.0=GetMap=image/png=256=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@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@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@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>


-- 
Pete
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] WMS layer issue at higher zoom level

2023-10-20 Thread Raghav Singh via gdal-dev
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@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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Happy Birthday GDAL!

2023-10-20 Thread Abel Pau via gdal-dev
Happy birthday, people!!!

De: gdal-dev  En nombre de Javier Jimenez 
Shaw via gdal-dev
Enviado el: divendres, 20 d’octubre de 2023 10:01
Para: gdal dev 
Asunto: [gdal-dev] Happy Birthday GDAL!

GDAL got 25 years old on 2023-10-17 !
I found it in this post 
https://geoobserver.wordpress.com/2023/10/17/25-jahre-gdal-happy-birthday/
.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ...  ._ .__
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Happy Birthday GDAL!

2023-10-20 Thread Javier Jimenez Shaw via gdal-dev
GDAL got 25 years old on 2023-10-17 !
I found it in this post
https://geoobserver.wordpress.com/2023/10/17/25-jahre-gdal-happy-birthday/
.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ...  ._ .__
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev