Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns a Series of dtype(‘bool’) with value True for geometries that are valid.
Series
dtype('bool')
True
>>> from sedona.spark.geopandas import GeoSeries >>> from shapely.geometry import Polygon >>> s = GeoSeries( ... [ ... Polygon([(0, 0), (1, 1), (0, 1)]), ... Polygon([(0,0), (1, 1), (1, 0), (0, 1)]), # bowtie geometry ... Polygon([(0, 0), (2, 2), (2, 0)]), ... None ... ] ... ) >>> s 0 POLYGON ((0 0, 1 1, 0 1, 0 0)) 1 POLYGON ((0 0, 1 1, 1 0, 0 1, 0 0)) 2 POLYGON ((0 0, 2 2, 2 0, 0 0)) 3 None dtype: geometry
>>> s.is_valid 0 True 1 False 2 True 3 False dtype: bool
GeoSeries.is_valid: pspd.Series
Was this page helpful?