7 Commits

Author SHA1 Message Date
Reid Gubler
261f348617 Merge ea297cc88e into 2da2395112 2025-01-13 11:59:37 +01:00
Marcelo de Oliveira Rosa Prates
2da2395112 Update setup.py 2025-01-12 13:40:30 -03:00
Marcelo de Oliveira Rosa Prates
4c530c6491 Merge pull request #129 from HalFrgrd/patch-1
Use `retain_all` when fetching graph
2025-01-12 13:39:29 -03:00
Marcelo Prates
c090ade075 Changed version number 2025-01-12 13:28:57 -03:00
C4K3
7343fc502d Fix osmnx dependency to version 1
Without this it will try to install osmnx version 2, which had breaking
changes and causes prettymaps to fail with the error
```
AttributeError: module 'osmnx' has no attribute 'project_gdf'. Did you mean: 'project_graph'?
```
2024-12-26 06:27:34 -08:00
HalFrgrd
68323c567e Use retain_all when fetching graph 2024-07-06 14:16:02 +01:00
Reid Gubler
ea297cc88e Fixed Typo in README.md
fixed a typo
2022-12-01 09:38:43 -07:00
4 changed files with 4 additions and 3 deletions

View File

@@ -211,7 +211,7 @@ prettymaps.preset('default')
Insted of using the default configuration you can customize several parameters. The most important are:
Instead of using the default configuration you can customize several parameters. The most important are:
- layers: A dictionary of OpenStreetMap layers to fetch.
- Keys: layer names (arbitrary)

View File

@@ -157,6 +157,7 @@ def get_gdf(
if layer in ["streets", "railway", "waterway"]:
graph = ox.graph_from_polygon(
bbox,
retain_all=True,
custom_filter=custom_filter,
truncate_by_edge=True,
)

2
requirements.txt Executable file → Normal file
View File

@@ -1,5 +1,5 @@
numpy>=1.20,<1.25
matplotlib>=3.9.0
shapely>=2.0.0
osmnx>=1.9.3
osmnx>=1.9.3,<2.0
ipykernel>=6.29.5

View File

@@ -7,7 +7,7 @@ presets_dir = os.path.abspath(os.path.join(os.path.pardir, "presets"))
setup(
name="prettymaps",
version="v1.3.0",
version="v1.3.2",
description="A simple python library to draw pretty maps from OpenStreetMap data",
long_description=parent_dir.joinpath("README.md").read_text(),
long_description_content_type="text/markdown",