Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSM and BDTopo data extraction options #924

Merged
merged 3 commits into from
Jan 18, 2024
Merged

Conversation

ebocher
Copy link
Member

@ebocher ebocher commented Jan 17, 2024

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 added 3 commits January 17, 2024 15:17
- date : to query the osm db from a specific date expressed in ISO 8601
- location with 3 values to specify a point in lat/lon plus a distance
The distance to compute the bbox from a point must be at least 100 meters
@ebocher
Copy link
Member Author

ebocher commented Jan 18, 2024

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

@ebocher ebocher changed the title OSM data extraction options OSM and BDTopo data extraction options Jan 18, 2024
def tableNames = process.values()
def building = tableNames.building[0]
H2GIS h2gis = H2GIS.open("${directory + File.separator}geoclimate_chain_db;AUTO_SERVER=TRUE")
assertTrue h2gis.firstRow("select count(*) as count from $building where HEIGHT_WALL>0 and HEIGHT_ROOF>0").count > 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't be interesting to check two dates and verify that the number of buildings (for example) is different ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be but note that this test is disable because query OSM with date takes a while

@ebocher ebocher merged commit 720a7ad into orbisgis:master Jan 18, 2024
1 check passed
@ebocher ebocher deleted the osm_date branch March 26, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants