nens / threedigrid

grid administration for 3Di models
Other
9 stars 0 forks source link

Include exchange level in breaches GeoJSON #219

Closed leendertvanwolfswinkel closed 2 months ago

leendertvanwolfswinkel commented 4 months ago

There is a field levl, but the value for this field is not the exchange level. Perhaps that is just it?

leendertvanwolfswinkel commented 4 months ago

https://github.com/nens/nens-frontends/issues/1673

daanvaningen commented 3 months ago

levl is the line which can be used to extract the exhange level from. In the geojson export I implemented that we make this mapping and so levl will contain the actual exchange level in the geojson export.

leendertvanwolfswinkel commented 2 months ago

@daanvaningen I tested it as follows:

It looks like the levl is still the ID, not the exchange level:

{
         "type":"Feature",
         "geometry":{
            "type":"LineString",
            "coordinates":[
               [
                  5.748287,
                  50.961255
               ],
               [
                  5.748834,
                  50.962832
               ]
            ]
         },
         "properties":{
            "id":1,
            "code":"new",
            "display_name":"meers_bovenstrooms",
            "content_pk":1,
            "levmat":1,
            "levbr":3.8,
            "kcu":null,
            "levl":12506,
            "coordinates":[
               5.748748612453184,
               50.962584956171234
            ],
            "model_type":"Breaches"
         }
      }