An attribute schema allows users to create a series of attributes for a layer to make data collection more efficient. The schema defines the name, type, and associated properties such as an optional pick list. To edit an attribute schema, tap the Information icon on the map feature (line of placemark) label.
Creating an Attribute Schema
There are two ways to create an attribute schema within the app. Both options result in the same workflow but allow for two separate points to create the schema.
- Through an individual feature on a map.
- Through the layer itself
The workflow below breaks down how to create the schema through the already added feature on a map.
- Create a feature on a map
- Tap on the feature to access the Map Feature information screen
- Tap on 'Edit' in the Attributes section (this will open the Edit Layer screen)
- With the Edit Layer screen open, you can change the layer name, set a new icon, as well as create your attribute schema. Tap the '+' icon to create a new attribute
- Rename the attribute as desired
- Set the type of attribute
- String - alphanumeric characters
- Boolean - yes or no values
- Real - numbers that can contain decimal values
- Integer - whole numbers
- If desired, set a picklist value (repeat this step for each value required)
- Tap the back arrow when the attribute is as desired
- Repeat steps 6-8 for each desired attribute
Importing an Attribute Schema
To import a custom schema you will use a similar process to importing Map Features. Open the desired map that you want the schema on, and select the Import Map Features icon. Once open, select the open for 'Import Schema' and navigate to the desired file. Please note that the schema must be in KML format.
Once imported, the schema will be on its own layer and may require additional changes in order to be the active layer for data collection (changes required may include moving the schema to the appropriate layer, setting it as the active layer, making any last minute changes to the attributes/picklist values).
Exporting an Attribute Schema
To export a custom schema you will use a similar process to exporting Map Features. Open the desired map that you want to export the schema from, and select the Export Map Features icon. Once open, fill out the desired information (filename, format - must be KML if you want to re-import into the app), and set the Data type to 'Schema Only' (this will only export the schema with no data). You can also export the features themselves, which will export the features as well as the schema if that is desired.
Using Attribute Schemas
With an active layer schema, users can begin collecting data using the pre-designed attributes, icons, and other styling settings. To collect data using a schema please follow the steps below:
- Set the schema as the active layer on a map (please see Managing Features for help on how to do this)
- Add a placemark, line, track or area to the map
- Tap on the feature and go to the Edit Map Feature screen
- In the Attributes section, tap the attribute you need to enter data for
- If the attribute has a picklist, choose the appropriate value, or enter a new value
- Tap the back arrow to return to the Edit Map Feature screen
- Repeat steps 4-6 for each remaining attribute
- Close the Edit Map Feature screen when you are satisfied
- Repeat for any other features