Commit message (Collapse) | Author | Age | Files | |
---|---|---|---|---|
* | webmap-download*: Use narrow non-breaking space (U+202F) as unit separator. | Guilhem Moulin | 2024-06-08 | 1 |
| | ||||
* | webmap-download*: Use +=. | Guilhem Moulin | 2024-06-08 | 1 |
| | ||||
* | webmap-download-mrr: Don't print request count on empty layers. | Guilhem Moulin | 2024-06-05 | 1 |
| | | | | | We always exit after a single WMS request if the layer has no SVG paths. Don't print the request count in that case. | |||
* | webmap-download-mrr: Don't print request count when skipping the layer. | Guilhem Moulin | 2024-06-04 | 1 |
| | ||||
* | webmap-download-mrr: Minor refactoring. | Guilhem Moulin | 2024-06-04 | 1 |
| | ||||
* | webmap-download-mrr: Don't bother sorting the feature list. | Guilhem Moulin | 2024-06-03 | 1 |
| | ||||
* | webmap-download-mrr.py: Show number of WMS requests on exit. | Guilhem Moulin | 2024-06-03 | 1 |
| | | | | (Incl. failure.) | |||
* | Add layer definitions for Mineralrättigheter. | Guilhem Moulin | 2024-06-03 | 1 |
Unfortunately SGU/Bergsstaten doesn't offer layer files to download, but it has an online webmap (WMS) at https://apps.sgu.se/kartvisare/kartvisare-mineralrattigheter.html so we add a dedicated module to probe and fetch features from it. Double checked that the resulting combination of GeoJSON files does not result in data loss compared to the previous (private) script: sort_features() { jq -S '.features |= sort_by(.properties.Name, .properties.Layer, .properties.Area)' } diff -u --color=auto \ <(ogr2ogr -f GeoJSON -lco COORDINATE_PRECISION=2 /vsistdout/ $dir/Mineralrättigheter.gpkg \ SE.GOV.SGU.MRR.BEARBETNINGSKONCESSIONER_APPLIED_VY | jq '.name = "MRR:" + .name' | sort_features) \ <(ogr2ogr -f GeoJSON -lco COORDINATE_PRECISION=2 -nlt MULTIPOLYGON -nlt PROMOTE_TO_MULTI \ /vsistdout/ mrr/bearbetningskoncessioner_applied.geojson | sort_features) (and similar for other layers). |