gws.plugin.alkis.data.index

Source code: gws.plugin.alkis.data.index

Module Contents

gws.plugin.alkis.data.index.all_flat_keys()

Return a dict key->type for all flat keys in the Flurstueck structure.

gws.plugin.alkis.data.index.flatten_fs(fs: gws.plugin.alkis.data.types.Flurstueck, keys_to_extract: set[str]) list[dict]

Flatten a Flurstueck into a list of dicts with keys from keys_to_extract.

gws.plugin.alkis.data.index.make_fsnummer(r: gws.plugin.alkis.data.types.FlurstueckRecord)

Create a ‘fsnummer’ for a Flurstueck, which is ‘flur-zaeher/nenner (folge)’.

gws.plugin.alkis.data.index.normalize_hausnummer(s)

Clean up house number formatting.

class gws.plugin.alkis.data.index.Object

Bases: gws.Node

GWS object tree node.

ALL_TABLES = ['place', 'flurstueck', 'lage', 'part', 'indexflurstueck', 'indexlage', 'indexgeom',...
columnDct
crs: gws.Crs
db: gws.plugin.postgres.provider.Object
excludeGemarkung: set[str]
gemarkungFilter: set[str]
HAUSNUMMER_NOT_NULL_VALUE = '*'
INSERT_SIZE = 5000
saMeta: gws.lib.sa.MetaData
schema: str
tables: dict[str, gws.lib.sa.Table]
TABLES_BASIC
TABLES_BUCHUNG
TABLES_EIGENTUEMER
VERSION = '82'
activate()

Activation hook.

configure()

Configuration hook.

count_all(qo: gws.plugin.alkis.data.types.FlurstueckQueryOptions) int
create_table(table_id: str, values: list[dict], progress: gws.lib.cli.ProgressIndicator | None = None)
default_land()
drop()
drop_table(table_id: str)
find_adresse(q: gws.plugin.alkis.data.types.AdresseQuery) list[gws.plugin.alkis.data.types.Adresse]
find_flurstueck(q: gws.plugin.alkis.data.types.FlurstueckQuery) list[gws.plugin.alkis.data.types.Flurstueck]
has_table(table_id: str) bool
iter_all(qo: gws.plugin.alkis.data.types.FlurstueckQueryOptions) Iterable[gws.plugin.alkis.data.types.Flurstueck]
load_flurstueck(fs_uids: list[str], qo: gws.plugin.alkis.data.types.FlurstueckQueryOptions) list[gws.plugin.alkis.data.types.Flurstueck]
status() gws.plugin.alkis.data.types.IndexStatus
strasse_list() list[gws.plugin.alkis.data.types.Strasse]
table(table_id: str) gws.lib.sa.Table
table_size(table_id) int
gws.plugin.alkis.data.index.parse_fsnummer(s)

Parse a Flurstueck fsnummer into parts.

gws.plugin.alkis.data.index.serialize(o: gws.plugin.alkis.data.types.Object, encode_enum_pairs=True) dict
gws.plugin.alkis.data.index.strasse_key(s)

Normalize a steet name for full-text search.

gws.plugin.alkis.data.index.TABLE_BUCHUNGSBLATT = 'buchungsblatt'
gws.plugin.alkis.data.index.TABLE_FLURSTUECK = 'flurstueck'
gws.plugin.alkis.data.index.TABLE_INDEXBUCHUNGSBLATT = 'indexbuchungsblatt'
gws.plugin.alkis.data.index.TABLE_INDEXFLURSTUECK = 'indexflurstueck'
gws.plugin.alkis.data.index.TABLE_INDEXGEOM = 'indexgeom'
gws.plugin.alkis.data.index.TABLE_INDEXLAGE = 'indexlage'
gws.plugin.alkis.data.index.TABLE_INDEXPERSON = 'indexperson'
gws.plugin.alkis.data.index.TABLE_LAGE = 'lage'
gws.plugin.alkis.data.index.TABLE_PART = 'part'
gws.plugin.alkis.data.index.TABLE_PLACE = 'place'
gws.plugin.alkis.data.index.text_key(s)

Normalize a text string for full-text search.

gws.plugin.alkis.data.index.text_search_clause(column, val, tso: gws.TextSearchOptions)
gws.plugin.alkis.data.index.unserialize(data: dict)