summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/gis/gdal.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/ref/contrib/gis/gdal.txt b/docs/ref/contrib/gis/gdal.txt
index 4b7a706fc4..f6e9ef0964 100644
--- a/docs/ref/contrib/gis/gdal.txt
+++ b/docs/ref/contrib/gis/gdal.txt
@@ -581,6 +581,27 @@ coordinate transformation:
>>> p.wkt
"POINT (1 2)"
+ .. attribute:: is_measured
+
+ .. versionadded:: 5.1
+
+ A boolean indicating if this geometry has M coordinates.
+
+ .. method:: set_measured(value)
+
+ .. versionadded:: 5.1
+
+ A method to add or remove the M coordinate dimension.
+
+ .. code-block:: pycon
+
+ >>> p = OGRGeometry("POINT (1 2)")
+ >>> p.is_measured
+ False
+ >>> p.set_measured(True)
+ >>> p.wkt
+ "POINT M (1 2 0)"
+
.. attribute:: geom_count
Returns the number of elements in this geometry:
@@ -864,6 +885,18 @@ coordinate transformation:
>>> OGRGeometry("POINT (1 2 3)").z
3.0
+ .. attribute:: m
+
+ .. versionadded:: 5.1
+
+ Returns the M coordinate of this point, or ``None`` if the Point does not
+ have an M coordinate:
+
+ .. code-block:: pycon
+
+ >>> OGRGeometry("POINT ZM (1 2 3 4)").m
+ 4.0
+
.. class:: LineString
.. attribute:: x