Following steps in this article you will create sample environmental survey from scratch. The whole idea is to automatically display a screen of preset drop-down lists when button ‘Add Point’ is pressed:
1. Survey purpose:
The purpose of the survey is to gather the trees distribution in public park including the height of the trees.
We need also to get at least one picture for each asset.
2. Creating set of attributes
To create new set of attributes please open the navigation drawer and choose ‘Manage Attributes’ option, then press the ‘Add’ icon in the top right corner:
To add new fields ‘Species’ and ‘Height’ we need to edit the attribute properties. Please choose the name of recently added item and then click the ‘Pencil’ icon from the context menu.
Note: Field is like a category for the set of values e.g. in our example we need to create 2 fields:
- species (set of trees species growing in our test area)
- height (several hight ranges we want to register)
To create field species please press the + (Add) button, provide the name in our case ‘species‘ and press the button ‘+’ (Add) ones more to add a value:
Please add few species to the attribute – defined values will be then displayed within a drop down list when ‘Add Point’ button is pressed.
Please get back to ‘Edit project’ screen and add new attribute called high:
Field’s values can be also imported from the text file, please follow steps in this artice to get the values imported: http://mapit-gis.com/import-values
We can also add so called ‘Scalar field’ it will be display as a free text or Yes/No spinner on the ‘Add feature’ screen.
The ‘text field’ can also have a default value. This value will be set automatically when ‘Add feature’ button is pressed.
At the end of the process the ‘Edit Attribute’ screen should look as below:
At this point the attribute set is ready to use. To start the survey we need to create the survey layer now and set the default attribute set.
3. Creating survey layer
To add new layer and use it to collect the survey information please go to ‘ Layers’ Management’ and press ‘Add Layer’ button.
When setting a layer name it’s highly recommended to not use special characters like: / \ ? ‘ ; : ” | . , ^.
Layer name is being used to create e.g pictures’ sub-folders in MapIt->Pictures and these special characters may cause problems on certain devices. Similarly the layer name is being used to name the file during the export operation and some special characters may cause problems as well. The advice is to use alpha-numeric strings with spaces, dashes or underscores as delimiters.
Set the default attribute set – if you leave it as ‘None’ you will be able to create points containing only name and description.
When adding new layer you can also set the new layer as active or choose a field for labels when the checkbox ‘Show labels’ is checked.
You can also choose color for new markers or lines or set outline color and fill for polygon geometry type.
Please set the layer as Active to be able to add new features to it.
Some Layer properties can be changed later, however layer name, attribute set and geometry type can be set only during create layer operation.
4. Collecting the data
When there is an active layer each time you press the ‘Add Point’ button when collecting the data you will see screen containing dropdown lists for preset attributes.
You can add one or more pictures before saving the point (Pictures will be saved to SD card->MapIt->Pictures folder)
4. Export your survey
When the survey is finished you can export your data to CSV, KML or GeoJSON format – exported data will be saved to SDCard and alternatively can be shared using number of standard ways including email, gdrive and skype.