summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2024-01-17 06:48:45 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-01-18 10:48:40 +0100
commitcfacd69ab81c37564799a7b8a0a765e3c1f40941 (patch)
tree2633d6af5f3690a7e5bd7ef98b18a136377b2d07 /docs/ref
parent12c71bff8300f5b1252dab099f4753dc86903fbd (diff)
Refs #35058 -- Added is_3d and set_3d() to OGRGeometry.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/gis/gdal.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/ref/contrib/gis/gdal.txt b/docs/ref/contrib/gis/gdal.txt
index c0221a17a9..c98c76cd10 100644
--- a/docs/ref/contrib/gis/gdal.txt
+++ b/docs/ref/contrib/gis/gdal.txt
@@ -556,6 +556,27 @@ coordinate transformation:
Returns or sets the coordinate dimension of this geometry. For example, the
value would be 2 for two-dimensional geometries.
+ .. attribute:: is_3d
+
+ .. versionadded:: 5.1
+
+ A boolean indicating if this geometry has Z coordinates.
+
+ .. method:: set_3d(value)
+
+ .. versionadded:: 5.1
+
+ A method that adds or removes the Z coordinate dimension.
+
+ .. code-block:: pycon
+
+ >>> p = OGRGeometry("POINT (1 2 3)")
+ >>> p.is_3d
+ True
+ >>> p.set_3d(False)
+ >>> p.wkt
+ "POINT (1 2)"
+
.. attribute:: geom_count
Returns the number of elements in this geometry: