FLO-2DSoftware / qgis-flo-2d-plugin

A plugin for pre-processing/post-processing FLO-2D models
5 stars 7 forks source link

1334 check that fields from shapefile and layer are of the same type #1344

Closed FLO-2DJJ closed 1 month ago

FLO-2DJJ commented 1 month ago

The Select components from shapefile layer dialog now displays items for each field that match the type of the corresponding component field type (double, integer, string).

AS an example, here Outfall Name only displays strings:

image

Or numeric fields for Fixed Stage

image

@rpachaly, to do this I made some changes to part of the code that you and I programmed. Please review it and give me your thoughts.

FLO-2DJJ commented 1 month ago

@FLO-2DKaren, @FLO-2DNoemi,

These changes should not affect the documentation. Everything is behind the user interface.

rpachaly commented 1 month ago

I've just read the code here, it looks really good! Nice feature @FLO-2DJJ!

FLO-2DJJ commented 1 month ago

Merging this PR #1344 of feature branch #1334. Not conflicts with master at this moment.