Skip to content

Commit

Permalink
Doc: clarify units and directional distortion of -simplify and -segme…
Browse files Browse the repository at this point in the history
…ntize (OSGeo#10087)

* Update gdal_footprint.rst adding periods

* Update ogr2ogr.rst clarifying units
  • Loading branch information
jidanni authored May 31, 2024
1 parent 123cad1 commit 603e800
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions doc/source/programs/gdal_footprint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ proper mask bands.
consecutive points of the output geometry.
The unit of the distance is in pixels if :option:`-t_cs` equals ``pixel``,
or otherwise in georeferenced units of the source raster.
This option is applied before the reprojection implied by :option:`-t_srs`
This option is applied before the reprojection implied by :option:`-t_srs`.

.. option:: -simplify <value>

The specified value of this option is the tolerance used to merge
consecutive points of the output geometry using the
:cpp:func:`OGRGeometry::Simplify` method
:cpp:func:`OGRGeometry::Simplify` method.
The unit of the distance is in pixels if :option:`-t_cs` equals ``pixel``,
or otherwise in georeferenced units of the target vector dataset.
This option is applied after the reprojection implied by :option:`-t_srs`
This option is applied after the reprojection implied by :option:`-t_srs`.

.. option:: -min_ring_area <value>

Expand Down
12 changes: 11 additions & 1 deletion doc/source/programs/ogr2ogr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,19 @@ output coordinate system or even reprojecting the features during translation.
topology per feature, in particular for polygon geometries, but not for a
whole layer.

The specified value of this option is the tolerance used to merge
consecutive points of the output geometry using the
:cpp:func:`OGRGeometry::Simplify` method
The unit of the distance is in
georeferenced units of the source vector dataset.
This option is applied before the reprojection implied by :option:`-t_srs`

.. option:: -segmentize <max_dist>

Maximum distance between 2 nodes. Used to create intermediate points.
The specified value of this option is the maximum distance between two
consecutive points of the output geometry before intermediate points are added.
The unit of the distance is georeferenced units of the source raster.
This option is applied before the reprojection implied by :option:`-t_srs`

.. option:: -makevalid

Expand Down

0 comments on commit 603e800

Please sign in to comment.