Wind:RasterAsPointCollection in non EPSG:4326 Projections renders very slowly/fails

I was looking into why styling wind in non EPSG:4326 projections was not performant especially when zoomed in on the Map. The current coverage data has a source CRS of EPSG:4326 and we want to reproject and get the coverage rendered in non EPSG:4326 so we can style wind in those projections. I noticed that in the GridCoverageRenderer class in gt-render that there was an affine step to allow warp/affine merging. The comment stated that it was done to best preserve rotations. When you are reprojecting to a non EPSG:4326 projection, the code in lines 834-846 are executed and the affine step leads to a grid range that is very large 40000x40000 in some cases for width and height. That section of the code does not get executed in the projection that we are using when rendering on the Map is EPSG:4326 so we have a much smaller grid range. This leads to significant oversampling and a large number of wind barbs being displayed even when zoomed in with a scale of 15 for example.

My question is what does the affine step do and is it necessary when getting the final GridCoverage2D object? I did notice in projections like EPSG:3574 that the directions and speed of the wind barbs changed significantly based on whether that affine step was being applied.

GridCoverageRenderer.java (52.6 KB)

What software are you using? I’m guessing geoserver or geotools.

I am using geoserver 2.26.0 and geotools 32.0

Then you probably want to ask on the GeoServer user list

Ian

On Thu, 6 Feb 2025, 16:47 Sarat Sreepathy via OSGeo Discourse, <noreply@discourse.osgeo.org> wrote:

saratsreepathy
February 6

I am using geoserver 2.26.0 and geotools 32.0


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

Moved to geoserver users list - for future post here - GeoServer User - OSGeo Discourse

Just wanted to note, that we are experiencing the very same behaviour. We would really appreciate some performance improvements.

Step 1: open a ticket with a riproducibile test case, data, style and WMS requets

Step 2: read and apply this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-fixes,-improvements-and-new-features-in-GeoServer,-GeoTools-and-GeoWebCache

Cheers
Andrea

Il mar 11 feb 2025, 14:45 Sören Kalesse via OSGeo Discourse <noreply@discourse.osgeo.org> ha scritto:

skalesse
February 11

Just wanted to note, that we are experiencing the very same behaviour. We would really appreciate some performance improvements.


Visit Topic or reply to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here.