[SCM] PostGIS branch master updated. 3.6.0rc2-698-gb6204431f

git at osgeo.org git at osgeo.org
Tue Jun 30 22:35:26 PDT 2026


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  b6204431fcfdb386ca58fe495fa23bdbd5461b5b (commit)
       via  a2a5bb897a499aaac56f30af583bb8f9febe2865 (commit)
      from  058ffbeab6ee29678b331724488cfd4c7e5d7e84 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b6204431fcfdb386ca58fe495fa23bdbd5461b5b
Merge: 058ffbeab a2a5bb897
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Wed Jul 1 09:33:27 2026 +0400

    Merge pull request https://github.com/postgis/postgis/pull/936
    
    doc: document ST_Translate M preservation


commit a2a5bb897a499aaac56f30af583bb8f9febe2865
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Wed Jun 17 10:31:53 2026 +0400

    doc: document ST_Translate M preservation
    
    References #3063

diff --git a/doc/reference_transformation.xml b/doc/reference_transformation.xml
index ec35f9497..f631bea23 100644
--- a/doc/reference_transformation.xml
+++ b/doc/reference_transformation.xml
@@ -520,13 +520,15 @@ SELECT ST_AsText(ST_Scale('LINESTRING(1 1, 2 2)', 'POINT(2 2)', 'POINT(1 1)'::ge
 		<title>Description</title>
 
 		<para>Returns a new geometry whose coordinates are translated delta x,delta y,delta z units. Units are
-		based on the units defined in spatial reference (SRID) for this geometry.</para>
+		based on the units defined in spatial reference (SRID) for this geometry.
+		M coordinates are preserved.</para>
 
 		<note><para>Prior to 1.3.4, this function crashes if used with geometries that contain CURVES.  This is fixed in 1.3.4+</para></note>
 
 		<para role="availability" conformance="1.2.2">Availability: 1.2.2</para>
 		<para>&Z_support;</para>
 		<para>&curve_support;</para>
+		<para>&M_support;</para>
 	  </refsection>
 
 	  <refsection>
@@ -550,6 +552,17 @@ SELECT ST_AsText(ST_Scale('LINESTRING(1 1, 2 2)', 'POINT(2 2)', 'POINT(1 1)'::ge
 	st_asewkt
 	---------
 	POINT(5 12 3)
+		</programlisting>
+		<para>Move points with a measure coordinate</para>
+		<programlisting>SELECT ST_AsEWKT(ST_Translate(ST_GeomFromEWKT('POINTM(0 0 11)'), 5, 12));
+	st_asewkt
+	---------
+	POINTM(5 12 11)
+
+SELECT ST_AsEWKT(ST_Translate(ST_GeomFromEWKT('POINT(0 0 7 11)'), 5, 12, 3));
+	st_asewkt
+	---------
+	POINT(5 12 10 11)
 		</programlisting>
 		<para>Move a curve and a point</para>
 <programlisting>SELECT ST_AsText(ST_Translate(ST_Collect('CURVEPOLYGON(CIRCULARSTRING(4 3,3.12 0.878,1 0,-1.121 5.1213,6 7, 8 9,4 3))','POINT(1 3)'),1,2));
diff --git a/regress/core/affine.sql b/regress/core/affine.sql
index 8b7f43e86..1c5bdedfb 100644
--- a/regress/core/affine.sql
+++ b/regress/core/affine.sql
@@ -3,6 +3,8 @@
 -- ST_Translate
 select 'ST_Translate', ST_asewkt(ST_Translate('POINT(0 0)'::geometry, 5, 12));
 select 'ST_Translate', ST_asewkt(ST_Translate('POINT(0 0 0)'::geometry, -3, -7, 3));
+select 'ST_TranslateM', ST_asewkt(ST_Translate(ST_GeomFromEWKT('POINTM(0 0 11)'), 5, 12));
+select 'ST_TranslateZM', ST_asewkt(ST_Translate(ST_GeomFromEWKT('POINT(0 0 7 11)'), 5, 12, 3));
 
 -- ST_Scale
 select 'ST_Scale', ST_asewkt(ST_Scale('POINT(1 1)'::geometry, 5, 5));
diff --git a/regress/core/affine_expected b/regress/core/affine_expected
index ba6723a0d..ebee7b0de 100644
--- a/regress/core/affine_expected
+++ b/regress/core/affine_expected
@@ -1,5 +1,7 @@
 ST_Translate|POINT(5 12)
 ST_Translate|POINT(-3 -7 3)
+ST_TranslateM|POINTM(5 12 11)
+ST_TranslateZM|POINT(5 12 10 11)
 ST_Scale|POINT(5 5)
 ST_Scale|POINT(3 2)
 ST_Scale|POINT(40 40 40)

-----------------------------------------------------------------------

Summary of changes:
 doc/reference_transformation.xml | 15 ++++++++++++++-
 regress/core/affine.sql          |  2 ++
 regress/core/affine_expected     |  2 ++
 3 files changed, 18 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list