Opened 7 years ago
Closed 3 years ago
#3959 closed enhancement (worksforme)
ST_SetM, ST_SetZ, (ST_SetX, ST_SetY?) functions
Reported by: | komzpa | Owned by: | komzpa |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 3.2.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
I have a multipoint that I'd like to assign M to before ST_Collect'ing it with other multipoints and pushing into ST_GeometricMedian.
I see no way to do it without complete deconstruction of geometry into sets of x/y coordinates and building them back with ST_MakePoint with an extra argument.
It would be cool to have ST_SetM (and in other cases ST_SetZ) that will allow getting Z/M value for all objects in geometry from some other calculation/column.
Change History (5)
comment:1 by , 7 years ago
comment:2 by , 6 years ago
Milestone: | PostGIS 2.5.0 → PostGIS 3.0.0 |
---|
comment:3 by , 5 years ago
Milestone: | PostGIS 3.0.0 → PostGIS 3.1.0 |
---|
comment:4 by , 4 years ago
Milestone: | PostGIS 3.1.0 → PostGIS Fund Me |
---|
comment:5 by , 3 years ago
Milestone: | PostGIS Fund Me → PostGIS 3.2.0 |
---|---|
Resolution: | → worksforme |
Status: | assigned → closed |
This is actually doable via ST_Force3D / ST_Force4D optional arguments now.
Note:
See TracTickets
for help on using tickets.
Could
ST_GeometricMedian
be made into a multi-column aggregate function, instead of abusing the M ordinate?This seems like a useful addition regardless.