ssb-sgis 1.2.8__tar.gz → 1.2.10__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.
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/PKG-INFO +1 -1
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/pyproject.toml +3 -1
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/io/dapla_functions.py +3 -2
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/maps/wms.py +5 -6
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/LICENSE +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/README.md +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/__init__.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/conf.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/debug_config.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/exceptions.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/__init__.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/bounds.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/buffer_dissolve_explode.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/centerlines.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/cleaning.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/conversion.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/duplicates.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/general.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/geocoding.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/geometry_types.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/neighbors.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/overlay.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/point_operations.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/polygon_operations.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/polygons_as_rings.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/runners.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/sfilter.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/geopandas_tools/utils.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/helpers.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/io/__init__.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/io/_is_dapla.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/io/opener.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/io/read_parquet.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/maps/__init__.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/maps/examine.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/maps/explore.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/maps/httpserver.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/maps/legend.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/maps/map.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/maps/maps.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/maps/norge_i_bilder.json +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/maps/thematicmap.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/maps/tilesources.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/__init__.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/_get_route.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/_od_cost_matrix.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/_points.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/_service_area.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/closing_network_holes.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/cutting_lines.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/directednetwork.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/finding_isolated_networks.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/network.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/networkanalysis.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/networkanalysisrules.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/nodes.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/networkanalysis/traveling_salesman.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/parallel/__init__.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/parallel/parallel.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/py.typed +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/raster/__init__.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/raster/base.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/raster/image_collection.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/raster/indices.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/raster/regex.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/raster/sentinel_config.py +0 -0
- {ssb_sgis-1.2.8 → ssb_sgis-1.2.10}/src/sgis/raster/zonal.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "ssb-sgis"
|
|
3
|
-
version = "1.2.
|
|
3
|
+
version = "1.2.10"
|
|
4
4
|
description = "GIS functions used at Statistics Norway."
|
|
5
5
|
authors = ["Morten Letnes <morten.letnes@ssb.no>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -67,6 +67,8 @@ mypy = ">=0.930"
|
|
|
67
67
|
pre-commit = ">=2.16.0"
|
|
68
68
|
pre-commit-hooks = ">=4.1.0"
|
|
69
69
|
ruff = ">=0.0.284"
|
|
70
|
+
owslib = ">=0.34.0"
|
|
71
|
+
pillow = ">=11.0.0"
|
|
70
72
|
pytest = ">=6.2.5"
|
|
71
73
|
sphinx = ">=6.2.1"
|
|
72
74
|
sphinx-autobuild = ">=2021.3.14"
|
|
@@ -466,7 +466,8 @@ def write_geopandas(
|
|
|
466
466
|
df.geometry = None
|
|
467
467
|
try:
|
|
468
468
|
with file_system.open(gcs_path, "wb") as file:
|
|
469
|
-
df
|
|
469
|
+
_to_geopandas(df, file, **kwargs)
|
|
470
|
+
|
|
470
471
|
except Exception as e:
|
|
471
472
|
more_txt = PANDAS_FALLBACK_INFO if not pandas_fallback else ""
|
|
472
473
|
raise e.__class__(
|
|
@@ -486,7 +487,7 @@ def write_geopandas(
|
|
|
486
487
|
**kwargs,
|
|
487
488
|
)
|
|
488
489
|
with file_system.open(gcs_path, mode="wb") as file:
|
|
489
|
-
df
|
|
490
|
+
_to_geopandas(df, file, **kwargs)
|
|
490
491
|
return
|
|
491
492
|
|
|
492
493
|
layer = kwargs.pop("layer", None)
|
|
@@ -132,7 +132,7 @@ class NorgeIBilderWms(WmsLoader):
|
|
|
132
132
|
|
|
133
133
|
all_tiles.append(this_tile)
|
|
134
134
|
|
|
135
|
-
self.tiles = sorted(all_tiles, key=lambda x: x["year"])
|
|
135
|
+
self.tiles = sorted(all_tiles, key=lambda x: (x["year"]))
|
|
136
136
|
|
|
137
137
|
masks = self._get_norge_i_bilder_polygon_masks(verbose=verbose)
|
|
138
138
|
for tile in self.tiles:
|
|
@@ -296,14 +296,13 @@ class NorgeIBilderWms(WmsLoader):
|
|
|
296
296
|
def __post_init__(self) -> None:
|
|
297
297
|
"""Fix typings."""
|
|
298
298
|
if self.contains and isinstance(self.contains, str):
|
|
299
|
-
self.contains = [self.contains
|
|
299
|
+
self.contains = [self.contains]
|
|
300
300
|
elif self.contains:
|
|
301
|
-
self.contains = [x
|
|
302
|
-
|
|
301
|
+
self.contains = [x for x in self.contains]
|
|
303
302
|
if self.not_contains and isinstance(self.not_contains, str):
|
|
304
|
-
self.not_contains = [self.not_contains
|
|
303
|
+
self.not_contains = [self.not_contains]
|
|
305
304
|
elif self.not_contains:
|
|
306
|
-
self.not_contains = [x
|
|
305
|
+
self.not_contains = [x for x in self.not_contains]
|
|
307
306
|
|
|
308
307
|
self.years = [str(int(year)) for year in self.years]
|
|
309
308
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|