huff 1.3.5__py3-none-any.whl → 1.4.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
huff/gistools.py CHANGED
@@ -4,8 +4,8 @@
4
4
  # Author: Thomas Wieland
5
5
  # ORCID: 0000-0001-5168-9846
6
6
  # mail: geowieland@googlemail.com
7
- # Version: 1.3.5
8
- # Last update: 2025-06-03 17:24
7
+ # Version: 1.4.1
8
+ # Last update: 2025-06-16 17:44
9
9
  # Copyright (c) 2025 Thomas Wieland
10
10
  #-----------------------------------------------------------------------
11
11
 
@@ -168,8 +168,13 @@ def point_spatial_join(
168
168
  point_stat_col: str = None
169
169
  ):
170
170
 
171
+ if polygon_gdf is None:
172
+ raise ValueError("Parameter 'polygon_gdf' is None")
173
+ if point_gdf is None:
174
+ raise ValueError("Parameter 'point_gdf' is None")
175
+
171
176
  if polygon_gdf.crs != point_gdf.crs:
172
- raise ValueError (f"Coordinate reference systems of polygon and point data do not match. Polygons: {str(polygon_gdf.crs)}, points: {str(point_gdf.crs)}")
177
+ raise ValueError(f"Coordinate reference systems of polygon and point data do not match. Polygons: {str(polygon_gdf.crs)}, points: {str(point_gdf.crs)}")
173
178
 
174
179
  if polygon_ref_cols != []:
175
180
  for polygon_ref_col in polygon_ref_cols: