module documentation

Schema generator.

Generate python APIs and object databases from GeoInfoDok sources.

For version 6 use RR cat files Basisschema.cat and Fachschema.cat For version 7 use the QEA (sqlite) file AAA-7.1.2.qea

Usage:

generator.py 6 /path/to/Basisschema.cat /path/to/Fachschema.cat
generator.py 7 /path/to/AAA-7.1.2.qea
Class CatParser Parser for RR cat files.
Class Node Undocumented
Class Parser Undocumented
Class Parser6 Undocumented
Class Parser7 Undocumented
Class PythonGenerator Undocumented
Function json_dict_body Undocumented
Function main Undocumented
Function popattr Undocumented
Function quote Undocumented
Function to_name Undocumented
Function wrap_indent Undocumented
Constant CATEGORY_ROOTS Undocumented
Constant CDIR Undocumented
Constant PY_HEAD Undocumented
Constant Q3 Undocumented
Constant STD_TYPES Undocumented
Constant T_CATEGORY Undocumented
Constant T_CLASS Undocumented
Constant T_ENUM Undocumented
Constant T_UNION Undocumented
Constant TAB Undocumented
Constant TAB2 Undocumented
Constant WRAP_WIDTH Undocumented
Variable comma Undocumented
Variable nl Undocumented
Constant _UID_DE_TRANS Undocumented
def json_dict_body(d, indent): (source)

Undocumented

def main(version, *paths): (source)

Undocumented

def popattr(obj, attr, default=None): (source)

Undocumented

def quote(s): (source)

Undocumented

def to_name(s): (source)

Undocumented

def wrap_indent(s, indent): (source)

Undocumented

CATEGORY_ROOTS: dict[str, str] = (source)

Undocumented

Value
{'AFIS-ALKIS-ATKIS Fachschema': 'fs',
 'AAA Basisschema': 'bs',
 'AAA_Objektartenkatalog': 'ak'}

Undocumented

Value
os.path.dirname(__file__)
PY_HEAD: str = (source)

Undocumented

Value
'''"""GeoInfoDok <VERSION> schema.

(c) 2023 Arbeitsgemeinschaft der Vermessungsverwaltungen der Länder der Bundesre
publik Deutschland

https://www.adv-online.de/GeoInfoDok/

...

Undocumented

Value
'"""'
STD_TYPES: dict[str, str] = (source)

Undocumented

Value
{'Angle': 'float',
 'Area': 'float',
 'Boolean': 'bool',
 'CharacterString': 'str',
 'Date': 'date',
 'DateTime': 'datetime',
 'Distance': 'float',
...
T_CATEGORY: str = (source)

Undocumented

Value
'category'
T_CLASS: str = (source)

Undocumented

Value
'class'
T_ENUM: str = (source)

Undocumented

Value
'enum'
T_UNION: str = (source)

Undocumented

Value
'union'

Undocumented

Value
' '*4

Undocumented

Value
TAB*2
WRAP_WIDTH: int = (source)

Undocumented

Value
110

Undocumented

Undocumented

_UID_DE_TRANS = (source)

Undocumented

Value
{ord('ä'): 'ae',
 ord('ö'): 'oe',
 ord('ü'): 'ue',
 ord('ß'): 'ss',
 ord('Ä'): 'Ae',
 ord('Ö'): 'Oe',
 ord('Ü'): 'Ue'}