<div dir="ltr">I'm liking ST_SetZ and ST_SetM.<div><br></div><div>Reasons:</div><div>- nice and concise</div><div>- indicates that the geometry is being mutated</div><div>- removes one function parameter (I can't see a need to programmatically choose between setting Z and M, but if that need arises can always add a function)</div><div>- as Regina said, there is a ticket to create ST_SetZ/M already (<a href="https://trac.osgeo.org/postgis/ticket/3959">https://trac.osgeo.org/postgis/ticket/3959</a>), and this harmonizes nicely with that (hard to believe we don't already have these!)</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 16, 2021 at 2:02 AM Sandro Santilli <<a href="mailto:strk@kbt.io">strk@kbt.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Apr 16, 2021 at 01:08:44AM -0400, Regina Obe wrote:<br>
> > Sent: Friday, April 16, 2021 1:03 AM<br>
> > To: 'PostGIS Development Discussion' <<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a>><br>
> > Subject: RE: [postgis-devel] ST_GetValues()<br>
> > <br>
> > > And building on that, ST_GetValues() which reads values from a raster<br>
> > > into the Z or M coordinates of a reference geometry.<br>
<br>
[..]<br>
<br>
> How about just overloading the name ST_Force3DZ, ST_Force3DM cause that's<br>
> essentially what you are doing here isn't it?<br>
<br>
How about ST_PopulateZ and ST_PopulateM ?<br>
Or even ST_SetZ and ST_SetM.<br>
For the latter we also have an open ticket requesting to extend<br>
the functionality of ST_SetZ/ST_SetM to allow getting the Z/M values<br>
from some other computation. In this case the computation would be<br>
extracting the value from a Raster, if I Understand correctly.<br>
<br>
Or .. don't we have functions that "draw" a raster into a<br>
"vector/geometry canvas" ? In that case we could have them<br>
accept a non-empty canvas, to "draw into a pre-existing geometry",<br>
with some draw operation (multiply/add/replace/subtract..).<br>
I've some resemblance of implementing that kind of "drawing"<br>
in the CHIP type times...<br>
<br>
--strk;<br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a><br>
</blockquote></div>