Skip to main content

Compact Unique IDs

Description

Compact HydroID and related IDs of a given GDB with a given HYDROID Seed (default=0)

Usage

Parameters

Parameter NameTypeDirectionData TypeDialog Reference
Input GeodatabaseRequiredInputWorkspaceInput geodatabase whose HYDROID, StreamID, NextDownID, DrainID, FeatureID etc will be compacted.
Input ID BaseRequiredInputLongID_Base. The HYDROID of the compacted gdb will starts with ID_Base+1.
ConfigJsonFileOptionalInputFileOptional configuration json file. The file would have this format:
{
"KeyIDField": "HYDROID",
"IDFields": [
"HYDROID",
"DRAINID",
"FEATUREID",
"NEXTDOWNID",
"JUNCTIONID",
"SUBELEMENTID",
"HYDROEDGEID",
"HYDROEDGEID",
"STREAMID",
"RIVERID"
],
"ExclusiveLayerNames": ["APUNIQUEID", "HYDROIDXREF", "LAYERKEYTABLE"]
}

where:

  • KeyIDField = Name of the KeyIDField
  • default = HYDROID
  • IDFields = a list of IDs to be compacted.
  • ExclusiveLayerNames = a list of layer names of the layers that whose IDs will not be compacted, ie., these layers will be excluded from the operations.