Version: 0.1.1
Platform: QGIS 3.4.x
Module Type: Data Acquisition & Visualization
Source Data: Archaeological Map of the Czech Republic (AIS CR)
AMCR Viewer is a QGIS plugin designed to facilitate direct access to the Digital Archive of the Archaeological Map of the Czech Republic (AMČR). It allows researchers to query, retrieve, and visualize Fieldwork events1 data (metadata and geometry) directly within the GIS environment, eliminating the need to manually export data from the web interface. Only publicly accessible data are supported at the time (accessibility = anonymous).
amcr_viewer directory).To initiate a search query, click the Load AMCR Data icon. The filter dialog provides the following options:
Spatial Filter: Checkbox “Limit search to current map extent”: If checked, the query is restricted to the geographical area currently visible in the QGIS canvas. If unchecked, the query searches the entire database (use with caution regarding data volume).
It is possible to view only those Fieldwork events with positive outcome, if “Positive findings only” is checked. Only PIANs marked as (or rather PIANs belonging to Documentation units marked as) “Type of evidence” = “positive” are rendered.
Attribute Filters:
Fieldwork Manager (Dynamic List):
If no filter is used, all accessible Fieldwork events/PIANs are returned (although the number of Fieldwork events to be loaded is capped at 20000 records; it is advisable to set at least one filter).
Upon successful retrieval, the plugin generates three temporary memory layers:
The Attribute Table includes standardized fields such as:
Identifikátor
(Fieldwork event ID), PIAN (PIAN ID).Hlavní typ (Main
Fieldwork event Type), Vedlejší typ (Secondary Fieldwork
event Type), PIAN – typ (PIAN Type).Vedoucí akce
(Fieldwork Manager), Organizace (Organization),
Datum zahájeni/Datum ukončení (Dates of start
and end of the Fieldwork event).Katastr (Main Cadastral
area), Další katastry (Other Cadastral areas),
Okres (District), Definiční bod(y) (PIAN point
localization).Odkaz do Digiarchivu (Direct
URL to the DigiArchive record).The plugin is developed in Python 3 using the PyQt5 framework for the GUI and the Requests library for HTTP communication.
amcr_viewer.py: Entry point; handles GUI integration
and initialization.amcr_dialog.py: Manages the UI logic, including the
custom FilterableSelectionDialog for handling large
vocabularies.amcr_tools.py: Core logic module. Handles API requests,
pagination, data parsing, and vector layer generation.amcr_codelists.py: Manages local caching of controlled
vocabularies (codelists/*.csv).The plugin interacts with three primary endpoints of the AIS CR infrastructure:
https://digiarchiv.aiscr.cz/api/search/queryGETentity=akce, fl (field list),
q (query), rows/page (pagination).while True loop to
handle pagination, processing data in batches of 500 records to ensure
stability.https://digiarchiv.aiscr.cz/api/assets/i18n/cs.jsonHES-xxxx) and Czech labels. This dictionary is cached in
memory during the session.codelists/heslar.csv.codelists/vedouci.csv.memory layers. They are non-persistent and will be lost if
QGIS is closed without saving.Only Fieldwork events (Akce) are supported at the time.↩︎