11

I am presently working with some layers containing location data for plots/parcel data. Some of the parcels have multiple use types.

Is it possible to configure the Check Box or Value Map (widgets type) so that it can allow me/user to input/choose multiple options in cases where the parcel has more than one use type?

I am using QGIS 2.18

8
+50

I found a solution like that:

  • Create a CSV file which contains use types (Parcel_Types.csv).
    File content: (example)

    TYPE
    type1
    type2
    type3
    type4
    
  • Add it using "Layer > Add Layer > Add Delimited Text Layer". Choose "No Geometry"

  • Add ParcelType field to Parcel_Layer. Field type should be the same with types in CSV. That's, since type1, type2, etc are string, therefore, type of the field should be string (Text). If values are integer (for example: type code 1, 2 instead of type1, type2) in CSV, then field type can be integer.
  • Open "Layer Properties > Fields". Set options as in the image. (choose Parcel_Types table (comes from csv) as Layer, check "Allow multiple selections")

enter image description here

  • Now you can make multiple selections for use types of parcel in "Editing Mode".

enter image description here

| improve this answer | |
  • Everything works just like you explained. Thank you very much Kadir. I tested using version 3.10.2. My primary need for multiple checks is with QField with which I also tested your answer. There a problem seems to arise with csv-format since it it is not supported. This can be bypassed by using a format which QField supports, like a shapefile for example and having that inside the mobile project as well. – Ville Koivisto Mar 10 at 13:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.