Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Baston <[email protected]>
  • Loading branch information
rouault and dbaston authored Feb 7, 2025
1 parent b73a964 commit 7250220
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions swig/include/python/docs/ogr_geometry_docs.i
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,14 @@ Y: float
y coordinate of point to add.
Z: float
z coordinate of point to add. Defaults to 0
Examples
-------
>>> ogr.GeometryTypeToName(pt.GetGeometryType())
'Point'
>>> pt.AddPoint(3, 7)
>>> ogr.GeometryTypeToName(pt.GetGeometryType())
'3D Point'
";

%feature("docstring") AddPoint_2D "
Expand All @@ -936,4 +944,12 @@ Y: float
y coordinate of point to add.
";

Examples
--------
>>> pt = ogr.Geometry(ogr.wkbPoint)
>>> ogr.GeometryTypeToName(pt.GetGeometryType())
'Point'
>>> pt.AddPoint_2D(3, 7)
>>> ogr.GeometryTypeToName(pt.GetGeometryType())
'Point'
}

0 comments on commit 7250220

Please sign in to comment.