aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 5f5afa2dfdacd88686fe017ef6f88dc6f575eade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Summary
=======

Script to create a QGIS project with observations of Plantae and Fungi
from [SLU Artdatabanken][] and background topographic maps from
[Lantmäteriet][Lantmäteriet Product List].

Observations are retrieved using SLU Artdatabanken's [Species Observation System API][],
which aggregates data from multiple sources such as [Artportalen][]
or [MVM environmental data][].

[SLU Artdatabanken]: https://www.artdatabanken.se/
[Species Observation System API]: https://www.artdatabanken.se/tjanster-och-miljodata/oppna-data-och-apier/om-artdatabankens-apier/api-for-artobservationer-fran-flera-datakallor/
[Artportalen]: https://artportalen.se
[MVM environmental data]: https://miljodata.slu.se/mvm/
[Lantmäteriet Product List]: https://www.lantmateriet.se/sv/geodata/vara-produkter/produktlista/#category=geografiskinformation


Usage
=====

```
$ gis-observation-map --help
usage: gis-observation-map --project-home=DIR --project-name=NAME {--geometry=FILE|--point=Y,X} ...
       gis-observation-map --observation-file=NAME {--geometry=FILE|--point=Y,X} ...

Create a QGIS project with observations from Artdatabanken.

options:
  -h, --help            show this help message and exit
  --project-home DIRECTORY
                        Project home directory
  --project-name NAME   Project filename (and title) relative to --project-home
  --topo-basedir DIRECTORY
                        Base directory for "Topografi 10", "Topografi 50", etc.

Geographic area of interest:
  --geometry-style STYLE_FILE
                        QGIS Layer Style File (*.qml) to apply to subsequent geometry files
  --geometry-layername NAME
                        Layer names for subsequent geometry files
  --geometry GEOMETRY_FILE
                        Geometry file of interest
  --point [Y,X ...]     Coordinates of interest (in SWEREF99 TM)
  --margin N            Margin (in meters) around geometry envelopes

Observations:
  --no-observations     Do not fetch observations within the area(s) of interest
  --observation-file NAME
                        Observation file name relative to --project-home
  --observation-format FORMAT
                        Format for the observation file
  --observation-style STYLE_FILE
                        QGIS Layer Style File (*.qml) to apply to the observation layer (default: ~/gis/Inventeringar/fynd.qml)

Search filter:
  --data-provider [IDENTIFIER ...]
                        Data provider identifier(s), for instance "Artportalen,MVM"
  --since YYYY-MM-DD    Start date for observations in ISO 8601 format
  --until YYYY-MM-DD    End date for observations in ISO 8601 format
```

Examples
========

Generate map with observations within a 10km-wide square centered in
Jokkmokk, Norrbotten.

```
$ gis-observation-map --margin 5000 --point 7395788,713523 \
	--project-name=Jokkmokk --project-home=/path/to/Jokkmokk
1516 observations found
```

![Jokkmokk](img/jokkmokk.png)


Generate map with observations within or nearby [mining exploration
permits and processing concessions][SGU Mineralrättigheter], using a
custom style for the objects of interest.

```
$ gis-observation-map --margin 2500 \
	--geometry-style /path/to/Mineralrättigheter.qml --geometry /path/to/jokkmokk-sgu.geojson \
	--project-name=Gruvor --project-home=/path/to/Jokkmokk-Mineral
5304 observations found
```

Zoom in on the Gállok area (Jokkmokk Municipality, Norrbotten).

![Gállok](img/gallok.png)

Show details for a specific observation near Doaresoajvve (Jokkmokk
Municipality, Norrbotten).

![Doaresoajvve](img/doaresoajvve.png)

[SGU Mineralrättigheter]: https://apps.sgu.se/kartvisare/kartvisare-mineralrattigheter.html

[Contribute](https://git.guilhem.org/gis-observation-map/about/)
============

```
$ git clone https://git.guilhem.org/gis-observation-map.git
```