Skip to content

Feat/advanced measurements#2

Open
eddietejeda wants to merge 3 commits intomainfrom
feat/advanced-measurements
Open

Feat/advanced measurements#2
eddietejeda wants to merge 3 commits intomainfrom
feat/advanced-measurements

Conversation

@eddietejeda
Copy link

No description provided.

eddietejeda and others added 3 commits March 1, 2026 17:32
- ST_AsEWKT / (round-trip EWKT with embedded SRID)
- ST_AsGeoJSON / ST_GeomFromGeoJSON
- ST_MakeLine, ST_MakePolygon, ST_MakeEnvelope
- ST_IsClosed, ST_IsRing, ST_IsSimple, ST_IsEmpty, ST_IsCollection
- ST_NumGeometries, ST_NRings, ST_HasZ, ST_HasM, ST_Dimension

Add geojson + serde_json crate dependencies.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ST_DWithin: returns true if two geometries are within a given distance.

ST_Relate: returns the DE-9IM intersection matrix string for two geometry
arguments. Uses the public geo::relate API (CoordPos/Dimensions::get) rather
than Debug-string parsing, so the result is stable across geo crate versions.

ST_RelateMatch: tests whether a matrix string matches a DE-9IM pattern
(supports T/F/0/1/2/* wildcards).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…istance, ST_ClosestPoint, ST_MaxDistance

ST_ClosestPoint iterates all vertices of geomB and queries geomA.closest_point
for each, keeping the minimum-distance result. This is vertex-exact and correct
for non-convex geometries (replaces a centroid-heuristic approach).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant