Gdf
Functions
|
Controleert of alle geometrieën van een valide type zijn. |
Converts all MultiLineString geometries with a single line that single LineString. To simplify it. |
|
Controleert of alle LineStrings aaneengesloten zijn. |
|
|
Validates if the given GeoDataFrame has only unique point-locations. If not, it returns a failure message |
Module Contents
- validate_geometry_types(gdf, allowed_types=None)
Controleert of alle geometrieën van een valide type zijn.
- Parameters:
gdf (geopandas.GeoDataFrame)
allowed_types
- Returns:
1st item: Boolean if valid 2nd item: Invalid geometry types
- Return type:
Tuple[bool, List[str]]
- convert_mls_geom_column_to_ls(gdf)
Converts all MultiLineString geometries with a single line that single LineString. To simplify it.
- Parameters:
gdf (geopandas.GeoDataFrame)
- Return type:
geopandas.GeoDataFrame
- validate_vakindeling_merges_to_single_linestring(gdf)
Controleert of alle LineStrings aaneengesloten zijn.
- Parameters:
gdf (geopandas.GeoDataFrame)
- Return type:
Tuple[bool, type]
- validate_unique_point_locations(gdf, id_column=None, return_coords=False)
Validates if the given GeoDataFrame has only unique point-locations. If not, it returns a failure message with in there the non-unique ids.
- Parameters:
gdf (geopandas.GeoDataFrame)
id_column (str | None) – Specifies which column identifies each point. If None, index will be used as identifiers.
return_coords (bool) – If True, the failure message will also include the RD-coordinates of the points.
- Returns:
- Return type:
Tuple[bool, str]