From 6018aa823357dbb4ad0b8a1e319e621e95efe586 Mon Sep 17 00:00:00 2001 From: weiqi-tori Date: Tue, 13 Aug 2024 16:49:12 +0800 Subject: [PATCH] upgrade osmnx version --- city_metrix/layers/open_street_map.py | 7 ------- environment.yml | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/city_metrix/layers/open_street_map.py b/city_metrix/layers/open_street_map.py index a56ff6b..8a32936 100644 --- a/city_metrix/layers/open_street_map.py +++ b/city_metrix/layers/open_street_map.py @@ -54,10 +54,3 @@ def get_data(self, bbox): osm_feature = osm_feature.reset_index()[keep_col] return osm_feature - - def write(self, output_path): - self.data['bbox'] = str(self.data.total_bounds) - self.data['osm_class'] = str(self.osm_class.value) - - # Write to a GeoJSON file - self.data.to_file(output_path, driver='GeoJSON') diff --git a/environment.yml b/environment.yml index 7e05978..24ec040 100644 --- a/environment.yml +++ b/environment.yml @@ -13,7 +13,7 @@ dependencies: - xarray-spatial=0.3.7 - xee=0.0.3 - utm=0.7.0 - - osmnx=1.8.1 + - osmnx=1.9.0 - dask[complete]=2023.11.0 - matplotlib=3.8.2 - jupyterlab=4.0.10