Skip to content

Commit

Permalink
Specify strict versus mild canonical form...
Browse files Browse the repository at this point in the history
  • Loading branch information
theroggy committed Feb 16, 2024
1 parent bfda9b4 commit d0bb102
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shapely/_geometry.py
Expand Up @@ -738,7 +738,7 @@ def set_precision(geometry, grid_size, mode="valid_output", **kwargs):
precision will be attached to the operation outputs.
* input geometries should be geometrically valid; unexpected results may
occur if input geometries are not.
* the geometry returned will be in :ref:`canonical form <canonical-form>`.
* the geometry returned will be in :ref:`mild canonical form <canonical-form>`.
* returns None if geometry is None.
Parameters
Expand Down
4 changes: 2 additions & 2 deletions shapely/constructive.py
Expand Up @@ -592,9 +592,9 @@ def make_valid(geometry, method="linework", keep_collapsed=True, **kwargs):

@multithreading_enabled
def normalize(geometry, **kwargs):
"""Converts Geometry to normal form (or canonical form).
"""Converts Geometry to strict normal form (or canonical form).
In :ref:`canonical form <canonical-form>`, the coordinates, rings of a polygon and
In :ref:`strict canonical form <canonical-form>`, the coordinates, rings of a polygon and
parts of multi geometries are ordered consistently. Typically useful for testing
purposes (for example in combination with ``equals_exact``).
Expand Down

0 comments on commit d0bb102

Please sign in to comment.