mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-09-09 05:30:52 +02:00
Compare commits
7 Commits
ccc00b7fab
...
261f348617
Author | SHA1 | Date | |
---|---|---|---|
|
261f348617 | ||
|
2da2395112 | ||
|
4c530c6491 | ||
|
c090ade075 | ||
|
7343fc502d | ||
|
68323c567e | ||
|
ea297cc88e |
@@ -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.
|
- layers: A dictionary of OpenStreetMap layers to fetch.
|
||||||
- Keys: layer names (arbitrary)
|
- Keys: layer names (arbitrary)
|
||||||
|
@@ -157,6 +157,7 @@ def get_gdf(
|
|||||||
if layer in ["streets", "railway", "waterway"]:
|
if layer in ["streets", "railway", "waterway"]:
|
||||||
graph = ox.graph_from_polygon(
|
graph = ox.graph_from_polygon(
|
||||||
bbox,
|
bbox,
|
||||||
|
retain_all=True,
|
||||||
custom_filter=custom_filter,
|
custom_filter=custom_filter,
|
||||||
truncate_by_edge=True,
|
truncate_by_edge=True,
|
||||||
)
|
)
|
||||||
|
2
requirements.txt
Executable file → Normal file
2
requirements.txt
Executable file → Normal file
@@ -1,5 +1,5 @@
|
|||||||
numpy>=1.20,<1.25
|
numpy>=1.20,<1.25
|
||||||
matplotlib>=3.9.0
|
matplotlib>=3.9.0
|
||||||
shapely>=2.0.0
|
shapely>=2.0.0
|
||||||
osmnx>=1.9.3
|
osmnx>=1.9.3,<2.0
|
||||||
ipykernel>=6.29.5
|
ipykernel>=6.29.5
|
2
setup.py
2
setup.py
@@ -7,7 +7,7 @@ presets_dir = os.path.abspath(os.path.join(os.path.pardir, "presets"))
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="prettymaps",
|
name="prettymaps",
|
||||||
version="v1.3.0",
|
version="v1.3.2",
|
||||||
description="A simple python library to draw pretty maps from OpenStreetMap data",
|
description="A simple python library to draw pretty maps from OpenStreetMap data",
|
||||||
long_description=parent_dir.joinpath("README.md").read_text(),
|
long_description=parent_dir.joinpath("README.md").read_text(),
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
Reference in New Issue
Block a user