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 +8 -3
- huff/models.py +622 -75
- huff/ors.py +2 -2
- huff/osm.py +59 -42
- huff/tests/data/Haslach_new_supermarket.cpg +1 -0
- huff/tests/data/Haslach_new_supermarket.dbf +0 -0
- huff/tests/data/Haslach_new_supermarket.prj +1 -0
- huff/tests/data/Haslach_new_supermarket.qmd +26 -0
- huff/tests/data/Haslach_new_supermarket.shp +0 -0
- huff/tests/data/Haslach_new_supermarket.shx +0 -0
- huff/tests/tests_huff.py +84 -32
- {huff-1.3.5.dist-info → huff-1.4.1.dist-info}/METADATA +9 -3
- {huff-1.3.5.dist-info → huff-1.4.1.dist-info}/RECORD +15 -9
- {huff-1.3.5.dist-info → huff-1.4.1.dist-info}/WHEEL +0 -0
- {huff-1.3.5.dist-info → huff-1.4.1.dist-info}/top_level.txt +0 -0
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.
|
8
|
-
# Last update: 2025-06-
|
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
|
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:
|