kj-9 / prettymapp

🖼️ Create beautiful maps from OpenStreetMap data in a streamlit webapp
0 stars 0 forks source link

Plot airport #8

Open kj-9 opened 1 year ago

kj-9 commented 1 year ago

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()

image

But using the Overpass API with aeroway=* tag, there is other features like taxiway which should show up in plot.

スクリーンショット 2023-07-30 16 32 56
kj-9 commented 1 year ago

It appears that the linestring needs to be defined with a specific width, as here for streets.