kj-9 / prettymapp Goto Github PK
View Code? Open in Web Editor NEWThis project forked from chrieke/prettymapp
🖼️ Create beautiful maps from OpenStreetMap data in a streamlit webapp
This project forked from chrieke/prettymapp
🖼️ Create beautiful maps from OpenStreetMap data in a streamlit webapp
currently, no cdci is setup.
setup automate testing for each push.
Currently, the Plot
class does not accept changes to the dpi; it is fixed at 1200
. However, during the iterative plotting process, this limitation results in excessive plotting time. Therefore, it should be modified either as an argument or from another location to allow for a more efficient workflow.
The function get_osm_geometries
does not support custom OSM tags. It will always extract tags that are predefined in prettymapp.settings.LC_SETTINGS
. Custom tags cannot be used with this function.
If you extract geometries using tags as follows:
lc = {
"water": {
"natural": ["water", "bay"],
"place": ["sea"],
},
}
aoi = get_aoi('shikano shima, fukuoka, japan', rectangular=True, radius=1000*10)
gdf = get_osm_geometries(aoi, lc)
fig = Plot(
df=gdf,
aoi_bounds=aoi.bounds,
draw_settings=STYLES["Peach"]
).plot_all()
Then the water area will not appear unless these tagged polygons are defined. It will be rendered only as background since "water," "bay," and "sea" are not defined as complete polygons of the world's seas.
If you use the tag "natural": ["coastline"], it will only extract lines instead of polygons (sometimes complete polygons for small islands), which is not useful to represent a water area. It is just a line, not an area.
lc = {
"coast": {
"natural": ["coastline"]
}
}
aoi = get_aoi('shikano shima, fukuoka, japan', rectangular=True, radius=1000*10)
gdf = get_osm_geometries(aoi, lc)
gdf.plot()
currently, latest version of osmnx is 1.6.0
Currently, the code is only showing the "aerodrome" polygon and "runway" line
lc = {
"air": {
"aeroway": ["aerodrome"]
},
"airway": {
"aeroway": ["runway", "taxiway", "parking_position"]
}
}
aoi = get_aoi('fukuoka airport, fukuoka, japan', rectangular=True, radius=1000)
gdf = get_osm_geometries(aoi, lc)
fig = Plot(
df=gdf,
aoi_bounds=aoi.bounds,
draw_settings=mystyle, # You might want to set specific styles here, e.g., STYLES["Peach"]
).plot_all()
But using the Overpass API with aeroway=*
tag, there is other features like taxiway which should show up in plot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.