kj-9/prettymapp

Water area does not appear properly

Opened this issue · 1 comments

kj-9 commented

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

flt

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

image