Skip to content

Clarify ST_DWithin macro documentation - #288

Open
davidwebster48 wants to merge 1 commit into
felt:masterfrom
davidwebster48:docs/clarify-st-dwithin-docs
Open

Clarify ST_DWithin macro documentation#288
davidwebster48 wants to merge 1 commit into
felt:masterfrom
davidwebster48:docs/clarify-st-dwithin-docs

Conversation

@davidwebster48

@davidwebster48 davidwebster48 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

This updates the @doc strings for st_dwithin/3, st_dwithin/4, and st_dwithin_in_meters/4 so they match how PostGIS overloads work: units depend on geometry vs geography for the three-argument form, the four-argument SQL form is the geography overload (no casts in st_dwithin/4), and st_dwithin_in_meters/4 is explicitly the cast-then-ST_DWithin/4 path.

Thanks to @aseigo for the review feedback that prompted these clarifications.

Document geometry vs geography units for st_dwithin/3, spell out the geography-only SQL overload for st_dwithin/4 (no casts), and tie st_dwithin_in_meters/4 to casts plus use_spheroid.

co-authored by ai@fresha.com

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant