Skip to content

Feat/aggregate functions#3

Open
eddietejeda wants to merge 5 commits intomainfrom
feat/aggregate-functions
Open

Feat/aggregate functions#3
eddietejeda wants to merge 5 commits intomainfrom
feat/aggregate-functions

Conversation

@eddietejeda
Copy link

No description provided.

eddietejeda and others added 5 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>
…fine, linear ref, advanced)

Overlay:       ST_Union, ST_Intersection, ST_Difference, ST_SymDifference
Buffer:        ST_Buffer
Editors:       ST_Reverse, ST_Normalize, ST_FlipCoordinates, ST_Force2D,
               ST_Multi, ST_RemoveRepeatedPoints, ST_CollectionExtract
MakeValid:     ST_MakeValid (buffer-0 strategy; doc notes approximation)
Affine:        ST_Affine, ST_Rotate, ST_Scale, ST_Translate
Transform:     ST_Transform (geometry passthrough; full reprojection requires proj)
Linear ref:    ST_LineInterpolatePoint, ST_LineLocatePoint, ST_LineSubstring
Advanced:      ST_ChaikinSmoothing, ST_Segmentize, ST_ReducePrecision, ST_UnaryUnion

ST_UnaryUnion returns an error for non-polygonal members inside a
GeometryCollection rather than silently discarding them.
ST_Segmentize documents that only LineString input is currently supported.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Implements ST_Collect as a UDAF that accumulates geometries into a
GeometryCollection. Wire into the top-level register() function alongside
section comments for all UDF categories.

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