gws.plugin.alkis.action¶
The alkis action, the backend for the Flurstückssuche (cadastre parcel search).
Source code: gws.plugin.alkis.action
Module Contents¶
- class gws.plugin.alkis.action.BuchungConfig¶
Bases:
gws.ConfigWithAccessAccess to the Grundbuch (register) information.
- class gws.plugin.alkis.action.BuchungOptions¶
Bases:
gws.NodeAccess options for the Grundbuch (register) data.
Holds the read permissions for register data.
- class gws.plugin.alkis.action.Config¶
Bases:
gws.ConfigWithAccessParcel search in ALKIS data.
- buchung: BuchungConfig | None¶
Access to the land register information.
- buchungsblattSearchOptions: gws.TextSearchOptions | None¶
How book and page numbers are matched.
- crs: gws.CrsName¶
CRS for the ALKIS data.
- eigentuemer: EigentuemerConfig | None¶
Access to the owner information.
- exporters: list[gws.plugin.alkis.data.exporter.Config] | None¶
Export formats for parcel data.
- nameSearchOptions: gws.TextSearchOptions | None¶
How person names are matched.
- storage: gws.base.storage.Config | None¶
Storage for saved parcel selections.
- strasseSearchOptions: gws.TextSearchOptions | None¶
How street names are matched.
- templates: list[gws.ext.config.template] | None¶
Templates for parcel details.
- class gws.plugin.alkis.action.EigentuemerConfig¶
Bases:
gws.ConfigWithAccessAccess to the Eigentümer (owner) information.
- class gws.plugin.alkis.action.EigentuemerOptions¶
Bases:
gws.NodeAccess options for owner (Eigentuemer) data.
Holds the read permissions for owner data, the control mode and the table for logging access to owner data.
- logTable: gws.lib.sa.Table | None¶
Table for logging access to owner data, set by the action.
- configure()¶
- class gws.plugin.alkis.action.ExportFlurstueckRequest¶
Bases:
gws.RequestRequest to export found parcels.
- findRequest: FindFlurstueckRequest¶
The parcel search to run.
- class gws.plugin.alkis.action.ExportFlurstueckResponse¶
Bases:
gws.ResponseResponse of a parcel export.
- class gws.plugin.alkis.action.FindAdresseRequest¶
Bases:
gws.RequestRequest for an Adresse (address) search.
- bisHausnummer: str | None¶
Upper bound of a house number range, inclusive;
hausnummeris the lower bound.
- combinedAdresseCode: str | None¶
Combined code
strasse_hausnummer_plz_gemeinde_bisHausnummer; empty and0parts are ignored.
- crs: gws.CrsName | None¶
CRS for the returned features, defaults to the project map CRS.
- class gws.plugin.alkis.action.FindAdresseResponse¶
Bases:
gws.ResponseResponse of an Adresse (address) search.
- features: list[gws.FeatureProps]¶
Found addresses as features.
- class gws.plugin.alkis.action.FindFlurstueckRequest¶
Bases:
gws.RequestRequest for a Flurstück (parcel) search.
- bblatt: str | None¶
Buchungsblatt (register sheet) numbers, separated by spaces, commas or semicolons.
- combinedFlurstueckCode: str | None¶
Combined code
land_gemarkung_flur_zaehler_nenner_folge; empty and0parts are ignored.
- crs: gws.CrsName | None¶
CRS for the returned features, defaults to the project map CRS.
- displayThemes: list[gws.plugin.alkis.data.types.DisplayTheme] | None¶
Themes to include in the parcel details.
- fsnummer: str | None¶
a
DE...gml id, a Flurstückskennzeichen or a compound parcel number.- Type:
Parcel identifier
- shapes: list[gws.lib.shape.Props] | None¶
Search area; several shapes are merged.
- class gws.plugin.alkis.action.FindFlurstueckResponse¶
Bases:
gws.ResponseResponse of a Flurstück (parcel) search.
- features: list[gws.FeatureProps]¶
Found parcels as features, sorted by title.
- class gws.plugin.alkis.action.FindFlurstueckResult¶
Bases:
gws.DataResult of a Flurstück (parcel) search.
- flurstueckList: list[gws.plugin.alkis.data.types.Flurstueck]¶
Found parcels.
- query: gws.plugin.alkis.data.types.FlurstueckQuery¶
The query that was run.
- class gws.plugin.alkis.action.GemarkungListMode¶
Bases:
gws.EnumHow the Gemarkung list is shown.
- combined = 'combined'¶
Show ‘Gemarkung (Gemeinde)’.
- none = 'none'¶
Do not show the list.
- plain = 'plain'¶
Show only the Gemarkung.
- tree = 'tree'¶
A tree with level 1 = Gemeinde and level 2 = Gemarkung.
- class gws.plugin.alkis.action.GetToponymsRequest¶
Bases:
gws.RequestRequest for the
alkisGetToponymscommand.
- class gws.plugin.alkis.action.GetToponymsResponse¶
Bases:
gws.ResponseResponse of the
alkisGetToponymscommand.
- class gws.plugin.alkis.action.Model¶
Bases:
gws.base.model.default_model.ObjectModel for the parcel and address features returned by the action.
- configure()¶
- class gws.plugin.alkis.action.Object¶
Bases:
gws.base.action.ObjectThe
alkisaction.Searches parcels and addresses in the ALKIS index, returns them with owner and register data where the user may read it, and prints, exports and stores selections of parcels.
- ADRESSE_QUERY_FIELDS = ['gemarkung', 'gemarkungCode', 'gemeinde', 'gemeindeCode', 'kreis', 'kreisCode', 'land',...¶
Request fields copied into an address query.
- buchung: BuchungOptions¶
Access options for register data.
- buchungsblattSearchOptions: gws.TextSearchOptions¶
How register sheet numbers are matched.
- COMBINED_ADRESSE_FIELDS = ['strasse', 'hausnummer', 'plz', 'gemeinde', 'bisHausnummer']¶
Query fields for the parts of a combined address code, in order.
- COMBINED_FLURSTUECK_FIELDS = ['landCode', 'gemarkungCode', 'flurnummer', 'zaehler', 'nenner', 'flurstuecksfolge']¶
Query fields for the parts of a combined parcel code, in order.
- db: gws.DatabaseProvider¶
Database provider with the ALKIS data.
- eigentuemer: EigentuemerOptions¶
Access options for owner data.
- exporters: list[gws.plugin.alkis.data.exporter.Object]¶
Exporters for parcel data.
- FLURSTUECK_QUERY_FIELDS = ['flurnummer', 'flurstuecksfolge', 'zaehler', 'nenner', 'flaecheBis', 'flaecheVon', 'gemarkung',...¶
Request fields copied into a parcel query.
- ix: gws.plugin.alkis.data.index.Object¶
The ALKIS index.
- ixStatus: gws.plugin.alkis.data.types.IndexStatus¶
Index status, set on activation.
- nameSearchOptions: gws.TextSearchOptions¶
How person names are matched.
- printers: list[gws.Printer]¶
Printers for parcels.
- storage: gws.base.storage.Object | None¶
Storage for saved parcel selections.
- strasseSearchOptions: gws.TextSearchOptions¶
How street names are matched.
- templates: list[gws.Template]¶
Templates for parcel and address views.
- activate()¶
- configure()¶
- export_flurstueck(req: gws.WebRequester, p: ExportFlurstueckRequest) ExportFlurstueckResponse¶
Search for parcels and export them.
- find_adresse(req: gws.WebRequester, p: FindAdresseRequest) FindAdresseResponse¶
Search for addresses.
- find_adresse_objects(req: gws.WebRequester, p: FindAdresseRequest) tuple[list[gws.plugin.alkis.data.types.Adresse], gws.plugin.alkis.data.types.AdresseQuery]¶
Run an address search in the index.
- Parameters:
req – Web requester.
p – Search parameters.
- Returns:
A tuple of the found addresses and the query.
- find_flurstueck(req: gws.WebRequester, p: FindFlurstueckRequest) FindFlurstueckResponse¶
Search for parcels.
- find_flurstueck_objects(req: gws.WebRequester, p: FindFlurstueckRequest) tuple[list[gws.plugin.alkis.data.types.Flurstueck], gws.plugin.alkis.data.types.FlurstueckQuery]¶
Run a parcel search in the index.
Checks access to owner and register data if requested, and logs owner data access.
- Parameters:
req – Web requester.
p – Search parameters.
- Returns:
A tuple of the found parcels and the query.
:raises
gws.ForbiddenError`if owner orregister data is requested without access.: :raises `gws.BadRequestError`if the parcel number is invalid:
- get_exporter(uid: str | None, user: gws.User) gws.plugin.alkis.data.exporter.Object | None¶
Find an exporter the user can use.
- Parameters:
uid – Exporter uid. If empty, the first usable exporter is returned.
user – The user.
- Returns:
The exporter, or
Noneif not found.
- get_toponyms(req: gws.WebRequester, p: GetToponymsRequest) GetToponymsResponse¶
Return all toponyms (Gemeinde, Gemarkung, Strasse) in the index.
- handle_storage(req: gws.WebRequester, p: gws.base.storage.Request) gws.base.storage.Response¶
Read or write saved parcel selections.
- print_flurstueck(req: gws.WebRequester, p: PrintFlurstueckRequest) gws.JobStatusResponse¶
Search for parcels and start a print job for them.
- props(user)¶
- class gws.plugin.alkis.action.PrintFlurstueckRequest¶
Bases:
gws.RequestRequest to print found parcels.
- featureStyle: gws.StyleProps¶
Style for the parcel features.
- findRequest: FindFlurstueckRequest¶
The parcel search to run.
- printRequest: gws.PrintRequest¶
The print request; its first map is used as the base map for each parcel.
- class gws.plugin.alkis.action.Props¶
Bases:
gws.base.action.Props- buchungsblattSearchOptions: gws.TextSearchOptions | None¶
- exporters: list[gws.plugin.alkis.data.exporter.Props]¶
- nameSearchOptions: gws.TextSearchOptions | None¶
- printer: gws.base.printer.Props | None¶
- storage: gws.base.storage.Props | None¶
- strasseSearchOptions: gws.TextSearchOptions | None¶
- class gws.plugin.alkis.action.StrasseListMode¶
Bases:
gws.EnumStrasse (street) list entry format.
- plain = 'plain'¶
Show only the street name.
- withGemarkung = 'withGemarkung'¶
Show ‘Strasse (Gemarkung)’.
- withGemarkungIfRepeated = 'withGemarkungIfRepeated'¶
Show ‘Strasse (Gemarkung)’ when needed for disambiguation.
- withGemeinde = 'withGemeinde'¶
Show ‘Strasse (Gemeinde)’.
- withGemeindeIfRepeated = 'withGemeindeIfRepeated'¶
Show ‘Strasse (Gemeinde)’ when needed for disambiguation.
- class gws.plugin.alkis.action.Ui¶
Bases:
gws.ConfigUser interface options for the Flurstückssuche.
- gemarkungListMode: GemarkungListMode = 'combined'¶
How the Gemarkung list is shown in the search form.
- strasseListMode: StrasseListMode = 'plain'¶
How entries in the street list are shown.