Skip to content

Instantly share code, notes, and snippets.

@rgamez
Last active January 19, 2016 17:41
Show Gist options
  • Save rgamez/accb2404e7f5ebad105c to your computer and use it in GitHub Desktop.
Save rgamez/accb2404e7f5ebad105c to your computer and use it in GitHub Desktop.
Add image/camera field
{
"title": "OPAL Tree Health",
"geoms": [
"point"
],
"layout": {
"elements": [
{
"type": "section",
"id": "form-section-1",
"title": "A. Start surveying",
"fields": [
"form-text-1",
"form-image-1",
"form-radio-1",
"form-radio-2",
"form-radio-3",
"form-radio-4",
"form-radio-5"
]
},
{
"type": "section",
"id": "form-section-2",
"title": "B. Identification",
"fields": [
"form-select-1",
"form-dtree-1",
"form-warning-1"
]
},
{
"type": "section",
"id": "form-section-3",
"title": "C. Tree characteristics",
"fields": [
"form-range-1",
"form-range-2",
"form-radio-6"
]
},
{
"type": "section",
"id": "form-section-4",
"title": "Crown",
"fields": [
"form-radio-7",
"form-radio-8",
"form-radio-9",
"form-radio-10"
]
},
{
"type": "section",
"id": "form-section-5",
"title": "Leaves",
"fields": [
"form-checkbox-1",
"form-radio-11",
"form-checkbox-2",
"form-radio-12",
"form-checkbox-3"
]
},
{
"type": "section",
"id": "form-section-6",
"title": "Wildlife",
"fields": [
"form-checkbox-4"
]
}
]
},
"fields": [
{
"id": "form-text-1",
"type": "text",
"label": "1. Date of survey",
"required": true,
"persistent": true,
"properties": {
"prefix": "record",
"placeholder": "Place default text here (if any)",
"max-chars": "30"
}
},
{
"id": "form-image-1",
"type": "image",
"label": "Take a photo",
"required": true,
"persistent": false,
"properties": {
"los": false,
"multi-image": false
}
},
{
"id": "form-radio-1",
"type": "radio",
"label": "2. Who are you doing the Tree Health Survey with today?",
"required": true,
"persistent": true,
"properties": {
"other": false,
"options": [
{
"value": "Primary school"
},
{
"value": "Secondary school"
},
{
"value": "Youth group"
},
{
"value": "Adult volunteer group"
},
{
"value": "Friends or family"
},
{
"value": "College/university"
},
{
"value": "Other"
}
]
}
},
{
"id": "form-radio-2",
"type": "radio",
"label": "3. Are you involved in working with trees or forestry?",
"required": true,
"persistent": true,
"properties": {
"other": false,
"options": [
{
"value": "No"
},
{
"value": "Yes, as part of volunteer group or society"
},
{
"value": "Yes, I work in the industry"
}
]
}
},
{
"id": "form-radio-3",
"type": "radio",
"label": "5. Which of these best describes your survey area?",
"required": true,
"persistent": true,
"properties": {
"other": false,
"options": [
{
"value": "Street",
"image": {
"src": "5a.jpg"
}
},
{
"value": "Garden",
"image": {
"src": "5b.jpg"
}
},
{
"value": "Street",
"image": {
"src": "5a.jpg"
}
},
{
"value": "Street",
"image": {
"src": "5a.jpg"
}
},
{
"value": "Street",
"image": {
"src": "5a.jpg"
}
},
{
"value": "Street",
"image": {
"src": "5a.jpg"
}
},
{
"value": "Garden",
"image": {
"src": "5b.jpg"
}
},
{
"value": "School",
"image": {
"src": "5c.jpg"
}
},
{
"value": "Park",
"image": {
"src": "5d.jpg"
}
},
{
"value": "Open field",
"image": {
"src": "5e.jpg"
}
},
{
"value": "Hedge",
"image": {
"src": "5f.jpg"
}
},
{
"value": "Woodland edge",
"image": {
"src": "5g.jpg"
}
},
{
"value": "Inside woodland",
"image": {
"src": "5h.jpg"
}
},
{
"value": "other"
}
]
}
},
{
"id": "form-radio-4",
"type": "radio",
"label": "6. What is the main ground cover at the base of the tree? Choose one option.",
"required": true,
"persistent": true,
"properties": {
"other": false,
"options": [
{
"value": "Grass or other plants",
"image": {
"src": "6a.jpg"
}
},
{
"value": "Bare soil",
"image": {
"src": "6b.jpg"
}
},
{
"value": "Hard surface (like pavement)",
"image": {
"src": "6c.jpg"
}
},
{
"value": "Fallen leaves",
"image": {
"src": "6d.jpg"
}
}
]
}
},
{
"id": "form-radio-5",
"type": "radio",
"label": "7. If there are fallen leaves beneath the tree, how many are there?",
"required": true,
"persistent": true,
"properties": {
"other": false,
"options": [
{
"value": "A few",
"image": {
"src": "7a.jpg"
}
},
{
"value": "A lot",
"image": {
"src": "7b.jpg"
}
},
{
"value": "Ground is completely covered",
"image": {
"src": "7c.jpg"
}
}
]
}
},
{
"id": "form-select-1",
"type": "select",
"label": "8. Tree species",
"required": false,
"persistent": false,
"properties": {
"options": [
{
"value": "Alder"
},
{
"value": "Ash"
},
{
"value": "Beech"
},
{
"value": "Birch"
},
{
"value": "Cherry"
},
{
"value": "Conifers"
},
{
"value": "Crab Apple"
},
{
"value": "Elder"
},
{
"value": "Elm"
},
{
"value": "Hawthorn"
},
{
"value": "Hazel"
},
{
"value": "Hornbeam"
},
{
"value": "Horse Chestnut"
},
{
"value": "Lime"
},
{
"value": "London Plane"
},
{
"value": "Maple"
},
{
"value": "Oak"
},
{
"value": "Poplar"
},
{
"value": "Rowan"
},
{
"value": "Sweet Chestnut"
},
{
"value": "Sycamore"
},
{
"value": "Whitebeam"
},
{
"value": "Willow"
},
{
"value": "Other"
}
]
}
},
{
"id": "form-dtree-1",
"type": "dtree",
"label": "Opal",
"required": true,
"persistent": false,
"properties": {
"filename": "opal/opal-1.json"
}
},
{
"id": "form-warning-1",
"type": "warning",
"label": "Safe fieldwork",
"required": false,
"persistent": false,
"properties": {
"placeholder": "Trees and woodland in the"
}
},
{
"id": "form-range-1",
"type": "range",
"label": "9. Measure the girth (circumference) of the trunk at 1.3 metres (130cm) above the ground.",
"required": true,
"persistent": true,
"properties": {
"step": "0.1",
"min": "0",
"max": "10"
}
},
{
"id": "form-range-2",
"type": "range",
"label": "10. Measure the height of the tree.",
"required": true,
"persistent": true,
"properties": {
"step": "0.1",
"min": "0",
"max": "50"
}
},
{
"id": "form-radio-6",
"type": "radio",
"label": "11. Is the tree taller or shorter than most of the other trees nearby?",
"required": true,
"persistent": true,
"properties": {
"other": false,
"options": [
{
"value": "Shorter than most"
},
{
"value": "Taller than most"
},
{
"value": "Same height as most"
},
{
"value": "No other trees nearby"
}
]
}
},
{
"id": "form-radio-7",
"type": "radio",
"label": "12. Which of these best shows the shape of the tree?",
"required": true,
"persistent": true,
"properties": {
"other": false,
"options": [
{
"value": "Spreading",
"image": {
"src": "12a.png"
}
},
{
"value": "Oval",
"image": {
"src": "12b.png"
}
},
{
"value": "Fan",
"image": {
"src": "12c.png"
}
},
{
"value": "Column",
"image": {
"src": "12d.png"
}
},
{
"value": "Cone",
"image": {
"src": "12e.png"
}
}
]
}
},
{
"id": "form-radio-8",
"type": "radio",
"label": "13. Stand underneath the tree, next to the trunk and look up. How much of the view is made up of leaves? Choose the closest fit from the five options.",
"required": true,
"persistent": true,
"properties": {
"other": false,
"options": [
{
"value": "No leaves",
"image": {
"src": "13a.jpg"
}
},
{
"value": "25%",
"image": {
"src": "13b.jpg"
}
},
{
"value": "50%",
"image": {
"src": "13c.jpg"
}
},
{
"value": "75%",
"image": {
"src": "13d.jpg"
}
},
{
"value": "All leaves",
"image": {
"src": "13e.jpg"
}
}
]
}
},
{
"id": "form-radio-9",
"type": "radio",
"label": " Can you see any dead wood (branches that have no leaves or twigs on them)?",
"required": true,
"persistent": true,
"properties": {
"other": false,
"options": [
{
"value": "No"
},
{
"value": "Yes"
}
]
}
},
{
"id": "form-radio-10",
"type": "radio",
"label": "14. How much dead wood is there?",
"required": false,
"persistent": false,
"properties": {
"other": false,
"options": [
{
"value": "Less than a quarter of the tree"
},
{
"value": "Between one quarter and one half"
},
{
"value": "Between one half and three quarters"
},
{
"value": "More than three quarters"
}
]
}
},
{
"id": "form-checkbox-1",
"type": "checkbox",
"label": "15. What types of leaf browning can you see? Tick all that apply",
"required": false,
"persistent": false,
"properties": {
"other": false,
"options": [
{
"value": "Brown leaf edges",
"image": {
"src": "15a.png"
}
},
{
"value": "Brown spots",
"image": {
"src": "15b.png"
}
},
{
"value": "Leaves all brown",
"image": {
"src": "15c.png"
}
},
{
"value": "None",
"image": {
"src": "15d.png"
}
}
]
}
},
{
"id": "form-radio-11",
"type": "radio",
"label": "16. If there is leaf browing, how much can you see on the tree?",
"required": false,
"persistent": false,
"properties": {
"other": false,
"options": [
{
"value": "Less than a quarter of the tree"
},
{
"value": "Between one quarter and one half"
},
{
"value": "Between one half and three quarters"
},
{
"value": "More than three quarters"
}
]
}
},
{
"id": "form-checkbox-2",
"type": "checkbox",
"label": "17. What types of leaf yellowing can you see? Tick all that apply.",
"required": false,
"persistent": false,
"properties": {
"other": false,
"options": [
{
"value": "Yellow leaf edges",
"image": {
"src": "17a.png"
}
},
{
"value": "Yellow spots",
"image": {
"src": "17b.png"
}
},
{
"value": "Leaves all yellow",
"image": {
"src": "17c.png"
}
},
{
"value": "None",
"image": {
"src": "17d.png"
}
}
]
}
},
{
"id": "form-radio-12",
"type": "radio",
"label": "18. If there is leaf yellowing, how much can you see on the tree?",
"required": false,
"persistent": false,
"properties": {
"other": false,
"options": [
{
"value": "Less than a quarter of the tree"
},
{
"value": "Between one quarter and one half"
},
{
"value": "Between one half and three quarters"
},
{
"value": "More than three quarters"
}
]
}
},
{
"id": "form-checkbox-3",
"type": "radio",
"label": "19. Can you see any of the following signs of insect damage on the leaves?",
"required": false,
"persistent": false,
"properties": {
"other": false,
"options": [
{
"value": "Leaf holes: holes all the way through the leaf",
"image": {
"src": "19a.png"
}
},
{
"value": "Leaf mining: the upper and lower layers of the leaf are intact but the green tissue inside has turned brown or disappeared",
"image": {
"src": "19b.png"
}
},
{
"value": "Leaf galls: bumps and growths on leaves",
"image": {
"src": "19c.png"
}
}
]
}
},
{
"id": "form-checkbox-4",
"type": "checkbox",
"label": "20. It is useful to know how the tree supports biodiversity. Record any animals, signs of animal activity, plants or fungi.",
"required": false,
"persistent": false,
"properties": {
"other": false,
"options": [
{
"value": "Birds or birds’ nests"
},
{
"value": "Squirrels"
},
{
"value": "A large hollow in the trunk"
},
{
"value": "Moss / lichens / algae"
},
{
"value": "Ivy"
},
{
"value": "Fungi"
},
{
"value": "Other"
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment