orbisgis / geoclimate

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

Add more explicit message when error #979

Open j3r3m1 opened 1 month ago

j3r3m1 commented 1 month ago

Some users have used the OSM workflow with a wrong config file (cf. below, too much brackets).

{
    "description": "Processing OSM data",
    "input": {
     "area"     : 400000,
    "locations": [[[47.1962588, 4.8664953, 47.22, 5.0]]]
    },
    "output": {
        "folder": "/path/to/file"
    },
    "parameters": {
        "rsu_indicators": {
            "indicatorUse": [
                "LCZ",
                "TEB"
            ],
            "svfSimplified": true,
            "estimateHeight": true
        }
    }
}

The error returned is the following:

[main] INFO GeoClimate - 1 osm areas will be processed [main] WARN GeoClimate - The zone [[47.1962588, 4.8664953, 47.22, 5.0]] has not been processed. Please check the log table to get more informations. Cannot execute the OSM workflow

There is very little said about the error and the user may want to get the informations that have been saved in the log. However, there is no more information about where to find the log. And then the log is not a text file but a fgb file. Thus it might be complicated to access the log for some users. Several options:

  1. Logging the error for each zone at the end of the process
  2. Give more information about where we can find the log (by default /tmp/logzones'location_of_your_configfile'.fgb) and how to open it (any GIS software reading fgb files
  3. Same as 2 but saving the log as text file
ebocher commented 2 weeks ago

Done ?

j3r3m1 commented 2 weeks ago

No options have been adopted =)