Skip to content

Scale of (r)HEALPix coordinate space #4789

Description

@jerstlouis

AI usage

  • Google AI supported the creation of this ticket.
  • This ticket has been (mostly) written by myself (human), and is aimed at being read by humans.

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions