(form "01316" 
    (size 45 16)
    (heading "EXTRACT CONTOURS FROM A DTM"
    )
    (label 
        (position  2  3) 
        (text "Define the DTM to be contoured"
        )
    )
    (label 
        (position  2  4)
        (text "Layer name"
        )
    )
    (field "dtm_layer" 
        (position 19  4) 
        (display_length 20) 
        (input allowed)
        (null disallowed)
        (max_length 32)
        )
    (label 
        (position  2 6)
        (text "Define contours by "
        )
    )
    (field "object_id" 
        (position 15  6) 
        (display_length 20)
        (input allowed)
        (null disallowed)
        (max_length 32)
        )
    (field "trisolation_id" 
        (position 15  6) 
        (display_length 20)
        (input allowed)
        (null disallowed)
        (max_length 32)
        )
    (field "interval_or_range" 
        (position 19 6) 
        (display_length 8)
        (input allowed)
        (value_in "INTERVAL" "RANGE"
        )
        (default "INTERVAL")
        (translate upper) 
        (null allowed) 
        (max_length 8)
        )
    (field "Minimum contour"
        (position  2 9)
        (display_length 15)
        (foreground (user_option "form_foreground"))
        (background)
        (input disallowed)
        (value_in "Minimum contour"
        )
        (default "Minimum contour")
        (dependency (value "interval_or_range") == "INTERVAL")
    )
    (field "conmin" 
        (position 19 9) 
        (display_length 10)
        (input allowed)
        (format real_8)
        (null disallowed) 
        (max_length 10)
        (dependency (value "interval_or_range") == "INTERVAL")
        )
    (field "Maximum contour"
        (position  2 10) 
        (display_length 15)
        (foreground (user_option "form_foreground"))
        (background)
        (value_in "Maximum contour"
        )
        (default "Maximum contour")
        (dependency (value "interval_or_range") == "INTERVAL")
    )
    (field "conmax" 
        (position 19 10)
        (display_length 10)
        (input allowed)
        (dependency (value "interval_or_range") == "INTERVAL")
        (format real_8) 
        (null disallowed) 
        (max_length 10)
        (help (field "conmin"))
    )
    (field "Contour interval"
        (position  2 11) 
        (display_length 15)
        (foreground (user_option "form_foreground"))
        (background)
        (value_in "Contour interval"
        )
        (default "Contour interval")
        (dependency (value "interval_or_range") == "INTERVAL")
    )
    (field "ci" 
        (position 19 11) 
        (display_length 10) 
        (input allowed)
        (dependency (value "interval_or_range") == "INTERVAL")
        (format real_8)
        (null disallowed)
        (max_length 10)
        (help (field "conmin"))
    )
    (field "Contour Range" 
        (position 2 9) 
        (display_length 15)
        (foreground (user_option "form_foreground"))
        (background)
        (value_in "Contour range"
        )
        (default "Contour range")
        (dependency (value "interval_or_range") == "RANGE")
    )
    (field "conrng" 
        (position 19 9) 
        (display_length 16) 
        (input allowed)
        (format range)
        (dependency (value "interval_or_range") == "RANGE")
        (max_length 32)
        (null allowed)
        )
    (label 
        (position  2 13)
        (text "Contour layer"
        )
    )
    (field "new_layer" 
        (position 19 13) 
        (display_length 20) 
        (input allowed)
        (null disallowed)
        (max_length 32)
        )
    (default_buttons)
)
