Feature Templates
Features may be created according to a pre-defined template. Applying a template will automatically assign various feature properties and attributes to a new feature. An example of an application of feature templates is using Global Mapper Mobile to take an inventory of various assets in the field. A feature can be created at the asset location, using the GPS functionality, and desired information about the asset can be entered into preconfigured attributes.
Feature templates are defined in Global Mapper desktop. Click on the Configuration button, and select the “Feature Templates” tab to create and edit templates.
Like custom feature types, the feature template descriptions are saved in the user’s data folder (see Help | About). Feature template definitions can be imported/exported for backup or sharing with other users. (When you import a package file containing feature template layers, described shortly, the templates described in that file will be added to the user’s template collection.)
Feature templates are defined with the following dialog:
Attributes are defined using the Feature Template Attribute dialog:
Attribute values may be “free form”, allowing the user to enter any string value, or enumerated allowed values. Allowed values are attached to the attribute by clicking the “Allowed Values…” button. You may allow users to edit attributes, or define them as constant with the “Value editable” checkbox. If the “Value input required” check box is checked, the user will be prompted to enter a value for the attribute when a new feature is created. (The user may add additional attributes to a feature if desired.)
Once the desired feature templates have been defined, layers that can apply the templates must be added to your project. From the "Feature Templates" dialog in Configuration, select the template and choose to "Create Empty Template Layer..." from the bottom of the dialog. Another method to add an empty template layer to a project is to click on the Overlay Control Center button, and right click on the layer list area. Select the menu option “Create a feature template layer…”. A new layer will be created and a layer property sheet will be displayed. Select the “Template” tab to specify which feature template that layer will apply to new points added to that layer.
The user may only add features of the type defined by the feature template to the layer.
Once the feature template layers have been defined, the project is exported to a Global Mapper Mobile Package file (*.gmmp).
Users of Global Mapper desktop may also create features in a template layer. To do so, use the Digitizer to create a new feature. Select the feature template layer to place the new feature. (Only those template layers with compatible template types, point, line, or area, will be included in the layer list.)
If there are any attributes with the “Value input required” option set, the user will be prompted for those values after clicking OK.
A similar procedure is conducted to create features using the mobile application.