Giter Site home page Giter Site logo

prettymapp's People

Contributors

chrieke avatar jrieke avatar kj-9 avatar tdiekel avatar

prettymapp's Issues

Setup ci

currently, no cdci is setup.

setup automate testing for each push.

set dpi from arg

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.

make OSM tags can be passed as arg

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.

Water area does not appear properly

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

Plot airport

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.