nens / threedigrid

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

Channels geojson is missing width and height fields #232

Open leendertvanwolfswinkel opened 1 month ago

leendertvanwolfswinkel commented 1 month ago

For example this channel geojson: https://api.staging.3di.live/v3/threedimodels/16677/geojson/channels/download/

The last channel in the file (ID 47407) has a cross-section shape 1 (Open rectangle). So the width should be specified as a single value, but the geojson only contains empty cross_section_table_n fields. There is no "width" and "height" field.

        {
            "type": "Feature",
            "geometry": {
                "type": "LineString",
                "coordinates": [
                    [
                        5.859325,
                        50.869797
                    ],
                    [
                        5.859422,
                        50.869969
                    ]
                ]
            },
            "properties": {
                "id": 47407,
                "content_pk": 2000247,
                "code": "",
                "kcu": 2,
                "calculation_type": 102,
                "dist_calc_points": 20.0,
                "connection_node_start_pk": 2000937,
                "connection_node_end_pk": 2000936,
                "discharge_coefficient": 1.0,
                "model_type": "Channels",
                "cross_section_type_1": 1,
                "cross_section_table_1": [
                    [
                    ],
                    [
                    ]
                ],
                "cross_section_weight": 1.0,
                "cross_section_type_2": 1,
                "cross_section_table_2": [
                    [
                    ],
                    [
                    ]
                ]
            }
        }

It think these fields were there before nens/threedigrid#218 was implemented?