I work with geodata and GIS, chiefly QGIS. I am a physical geographer, glaciologist, surveyor and jack of all trades.
The repositories found here are for use within Riksantikvarieämbetet, although no restrictions are made. Any QGIS scripts or plug-ins have been written to resolve specific problems and may not be more widely usable. Interpret "may" as "almost certainly won't". The code here is a store or back-up more than anything else.
The Layer Reverse QGIS plugin is a very simple tool that does one thing and one thing only: it reverses the order of highlighted layers. The tool came about due to a frustration caused by a wms that read in map layers in reverse order, so that text ended up at the bottom and polygons on top.
To use: highlight layers in the Content pane of QGIS then click the button in the Plugin toolbar. That's it. Nothing more and nothing less.
LinesToPolygon has been written to aid RAÄs efforts to improve data quality. Currently there are many objects with poorly defined boundaries. The causes of this vary; some objects were not intended to have an exactly defined limit but were rather meant as indicators, other objects were defined using small scale maps and drawn accordingly, in relation to the information available at that scale.
Modern usage and expectations require specific and well defined boundaries, even if interpretation from these will continue to allow fuzzy and situation dependent assessment. New boundaries must respect the original intention for the objects initial creation but should consider cadastral boundaries, land use and land cover, topography etc. However, a boundary may be defined by different criteria along its length. Therefore the boundary must be mapped using line feature. These line feature are then combined to one polygon. The line features are then a form of metadata to the boundary polygon.
To use, mark all lines constituting one boundary and then run the plugin. Each line is checked for geometric validity: it must not cross itself or any other line, start and end nodes must coincide with those of its neighbours. If there are any errors a point layer highlighting these is created, otherwise a polygon memory layer is created.
Note that this plugin should work with any line data and is not limited to the use case described here. The only limitations are geometric/topological.
RAÄ Loader is a pluginwith two main functions, both restricted to Riksantikvarieämbetet's data. The first group of tools are essentially shortcuts for downloading data from Öppna data-portalen. The second group of tools simplifies merging geographically separated layers of the same data type.
The plugin provides an interface for downloading geopackages for the data sets "Kulturhistoriska lämningar", "Arkeologiska uppdrag", "Bebyggelse", "Byggnadsminnen" and "Världsarv". The first two can be downloaded by "kommun", "län" or "Sverige" as a whole. The second two can be dowloaded by "län" or for the country as a whole and the last dataset is only available for Sweden.
Each geopackage is downloaded and styled to highlight significant categories within each dataset. Furthermore, the layers are grouped in the layer tree by data and geographical division.
In order to aid analysis of the data tools for merging data groups are provide. For example, if the user has download several layers of "Kulturhistoriska lämningar" for a subset of "kommuner" in a "län", these can be merged into virtual layers covering the enire downloaded area.
This plugin is intended for use with data provided in Swedish, from a specific source. If you do not wish to work with Riksantikvarieämbetet's data this plugin is not for you. This plugin is intended only as a convenience and provides little extra functionality