Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL]
Thanks Aaron! For letting us know this! I was not aware of this option. For other wondering what this option does, from: https://docs.geoserver.org/latest/en/user/configuration/raster_access.html#max-oversampling-factor "When dealing with reprojection, the underlying raster read operation might do some oversampling in order to provide the requested output resolution" Regards, Richard Duivenvoorde On 3/3/21 7:09 AM, Sedgmen Aaron wrote: > For anyone encountering the same problem, I found the solution was to set the > max oversampling factor to a lower value than the default. A value of 3 > provided suitable results for the raster layers and CRSs I'm working with. > > From looking at the GeoTools source code, the default value is 30 in version > GeoTools 22.1 (used in GeoServer 2.18.2) and 1 in earlier versions of > GeoTools (used in GeoServer versions 2.16.1 to 2.18.1). > > The max oversampling factor is set as a java option in the GeoServer startup > script (this is covered in the GeoServer user guide), e.g. > -Dorg.geotools.coverage.max.oversample=3. > > Regards, > > Aaron Sedgmen. > > -Original Message- > From: Sedgmen Aaron > Sent: Wednesday, 3 March 2021 10:23 AM > To: geoserver-users@lists.sourceforge.net > Subject: Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL] > > Yes, it does look similar. I tried changing between JAI-EXT and JAI which > was suggested as a possible source of the problem in GEOS-9016, to no avail. > > This is looking like a bug so will log a ticket. > > Regards, > > Aaron Sedgmen. > > > > -Original Message- > From: Richard Duivenvoorde > Sent: Monday, 1 March 2021 8:25 PM > To: geoserver-users@lists.sourceforge.net > Subject: Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL] > > This looks like an earlier issue I had in 2.14: > > https://osgeo-org.atlassian.net/jira/software/c/projects/GEOS/issues/GEOS-9016 > > which 'disappeared' after some newer release of 2.14.1 > > Regards, > > Richard Duivenvoorde > > PS the demo page on duif.net is not there anymore... > > On 3/1/21 6:14 AM, Sedgmen Aaron wrote: >> @Olysterthanks for the advice. Unfortunately it hasn't resolved the >> problem. I've tried a range of metatile and gutter size combinations and it >> doesn't appear to make a difference. >> >> >> >> To illustrate the problem, this is a screenshot of the spearfish dem raster >> layer in QGIS, 512x512 tiles, EPSG:4326 (GeoServer is reprojecting the data >> from EPSG:26713), zoomed in to a scale of 1:500. The default interpolation >> method for the layer is set to bilinear in GeoServer. >> >> >> >> >> >> Regards, >> >> >> >> Aaron Sedgmen. >> >> >> >> -Original Message- >> From: Olyster >> Sent: Saturday, 27 February 2021 12:15 AM >> To: geoserver-users@lists.sourceforge.net >> Subject: Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL] >> >> >> >> Hi, >> >> >> >> have a look at default meta tile size and default gutter size in caching >> settings. >> >> >> >> For example, I use 1 X 1 metatile with 10 gutter size. >> >> >> >> Hope this helps >> >> >> >> >> >> >> >> -- >> >> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html >> <http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html> >> >> >> >> >> >> ___ >> >> Geoserver-users mailing list >> >> >> >> Please make sure you read the following two resources before posting to this >> list: >> >> - Earning your support instead of buying it, but Ian Turton: >> http://www.ianturton.com/talks/foss4g.html#/ >> <http://www.ianturton.com/talks/foss4g.html#/> >> >> - The GeoServer user list posting guidelines: >> http://geoserver.org/comm/userlist-guidelines.html >> <http://geoserver.org/comm/userlist-guidelines.html> >> >> >> >> If you want to request a feature or an improvement, also see this: >> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >> >> <https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer> >> >> >> >> >> >
Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL]
For anyone encountering the same problem, I found the solution was to set the max oversampling factor to a lower value than the default. A value of 3 provided suitable results for the raster layers and CRSs I'm working with. >From looking at the GeoTools source code, the default value is 30 in version >GeoTools 22.1 (used in GeoServer 2.18.2) and 1 in earlier versions of >GeoTools (used in GeoServer versions 2.16.1 to 2.18.1). The max oversampling factor is set as a java option in the GeoServer startup script (this is covered in the GeoServer user guide), e.g. -Dorg.geotools.coverage.max.oversample=3. Regards, Aaron Sedgmen. -Original Message- From: Sedgmen Aaron Sent: Wednesday, 3 March 2021 10:23 AM To: geoserver-users@lists.sourceforge.net Subject: Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL] Yes, it does look similar. I tried changing between JAI-EXT and JAI which was suggested as a possible source of the problem in GEOS-9016, to no avail. This is looking like a bug so will log a ticket. Regards, Aaron Sedgmen. -Original Message- From: Richard Duivenvoorde Sent: Monday, 1 March 2021 8:25 PM To: geoserver-users@lists.sourceforge.net Subject: Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL] This looks like an earlier issue I had in 2.14: https://osgeo-org.atlassian.net/jira/software/c/projects/GEOS/issues/GEOS-9016 which 'disappeared' after some newer release of 2.14.1 Regards, Richard Duivenvoorde PS the demo page on duif.net is not there anymore... On 3/1/21 6:14 AM, Sedgmen Aaron wrote: > @Olysterthanks for the advice. Unfortunately it hasn't resolved the problem. > I've tried a range of metatile and gutter size combinations and it doesn't > appear to make a difference. > > > > To illustrate the problem, this is a screenshot of the spearfish dem raster > layer in QGIS, 512x512 tiles, EPSG:4326 (GeoServer is reprojecting the data > from EPSG:26713), zoomed in to a scale of 1:500. The default interpolation > method for the layer is set to bilinear in GeoServer. > > > > > > Regards, > > > > Aaron Sedgmen. > > > > -Original Message- > From: Olyster > Sent: Saturday, 27 February 2021 12:15 AM > To: geoserver-users@lists.sourceforge.net > Subject: Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL] > > > > Hi, > > > > have a look at default meta tile size and default gutter size in caching > settings. > > > > For example, I use 1 X 1 metatile with 10 gutter size. > > > > Hope this helps > > > > > > > > -- > > Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html > <http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html> > > > > > > ___ > > Geoserver-users mailing list > > > > Please make sure you read the following two resources before posting to this > list: > > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > <http://www.ianturton.com/talks/foss4g.html#/> > > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > <http://geoserver.org/comm/userlist-guidelines.html> > > > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > <https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer> > > > > > > Geoserver-users@lists.sourceforge.net > <mailto:Geoserver-users@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/geoserver-users > <https://lists.sourceforge.net/lists/listinfo/geoserver-users> > > > Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) > is intended only for the person or entity to which it is addressed. If you > are not the intended recipient, then you have received this e-mail by mistake > and any use, dissemination, forwarding, printing or copying of this e-mail > and its file attachments is prohibited. The security of emails transmitted > cannot be guaranteed; by forwarding or replying to this email, you > acknowledge and accept these risks. > > > ___ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to this > list: > - Earning your support instead of
Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL]
Yes, it does look similar. I tried changing between JAI-EXT and JAI which was suggested as a possible source of the problem in GEOS-9016, to no avail. This is looking like a bug so will log a ticket. Regards, Aaron Sedgmen. -Original Message- From: Richard Duivenvoorde Sent: Monday, 1 March 2021 8:25 PM To: geoserver-users@lists.sourceforge.net Subject: Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL] This looks like an earlier issue I had in 2.14: https://osgeo-org.atlassian.net/jira/software/c/projects/GEOS/issues/GEOS-9016 which 'disappeared' after some newer release of 2.14.1 Regards, Richard Duivenvoorde PS the demo page on duif.net is not there anymore... On 3/1/21 6:14 AM, Sedgmen Aaron wrote: > @Olysterthanks for the advice. Unfortunately it hasn't resolved the problem. > I've tried a range of metatile and gutter size combinations and it doesn't > appear to make a difference. > > > > To illustrate the problem, this is a screenshot of the spearfish dem raster > layer in QGIS, 512x512 tiles, EPSG:4326 (GeoServer is reprojecting the data > from EPSG:26713), zoomed in to a scale of 1:500. The default interpolation > method for the layer is set to bilinear in GeoServer. > > > > > > Regards, > > > > Aaron Sedgmen. > > > > -Original Message- > From: Olyster > Sent: Saturday, 27 February 2021 12:15 AM > To: geoserver-users@lists.sourceforge.net > Subject: Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL] > > > > Hi, > > > > have a look at default meta tile size and default gutter size in caching > settings. > > > > For example, I use 1 X 1 metatile with 10 gutter size. > > > > Hope this helps > > > > > > > > -- > > Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html > <http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html> > > > > > > ___ > > Geoserver-users mailing list > > > > Please make sure you read the following two resources before posting to this > list: > > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > <http://www.ianturton.com/talks/foss4g.html#/> > > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > <http://geoserver.org/comm/userlist-guidelines.html> > > > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > <https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer> > > > > > > Geoserver-users@lists.sourceforge.net > <mailto:Geoserver-users@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/geoserver-users > <https://lists.sourceforge.net/lists/listinfo/geoserver-users> > > > Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) > is intended only for the person or entity to which it is addressed. If you > are not the intended recipient, then you have received this e-mail by mistake > and any use, dissemination, forwarding, printing or copying of this e-mail > and its file attachments is prohibited. The security of emails transmitted > cannot be guaranteed; by forwarding or replying to this email, you > acknowledge and accept these risks. > > > ___ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to this > list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > ___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserv
Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL]
This looks like an earlier issue I had in 2.14: https://osgeo-org.atlassian.net/jira/software/c/projects/GEOS/issues/GEOS-9016 which 'disappeared' after some newer release of 2.14.1 Regards, Richard Duivenvoorde PS the demo page on duif.net is not there anymore... On 3/1/21 6:14 AM, Sedgmen Aaron wrote: > @Olysterthanks for the advice. Unfortunately it hasn’t resolved the problem. > I’ve tried a range of metatile and gutter size combinations and it doesn’t > appear to make a difference. > > > > To illustrate the problem, this is a screenshot of the spearfish dem raster > layer in QGIS, 512x512 tiles, EPSG:4326 (GeoServer is reprojecting the data > from EPSG:26713), zoomed in to a scale of 1:500. The default interpolation > method for the layer is set to bilinear in GeoServer. > > > > > > Regards, > > > > Aaron Sedgmen. > > > > -Original Message- > From: Olyster > Sent: Saturday, 27 February 2021 12:15 AM > To: geoserver-users@lists.sourceforge.net > Subject: Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL] > > > > Hi, > > > > have a look at default meta tile size and default gutter size in caching > settings. > > > > For example, I use 1 X 1 metatile with 10 gutter size. > > > > Hope this helps > > > > > > > > -- > > Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html > <http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html> > > > > > > ___ > > Geoserver-users mailing list > > > > Please make sure you read the following two resources before posting to this > list: > > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > <http://www.ianturton.com/talks/foss4g.html#/> > > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > <http://geoserver.org/comm/userlist-guidelines.html> > > > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > <https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer> > > > > > > Geoserver-users@lists.sourceforge.net > <mailto:Geoserver-users@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/geoserver-users > <https://lists.sourceforge.net/lists/listinfo/geoserver-users> > > > Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) > is intended only for the person or entity to which it is addressed. If you > are not the intended recipient, then you have received this e-mail by mistake > and any use, dissemination, forwarding, printing or copying of this e-mail > and its file attachments is prohibited. The security of emails transmitted > cannot be guaranteed; by forwarding or replying to this email, you > acknowledge and accept these risks. > > > ___ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to this > list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > ___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL]
@Olyster thanks for the advice. Unfortunately it hasn't resolved the problem. I've tried a range of metatile and gutter size combinations and it doesn't appear to make a difference. To illustrate the problem, this is a screenshot of the spearfish dem raster layer in QGIS, 512x512 tiles, EPSG:4326 (GeoServer is reprojecting the data from EPSG:26713), zoomed in to a scale of 1:500. The default interpolation method for the layer is set to bilinear in GeoServer. [cid:image002.jpg@01D70EB5.F82D8080] Regards, Aaron Sedgmen. -Original Message- From: Olyster Sent: Saturday, 27 February 2021 12:15 AM To: geoserver-users@lists.sourceforge.net Subject: Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL] Hi, have a look at default meta tile size and default gutter size in caching settings. For example, I use 1 X 1 metatile with 10 gutter size. Hope this helps -- Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html ___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/geoserver-users Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is intended only for the person or entity to which it is addressed. If you are not the intended recipient, then you have received this e-mail by mistake and any use, dissemination, forwarding, printing or copying of this e-mail and its file attachments is prohibited. The security of emails transmitted cannot be guaranteed; by forwarding or replying to this email, you acknowledge and accept these risks. ___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL]
Hi, have a look at default meta tile size and default gutter size in caching settings. For example, I use 1 X 1 metatile with 10 gutter size. Hope this helps -- Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html ___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] Gaps in tiled WMS raster layers [SEC=OFFICIAL]
Hi all, I am encountering some odd results with tiled WMS requests for raster layers. When zoomed in on a raster layer, the edges of the tiles appear to be being clipped, resulting in horizontal and/or vertical strips and wedges of no data (gaps) along the tile borders. The issue occurs when the WMS default interpolation method for the raster layer is set to bilinear or bicubic (nearest neighbour is ok) and the requested CRS is different to the declared CRS of the layer (i.e. GeoServer is reprojecting the data to produce the tiles). Adjusting the metatiling factor and gutter size has no appreciable effect. There seems to be a correlation between the cells size of the raster dataset and the zoom extent at which the issue starts to occur - the smaller the cell size the further you have to zoom in to see the problem. The issue can be repeated with the Spearfish elevation demo layer that ships with GeoServer by viewing the layer in a web map client able to make tiled requests (e.g. QGIS or GeoServer's built in OpenLayers client), setting the request CRS to something other than EPSG:26713, e.g. 4326, and zooming into a scale of around 1:1000 or less and panning around. The issue appears to have been introduced in version 2.16.1 and later, doesn't happen in 2.16.0. Tested on Windows 10/Oracle JRE 1.8.0_281 and Ubuntu 18.04.5 LTS/OpenJDK 11.0.10. This is a bit of a problem for us as we have national scale raster datasets with coarse cell sizes and discrete classifications that need to be smoothed using bilinear interpolation to be presentable in our portal, and unfortunately the user doesn't have to zoom in very far before the strips and wedges become apparent. Could I be missing something in the GeoServer settings? Any advice would be much appreciated. Regards, Aaron Sedgmen. Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is intended only for the person or entity to which it is addressed. If you are not the intended recipient, then you have received this e-mail by mistake and any use, dissemination, forwarding, printing or copying of this e-mail and its file attachments is prohibited. The security of emails transmitted cannot be guaranteed; by forwarding or replying to this email, you acknowledge and accept these risks. ___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users