Skip to content

[GH-2052] Implement geospatial functions of Distance, Predicates, Projection#2051

Merged
jiayuasu merged 22 commits into
apache:masterfrom
ZhuochengShang:zshang-v3
Jul 15, 2025
Merged

[GH-2052] Implement geospatial functions of Distance, Predicates, Projection#2051
jiayuasu merged 22 commits into
apache:masterfrom
ZhuochengShang:zshang-v3

Conversation

@ZhuochengShang
Copy link
Copy Markdown
Collaborator

@ZhuochengShang ZhuochengShang commented Jul 2, 2025

What changes were proposed in this PR?

  • Distance function: min/max distance between two geographies, minimumClearanceLineBetween two geographies
  • Projection function: MercatorProjection, OrthographicProjection
  • Predicates function: intersects, equal, contains, intersectsBox

@ZhuochengShang ZhuochengShang requested a review from jiayuasu as a code owner July 2, 2025 20:51
@ZhuochengShang ZhuochengShang changed the title [GH-] Implement geospatial functions of Distance, Predicates, Projection [GH-2052] Implement geospatial functions of Distance, Predicates, Projection Jul 2, 2025
Comment thread common/src/main/java/org/apache/sedona/common/S2Geography/Accessors.java Outdated
Comment thread common/src/main/java/org/apache/sedona/common/S2Geography/Accessors.java Outdated
Comment thread common/src/main/java/org/apache/sedona/common/S2Geography/Accessors.java Outdated
Comment thread common/src/main/java/org/apache/sedona/common/S2Geography/Distance.java Outdated
@jiayuasu jiayuasu requested a review from Kontinuation July 13, 2025 20:10
Copy link
Copy Markdown
Member

@Kontinuation Kontinuation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jiayuasu jiayuasu merged commit e1ef961 into apache:master Jul 15, 2025
34 checks passed
Subham-KRLX pushed a commit to Subham-KRLX/sedona that referenced this pull request Jul 17, 2025
…s, Projection (apache#2051)

* Create object of S2Geography, and implement PoinGeography with its encoder/decoder

* Add POLYLINE implementation on S2Geography

* Add POLYGON implements on S2Geography

* Match coding style

* "Apply Spotless formatting to PolylineGeographyTest"

* Redesign of S2Geography

- Import org.datasyslab s2-geometry-library
- Clean up S2Geography abstract design
- Update Encode/Decode inside each kind of geography

* clean up unnecessary files in current branch

* Refine design of EncodeTagged in S2Geography

- Adding back EncodeTagged in S2Geography
- Let each geography type calls its own encode / decode function
- Change to use Kyro UnsafeInput and UnsafeOutput

* Modify encoder() and add new test cases

* clean up code of encode and clarify comments

* Update POLYGON to only take one polygon

* Remove S2Regionwrapper & S2Shapewrapper

* clean up minor issue

* GeographyCollection and ShapeIndexGeography implementation

* comcomment geography kind in S2Geography

* Functions of distance, predicates, projection & Accessors

* fix minor issue of geospatial functions

* format fix

* avoid duplicates before create S2Loop; re init value list with initial value -1
Kontinuation pushed a commit to Kontinuation/sedona that referenced this pull request Jan 21, 2026
…s, Projection (apache#2051)

* Create object of S2Geography, and implement PoinGeography with its encoder/decoder

* Add POLYLINE implementation on S2Geography

* Add POLYGON implements on S2Geography

* Match coding style

* "Apply Spotless formatting to PolylineGeographyTest"

* Redesign of S2Geography

- Import org.datasyslab s2-geometry-library
- Clean up S2Geography abstract design
- Update Encode/Decode inside each kind of geography

* clean up unnecessary files in current branch

* Refine design of EncodeTagged in S2Geography

- Adding back EncodeTagged in S2Geography
- Let each geography type calls its own encode / decode function
- Change to use Kyro UnsafeInput and UnsafeOutput

* Modify encoder() and add new test cases

* clean up code of encode and clarify comments

* Update POLYGON to only take one polygon

* Remove S2Regionwrapper & S2Shapewrapper

* clean up minor issue

* GeographyCollection and ShapeIndexGeography implementation

* comcomment geography kind in S2Geography

* Functions of distance, predicates, projection & Accessors

* fix minor issue of geospatial functions

* format fix

* avoid duplicates before create S2Loop; re init value list with initial value -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GH-2052] Implements of geospatial functions: distance, projection, predicates

4 participants