eolas-data 1.6.0__tar.gz → 1.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eolas_data-1.6.0 → eolas_data-1.7.0}/PKG-INFO +1 -1
- {eolas_data-1.6.0 → eolas_data-1.7.0}/eolas_data/__init__.py +1 -1
- {eolas_data-1.6.0 → eolas_data-1.7.0}/eolas_data/client.py +17 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/pyproject.toml +1 -1
- {eolas_data-1.6.0 → eolas_data-1.7.0}/.github/workflows/catalog-drift.yml +0 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/.github/workflows/publish.yml +0 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/.gitignore +0 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/README.md +0 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/eolas_data/_dataset_names.py +0 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/eolas_data/_regen_names.py +0 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/eolas_data/cli.py +0 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/eolas_data/dataset.py +0 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/eolas_data/exceptions.py +0 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/eolas_data/schedule.py +0 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/tests/test_cli.py +0 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/tests/test_client.py +0 -0
- {eolas_data-1.6.0 → eolas_data-1.7.0}/tests/test_schedule.py +0 -0
|
@@ -242,6 +242,23 @@ class Client:
|
|
|
242
242
|
"""
|
|
243
243
|
return self._get_source(name, "Manaaki Whenua / LRIS", **kwargs)
|
|
244
244
|
|
|
245
|
+
def doc(self, name, **kwargs) -> Dataset:
|
|
246
|
+
"""Fetch a DOC (Department of Conservation) dataset.
|
|
247
|
+
|
|
248
|
+
Examples::
|
|
249
|
+
|
|
250
|
+
client.doc("doc_public_conservation_land") # ~11k polygons of NZ public conservation land
|
|
251
|
+
client.doc("doc_huts") # 1,429 DOC huts (Point geometry)
|
|
252
|
+
client.doc("doc_tracks") # 3,248 DOC tracks (Polyline)
|
|
253
|
+
|
|
254
|
+
Notes:
|
|
255
|
+
Refreshed weekly from DOC's ArcGIS hub. Operational alert streams
|
|
256
|
+
(track closures, hazard notices) are wired but currently blocked on
|
|
257
|
+
an API key issue; they will appear automatically once resolved.
|
|
258
|
+
CC-BY 4.0 International (Crown / Department of Conservation).
|
|
259
|
+
"""
|
|
260
|
+
return self._get_source(name, "DOC", **kwargs)
|
|
261
|
+
|
|
245
262
|
def _get_source(self, name, source: str, **kwargs) -> Dataset:
|
|
246
263
|
df = self.get(name, **kwargs)
|
|
247
264
|
df.eolas_source = source
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|