[SEDONA-281] Support geodesic / geography functions #835
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Did you read the Contributor Guide?
Is this PR related to a JIRA ticket?
[SEDONA-281] my subject
.What changes were proposed in this PR?
ST_AreaSpheroid
Return the geodesic area of A using WGS84 spheroid. Unit is square meter. Works better for large geometries (country level) compared to
ST_Area
+ST_Transform
. It is equivalent to PostGISST_Area(geography, use_spheroid=true)
function and produces nearly identical results.ST_LengthSpheroid
Return the geodesic perimeter of A using WGS84 spheroid. Unit is meter. Works better for large geometries (country level) compared to
ST_Length
+ST_Transform
. It is equivalent to PostGISST_Length(geography, use_spheroid=true)
andST_LengthSpheroid
function and produces nearly identical results.ST_DistanceSphere
Return the haversine / great-circle distance of A using a given earth radius (default radius: 6378137.0). Unit is meter. Works better for large geometries (country level) compared to
ST_Distance
+ST_Transform
. It is equivalent to PostGISST_Distance(geography, use_spheroid=false)
andST_DistanceSphere
function and produces nearly identical results. It provides faster but less accurate result compared toST_DistanceSpheroid
.ST_DistanceSpheroid
Return the geodesic distance of A using WGS84 spheroid. Unit is meter. Works better for large geometries (country level) compared to
ST_Distance
+ST_Transform
. It is equivalent to PostGISST_Distance(geography, use_spheroid=true)
andST_DistanceSpheroid
function and produces nearly identical results. It provides slower but more accurate result compared toST_DistanceSphere
.How was this patch tested?
Added many unit tests.
Did this PR include necessary documentation updates?
vX.Y.Z
format.