Tree item name
Syntax
Tree item names
- may contain (alpha)numeric characters
A..Z, a..z, 0..9, _(underscore, U+005F) - may not start with a numeric character
- UTF characters U+0080 and higher codes are also allowed, such as: €, °, ß, π, δ, Δ
- Mathematical characters are also allowed (with or without sub and superscripts), such as: σₓ, σᵧ, σₓᵧ, α, β, ŷ, ȳ, x̄, ∑
- The following characters cannot be used in tree item names:
- Characters with specific meaning in calculation rules, more specifically: all operators ,
()and[]brackets, comma (U+002C), quotes, spaces (U+0020). - Characters that have specific meaning in the GeoDms language, more specifically:
{,},;, and" - Control characters (U+0000 .. U+001F)
- Characters with specific meaning in calculation rules, more specifically: all operators ,
- The following character is reserved for future use and should not be used in item names:
@(U+0040)
Case Sensitivity
Tree item names are case insensitive with regard to the UTF alphabetical characters below U+0080, thus A is identified with a, B with b , … and Z with z. Other characters, such as from the Greek alphabet are case sensitive.
We advise to use upper or lowercase characters consistently in tree item names as we are preparing and planning to make tree item names and GeoDMS configurations case sensitive, possibly with a fallback option during a migration period.
Case mix-up warnings
The GeoDMS keeps one case-folded table of names, shared by the engine, the standard prelude and your configuration. The first spelling of a name that is read becomes the canonical one, and any later spelling of that same name that differs only in case is reported in the event log as Depreciated mix-up of cases. That row of the event log filter switches these off, as does the /CW command line option for a single run.
The engine’s own names are canonically lower case: unit, value, item, nrofrows, and the value types bool, uint32, float32, void and their siblings. Writing them that way, as the Naming conventions advise for keywords, reports nothing, so a warning points at an inconsistent spelling in your configuration. A configuration that writes NrOfRows, Unit or Value reports a case mix-up once for each such name. That spelling works, as names are case insensitive, but the lower-case form is the one the engine records, so it is the one to use.
The warning is raised wherever a name is resolved, not only where a name is first registered. That includes a name that is only ever looked up: one built at run time, one that arrives through an Indirect expression, a member named by data, or an item path resolved while a model runs. Each such name is reported once, at the first sighting that differs from the recorded spelling, so a report can point at a name in an expression or in data rather than in a declaration. A report does not change how the name resolves.
The canonical spelling is the one that gets written out
The recorded spelling is not only what the event log and the GUI show: it is the name the engine writes into exported data. An Attribute you named Value or Attr is emitted as a column named value / attr - in a Gdalwrite.vect CSV header, in a GeoPackage column, and in the item paths of an @statistics page (User Guide GeoDMS Run).
An export of three columns, for example, writes these names:
| column as configured | column as written |
|---|---|
Woningen (collides with nothing) | Woningen |
Value | value |
Attr | attr |
So a consumer that reads an exported file by exact column name, such as a pandas or geopandas df['Value'], an ArcGIS or QGIS field mapping or an SQL query against a GeoPackage, does not find a column Value. Only names that case-fold onto one of the engine’s own names are affected; every other name is written exactly as configured. Reading is not affected: a source column spelled Value binds to an attribute declared Value, because field matching is case insensitive.
If downstream consumers depend on the configured spelling, rename the item to a name that does not collide with an engine name (Woningen, sel_value, …) rather than relying on its capitalisation, since the case-folded table makes the engine’s spelling win.
Naming Conventions
For the naming of tree items see Naming conventions.
Implementation in the GeoDMS
The checking of treeItem names is done by the functions itemNameFirstChar_test and itemNameNextChar_test, defined in %geodmsfolder%\rtc\dll\src\utl\Encodes.h