Open felixcremer opened 1 week ago
The code I see above won't work on general transformed axes (GeoAxis included) since you will pick up the bounding box in transformed space. Transforming back to input space is also a lossy operation - consider an axis aligned square centered at 0, now rotate it by 45 degrees. The bounding box of this square has double the area of the original square.
This shouldn't be an issue for interactive use but you have to be careful about how you specify the space and transformations.
Also I am currently use the viewport widths as indicator how large the data should be that im grabbing. This might be wrong for geoaxies.
If we would like to combine the pyramid data with data in other projections it would be best when the pyramid data is reprojected on the fly during interactions to the target projection of the plotting Axis. Therefore we would like to add this interaction into a dispatch of GeoAxis. The code for the reprojection on the fly is
This is from this commit: https://github.com/JuliaDataCubes/PyramidScheme.jl/blob/fb8eba07376f04aed3b424e2994321fee0b58f0f/src/PyramidScheme.jl
Parts of this are still in the source code and should be taken out.