Spaces:
Sleeping
Sleeping
dn commited on
Commit ·
a67b6ba
1
Parent(s): d04bc41
fix addition_du inflation
Browse files- shared/pipelines/sb79.py +0 -1
- shared/utils/geoprocessing.py +10 -9
shared/pipelines/sb79.py
CHANGED
|
@@ -126,7 +126,6 @@ def compute_scag_density(scag_parcels: gpd.GeoDataFrame) -> gpd.GeoDataFrame:
|
|
| 126 |
"2600": 0.2,
|
| 127 |
"2700": 0.2,
|
| 128 |
"1900": 0,
|
| 129 |
-
"7777": 0,
|
| 130 |
"1500": 0,
|
| 131 |
"1233": 0,
|
| 132 |
"1210": 0,
|
|
|
|
| 126 |
"2600": 0.2,
|
| 127 |
"2700": 0.2,
|
| 128 |
"1900": 0,
|
|
|
|
| 129 |
"1500": 0,
|
| 130 |
"1233": 0,
|
| 131 |
"1210": 0,
|
shared/utils/geoprocessing.py
CHANGED
|
@@ -30,15 +30,16 @@ def clip_to_buffer_rings(
|
|
| 30 |
|
| 31 |
features_reproj = features_gdf.to_crs(buffer_crs)
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
|
|
| 42 |
|
| 43 |
rings = []
|
| 44 |
for outer, inner in ring_definitions:
|
|
|
|
| 30 |
|
| 31 |
features_reproj = features_gdf.to_crs(buffer_crs)
|
| 32 |
|
| 33 |
+
clipped = {
|
| 34 |
+
dist: gpd.overlay(
|
| 35 |
+
gpd.sjoin(features_reproj, buf, how="inner", predicate="intersects").drop(
|
| 36 |
+
columns=["index_right"], errors="ignore"
|
| 37 |
+
),
|
| 38 |
+
geom_buffers[dist],
|
| 39 |
+
how="intersection",
|
| 40 |
+
)
|
| 41 |
+
for dist, buf in attr_buffers.items()
|
| 42 |
+
}
|
| 43 |
|
| 44 |
rings = []
|
| 45 |
for outer, inner in ring_definitions:
|