Hi,
first of all, after having migrated to 2.27.x we have been experiencing a dramatic increase of performance of the raster-to-point processes. Thanks everyone who was involved into making that important improvement!
But there is one thing now that we cannot quite figure ourselves. With the changes to [GEOT-7690] Fixes and improvements for contour/windbard rendering by aaime · Pull Request #5009 · geotools/geotools · GitHub we are now having trouble aligning our windbarbs to look nicely on tiled maps.
We have numerical weather prediction data of wind-speed and direction combined in a coverage view. In both version (2.23.6 and now 2.27.1) we are using the following CSS for that layer:
@styleTitle 'Wind barbs (m/s)';
@styleAbstract 'Wind barbs (m/s)';
* {
/* transform the raster into points */
transform:
ras:RasterAsPointCollection(
emisphere : true, scale : 0.015);
/* wind barbs symbol from wind speed */
mark: symbol('windbarbs://default(${wind_speed})[m/s]?emisphere=${emisphere}');
/* symbol rotation from wind direction and size from wind-speed */
:nth-mark(1) {
rotation: [wind_direction];
size: [categorize(wind_speed, 4, 1.543, 20)];
stroke: red;
label-obstacle: true;
};
/* prevent symbol overlapping */
mark-label-obstacle: true;
}
Note, that the data has a resolution of 0.0625 degrees in lat/lon, which is why we require that very small scaling factor of 0.015.
With 2.23.6 the data looked like that on an EPSG:3857 map display:
Note, that we have a 256x256 tile-size (displayed as black rectangles). Interestingly now with 2.27.1 it looks like this:
The problem that we are having is that for the old version you can see that the distances of sampled points looks pretty equidistant with respect to the overall display. Now with 2.27.1 the display looks a bit more consistent when looking at an individual tile, but now the overall display on the maps is not pleasant anymore. The distance of marks across tile boundaries smaller than the distance of points within a tile.
As far as I understand the changes that were made, the idea was to clip the image precisely at the rendering envelope, because otherwise labels/marks/barbs could be cut off. I think over all that change makes sense, but is there any way that could help restoring the equidistant look and feel across tile boundaries?
Thanks!