Opened 18 months ago

Last modified 17 months ago

#27550 assigned New feature

add version of GEOSGeometry.normalize() that returns new geometry

Reported by: Sergey Fedoseev Owned by: Sergey Fedoseev
Component: GIS Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Sergey Fedoseev)

GEOSGeometry.normalize() normalizes geometry in-place. In some cases it would be more convenient to have a cloned normalized geometry for the code conciseness.
We could add clone kwarg to this method similarly to GEOSGeometry.transform() or we could add the normalized property.

Change History (4)

comment:1 Changed 18 months ago by Sergey Fedoseev

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:2 Changed 18 months ago by Sergey Fedoseev

Description: modified (diff)

comment:3 Changed 18 months ago by Claude Paroz

I'm not sure. Could you audit other methods and tell us if the use case could be applied to other methods? Then we might better recommend using the clone() method before normalizing the geometry.

comment:4 Changed 17 months ago by Tim Graham

Triage Stage: UnreviewedAccepted

Accepting the problem, even if the solution is undecided.

Note: See TracTickets for help on using tickets.
Back to Top