AI usage
Example of problem
See AddressForAll/suporte#86 for PostGIS output illustrating the ~15.12% discrepancy from ST_Area()
Problem description
The current implementation of rHEALPix scales the radians coordinates (x ranging from -pi .. pi) by the semi-major axis. In order for the total area of the coordinate space to correspond to the true ellipsoid area, I believe this should be semi-major axis X sqrt(8÷(3×pi)). Alternatively, the x and y could be pre-multiplied by that factor in e.g. healpix_sphere.
Note that this likely also applies to HEALPix.
I'm not sure whether this breaking change would be desired by the community, but at minimum this aspect should be properly documented, so that users know that the coordinates returned by PROJ are essentially scaled by a ~0.9213 factor compared to true meters (8÷(3×pi) = ~0.8488 factor for areas).
cc. @rggibb @ppKrauss @tinaok @tik65536 @allixender
AI usage
Example of problem
See AddressForAll/suporte#86 for PostGIS output illustrating the ~15.12% discrepancy from
ST_Area()Problem description
The current implementation of rHEALPix scales the radians coordinates (x ranging from -pi .. pi) by the semi-major axis. In order for the total area of the coordinate space to correspond to the true ellipsoid area, I believe this should be
semi-major axis X sqrt(8÷(3×pi)). Alternatively, the x and y could be pre-multiplied by that factor in e.g. healpix_sphere.Note that this likely also applies to HEALPix.
I'm not sure whether this breaking change would be desired by the community, but at minimum this aspect should be properly documented, so that users know that the coordinates returned by PROJ are essentially scaled by a ~0.9213 factor compared to true meters (8÷(3×pi) = ~0.8488 factor for areas).
cc. @rggibb @ppKrauss @tinaok @tik65536 @allixender