GeoSeries with valid geometries.
If the input geometry is already valid, then it will be preserved.
In many cases, in order to create a valid geometry, the input
geometry must be split into multiple parts or multiple geometries.
If the geometry must be split into multiple parts of the same type
to be made valid, then a multi-part geometry will be returned
(e.g. a MultiPolygon).
If the geometry must be split into multiple parts of different types
to be made valid, then a GeometryCollection will be returned.
In Sedona, only the ‘structure’ method is available:
- the ‘structure’ algorithm tries to reason from the structure of the input to find the ‘correct’ repair: exterior rings bound area, interior holes exclude area. It first makes all rings valid, then shells are merged and holes are subtracted from the shells to generate valid result. It assumes that holes and shells are correctly categorized in the input geometry.
Signature
Parameters
(linework, structure)
default:"'linework'"
Algorithm to use when repairing geometry. Sedona Geopandas only supports the ‘structure’ method.
The default method is “linework” to match compatibility with Geopandas, but it must be explicitly set to
‘structure’ to use the Sedona implementation.
bool
default:"True"
For the ‘structure’ method, True will keep components that have
collapsed into a lower dimensionality. For example, a ring
collapsing to a line, or a line collapsing to a point.

