Create the Template GDB: For New Databases¶
Run the Create Template GDB Tool¶
Note
Make sure you close your Template_Domains workbook before running the tool.
Open the Python toolbox in an ArcGIS Pro project, expand the toolbox, and double-click on Create Template GDB for New Database. All parameter explanations below are also available in the tool's embedded metadata and tooltips.
Required Tool Parameters¶
Populate parameters as follows:
| Parameter | Explanation |
|---|---|
| Path to GeMS Toolbox | Navigate to and select a copy of the GeMS Toolbox. It should be the most recent version. |
| Output Location for Template FGDB | Select a folder to output the template GDB |
| Name for Template GDB | Enter a name for the template. This name will also be used in Domain Name and Domain Descriptions.
|
| Spatial Reference for Template GDB GeologicMap Feature Dataset | Select an appropriate spatial reference |
| Domain, DMU, DataSource, and Method Options | Select ‘Custom Values’ to use the custom spreadsheet you created.
|
| Path to Schema Spreadsheet (visible if Custom Values selected above) | Navigate to the .xlsx file containing your customized schema |
Template Options¶
The template options section includes additional database characteristics as described below.
| Template Option | Explanation |
|---|---|
| Add Methods Table, Domain, and MethodID Field | If checked, the following will be added to the database:
The Methods table and domain are populated based on the values in the schema spreadsheet. Refer to the Create the Custom Schema - Methods section for more information. |
| Methods Source | Schema Excel Workbook will populate the Methods table based on the values in the schema spreadsheet. Leave Table and Domain Blank will ignore the schema spreadsheet and add a blank Methods table, blank Methods domain, Method_ID fields to applicable feature classes, and the attribute rule that requires Method_ID. That rule only makes Method_ID required if you have data in your Methods table. So, Method_ID will be optional initially while the Methods table is blank. |
| Include MapUnitLabelPoints Feature Class | Check this box to include a MapUnitLabelPoints feature class containing all the attribute rules and domains that would apply to the MapUnitPolys feature class. This is helpful if you plan to build MapUnitPolys from MapUnitLabelPoints and ContactsAndFaults. Note: A MapUnitPolys feature class with attribute rules and domains will still be created if this box is checked. |
| Auto Populate GeMS Feature Class _ID Fields with GlobalID | Check this box to automatically copy GlobalID values to GeMS feature class _ID fields such as ContactsAndFaults_ID and the DescriptionOfMapUnits, Glossary, and RepurposedSymbols tables. Notes:
|
| Add 1 or more GenericPoints Feature Classes | If checked, adds 1 or more GenericPoints feature class to the output database. After checking this box, a parameter will appear for you to enter names for each feature class you want to add. |
| GenericPoints Feature Class Names | This parameter appears if Add a GenericPoints Feature Class is checked. Specify names for each GenericPoints feature class you would like to add. Names could be GenericPoints or a more specific descriptor for your database such as CinderConePoints. The parameter will display an error if an invalid name is used.The toolbox will automatically rename feature classes and GeMS _ID fields. Note: Make sure values in GeMSFeatureClass in your Symbol_Domain sheet uses the name you specify here. Refer to the Create the Custom Schema - GeMSFeatureClass section for more information. |
| Set ExistenceConfidence and IdentityConfidence Equal | Check this box to always set ExistenceConfidence and IdentityConfidence fields equal for feature classes that use both fields. If this box is left unchecked, for Symbols that are 'existence or identity questionable,' you will have to specify Existence and IdentityConfidence values while creating features. At least one must be set to questionable. |
| Map Unit Line Symbol Field Uses Map Unit Codes | Refer to the table below for more information. |
Make sure you set ‘Map Unit Line Symbol Field Uses Map Unit Codes’ properly based on how you set up your Symbol_Domain sheet as described below.
Refer to Create the Custom Schema - MapUnit - For MapUnitLines for more information.
Note
If you will not be digitizing MapUnitLines, you can leave this template option unchecked.
| Template Option | Symbol Domain Adjustments | Template Option Value |
|---|---|---|
| Symbol field uses FGDC codes | Fill in the MapUnit column with corresponding MapUnit codes |
DO NOT check the box for ‘Map Unit Line Symbol Field Uses Map Unit Codes.’ |
| Symbol field uses MapUnit codes | Replace the FGDC code in Symbol with MapUnit codes.Description can be left unchanged; it will not be used in the final database. |
CHECK the box for ‘Map Unit Line Symbol Field Uses Map Unit Codes’’ |
Additional template options include:
| Template Option | Explanation |
|---|---|
| Add Surficial MapUnit Fields and Rules | Check this box to add additional fields to MapUnitPolys and if applicable, MapUnitLabelPoints to capture Underlying and Subordinate MapUnits. The following fields are added as type text with a 50 character limit:
Both UnderlyingMapUnit and SubordinateMapUnit are assigned the MapUnit domain and are user populated fields. The following is controlled by attribute rules:
CompositeMapUnit is automatically constructed from MapUnit and either SubordinateMapUnit or UnderlyingMapUnit as follows:
BedrockMapUnit is assigned the BedrockMapUnit domain and is automatically populated if a bedrock unit is present in the CompositeMapUnit. The BedrockMapUnit domain is a subset of the full MapUnit domain. Define bedrock units on the BedrockUnits sheet in schema excel workbook. Refer to Create the Template Workbook - BedrockUnits. IdentityConfidenceSecondUnit is assigned a domain with values of certain, questionable, and not applicable. It provides an IdentityConfidence for the second unit in a CompositeMapUnit. If only MapUnit is populated, this field is automatically set to not applicable. If either SubordinateMapUnit or UnderlyingMapUnit are populated, this field must be set to either certain or questionable. The original GeMS IdentityConfidence field indicates confidence for the first unit if there are two units, or the only unit if there is one unit. Label is automatically constructed as the CompositeMapUnit with special characters substituted as applicable. Question marks are added after the first and second unit as applicable based on the values in IdentityConfidence and IdentityConfidenceSecondUnit. |
Run the tool. It takes approximately 8 minutes to complete depending on selected template options. Messages are displayed during execution indicating general progress.
Note
If the tool takes significantly longer than 8 minutes to run, particularly during the early stages, try either deleting your project's geoprocessing history or start a new ArcGIS Pro project and re-run the tool.
When the tool completes, proceed to Finalize the Template GDB.