orbisgis / geoclimate

Geospatial processing toolbox for environmental and climate studies
GNU Lesser General Public License v3.0
59 stars 15 forks source link

OSM and BDTopo data extraction options #924

Closed ebocher closed 7 months ago

ebocher commented 7 months ago

This PR introduces two new options to process OSM data

  1. date : to query the osm db from a specific date expressed in ISO 8601

  2. location with 3 values to specify a point in lat/lon plus a distance

Pseudo config file for option 1

 [
             "input"       : [
                        "locations": [[43.726898,7.298452,43.727677,7.299632]],
                        "date":"2015-12-31T19:20:00Z"],
                "output"      : [
                        "folder": ["path"  : directory,
                                   "tables": ["building", "zone"]]],
                "parameters"  :
                        ["distance"       : 0,
                         rsu_indicators: ["indicatorUse" : ["LCZ"]]
                        ]
        ]

Pseudo config file for option 2

[
                "input"       : [
                        "locations": [[43.726898,7.298452,100]]],
                "output"      : [
                        "folder": ["path"  : directory,
                                   "tables": ["building", "zone"]]],
                "parameters"  :
                        [
                         rsu_indicators: ["indicatorUse" : ["LCZ"]]
                        ]
        ]
ebocher commented 7 months ago

Same option 2 for bdtopo module plus add a constraint to the distance. It must be equals or greater than 100 meters.