Opened 10 years ago
Closed 9 years ago
#3059 closed enhancement (fixed)
Allow passing per-dimension parameters in ST_Expand
Reported by: | strk | Owned by: | dbaston |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.3.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
Allow ST_Expand to take one amount for each dimension:
ST_Expand(geometry, x float8, y float8, z float8, m float8);
The current function would keep using the same amount for all of them.
Change History (7)
comment:1 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Version: | 2.1.x → trunk |
comment:2 by , 9 years ago
Milestone: | PostGIS 2.2.0 → PostGIS Future |
---|
comment:3 by , 9 years ago
Milestone: | PostGIS Future → PostGIS 2.3.0 |
---|---|
Owner: | changed from | to
Status: | assigned → new |
comment:5 by , 9 years ago
I'm so glad too you are on board Dan, but I must scold you for using ST_Distance_Sphere instead of ST_DistanceSphere. http://postgis.net/docs/manual-2.2/ST_DistanceSphere.html
I'm surprised strk didn't pick up on that since he's the pedantic one.
comment:6 by , 9 years ago
Thanks all, and sorry if I occasionally get nostalgic for a comfortable, well-aged function name from a simpler time.
comment:7 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This seems like a nice way to improve hackish
ST_DWithin
queries on WGS84 geometries stored as geometry.So, to find polygons within 1km of a point, you could do:
where 69000 m approximates 1 degree of longitude, and 111111 m approximates 1 degree of latitude (at 52 degrees N)