Skip to content

Commit

Permalink
Merge pull request #60 from wri/fix/osm_layer
Browse files Browse the repository at this point in the history
upgrade osmnx version
  • Loading branch information
weiqi-tori authored Aug 14, 2024
2 parents cd7cd51 + 6018aa8 commit 5378750
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions city_metrix/layers/open_street_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5378750

Please sign in to comment.