Skip to content

v4.10

Compare
Choose a tag to compare
@sboivinsystra sboivinsystra released this 16 Oct 21:37
· 528 commits to master since this release
8cbb436

What's Changed

Description

1) CSV page

New csv page. all csv in inputs and outputs are displayed here.
Sorting values available.

image

2) Raster layer

The preset saved in the Result page are now available to display on the main map.
You can then show the population Density while editing (for example)

image

3) Result Maps

You can now color layers based on a category (string field)
Also, if a properties contain Hex colors (#2a57a1 for example), it will be used.
Color scale were fixed (bug in log and sqrt). some were added. and the width is now also using the selected scale.

4) Field Choice

in the root dir of a project. you can add "attributesChoices.json" This gives choices for PT attributes and/or road.
ex:

{
    "pt":{
       
    },
    "road":{
       "oneway":[
          "0",
          "1"
       ],
       "cycleway":[
          "yes",
          "no",
          "shared"
       ],
       "cycleway_reverse":[
          "yes",
          "no",
          "shared"
       ],
       "highway":[
          "motorway",
         "residential"
       ]
    }
 }

image

4) Step function Choice (backend)

In the step function definition, you can now add a Choice.

"Choice": {
      "Type": "Choice",
      "Choices": [
        {
          "Variable": "$.choice",
          "StringEquals": "comparision",
          "Next": "STEP 2"
        }
      ],
      "Default": "STEP 1"
    },

You can have more than 2 choices. The quendi front-end will automaticaly fetch all the choices and gives a choice un the Run page Stepper.

You can customize the parameters for each Choices with the "model" key. it is set to "default" if none is provided.

[
   {
      "info": "Default model",
      "model": "default"
   },
   {
      "info": "comparision model",
      "model": "comparision"
   },
   {
      "category": "general",
      "model": "default",
      "params": [
         {
            "text": "param 1",
            "value": 500,
            "type": "Number",
            "units": "unit",
            "hint": "hint 1",
            "rules": [
               "required"
            ],
            "name": "param 1"
         }
      ]
   },
   {
      "category": "general",
      "model": "comparision",
      "params": [
         {
            "text": "param comparision",
            "value": 500,
            "type": "Number",
            "units": "unit",
            "hint": "hint for this param",
            "rules": [
               "required"
            ],
            "name": "param comparision"
         }
      ]
   }
]

Finally, for a parameters needing a list of scenario (comparing scenarios for example). The special key "items": "$scenarios", can be used to fetch the list of scenario in the front-end and display them as chocies.

{
      "category": "general",
      "model": "comparision",
      "params": [
         {
            "text": "scenarios",
            "value": [],
            "type": "String",
            "items": "$scenarios",
            "hint": "Scenarios à comparer",
            "rules": [
               "required"
            ],
            "name": "scenarios"
         }
      ]
   }

For example. here we have Default or Result
image

5) .lock to lock a scenario

simply add a .lock empty file at the root dir of a scenario to lock it in the front end.

Full Changelog: v4.9.1...v4.10