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.