You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
139450: builtins: implement ST_3DLength r=yuzefovich a=qburke
This patch allows measuring the length of 3D geometries when there was no builtin function to do this before.
Fixes: #60866
Release note (sql change): The `ST_3DLength` function is now available for use.
Co-authored-by: Quin Burke <[email protected]>
Copy file name to clipboardExpand all lines: docs/generated/sql/functions.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1711,6 +1711,11 @@ the locality flag on node startup. Returns an error if no region is set.</p>
1711
1711
</span></td><td>Immutable</td></tr>
1712
1712
<tr><td><aname="postgis_wagyu_version"></a><code>postgis_wagyu_version() → <ahref="string.html">string</a></code></td><td><spanclass="funcdesc"><p>Compatibility placeholder function with PostGIS. Returns a fixed string based on PostGIS 3.0.1, with minor edits.</p>
1713
1713
</span></td><td>Immutable</td></tr>
1714
+
<tr><td><aname="st_3dlength"></a><code>st_3dlength(geometry: geometry) → <ahref="float.html">float</a></code></td><td><spanclass="funcdesc"><p>Returns the 3-dimensional or 2-dimensional length of the geometry.</p>
1715
+
<p>Note ST_3DLength is only valid for LineString or MultiLineString.
1716
+
For 2-D lines it will return the 2-D length (same as ST_Length and ST_Length2D)</p>
1717
+
<p>This function utilizes the GEOS module.</p>
1718
+
</span></td><td>Immutable</td></tr>
1714
1719
<tr><td><aname="st_addmeasure"></a><code>st_addmeasure(geometry: geometry, start: <ahref="float.html">float</a>, end: <ahref="float.html">float</a>) → geometry</code></td><td><spanclass="funcdesc"><p>Returns a copy of a LineString or MultiLineString with measure coordinates linearly interpolated between the specified start and end values. Any existing M coordinates will be overwritten.</p>
1715
1720
</span></td><td>Immutable</td></tr>
1716
1721
<tr><td><aname="st_addpoint"></a><code>st_addpoint(line_string: geometry, point: geometry) → geometry</code></td><td><spanclass="funcdesc"><p>Adds a Point to the end of a LineString.</p>
0 commit comments