ssb-sgis 1.0.4__py3-none-any.whl → 1.0.6__py3-none-any.whl
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.
- sgis/__init__.py +5 -5
- sgis/debug_config.py +1 -0
- sgis/geopandas_tools/buffer_dissolve_explode.py +3 -40
- sgis/geopandas_tools/conversion.py +37 -9
- sgis/geopandas_tools/general.py +330 -106
- sgis/geopandas_tools/geometry_types.py +38 -33
- sgis/geopandas_tools/overlay.py +5 -1
- sgis/io/dapla_functions.py +33 -17
- sgis/maps/explore.py +16 -5
- sgis/maps/map.py +3 -0
- sgis/maps/maps.py +0 -1
- sgis/networkanalysis/closing_network_holes.py +100 -22
- sgis/networkanalysis/cutting_lines.py +4 -147
- sgis/networkanalysis/finding_isolated_networks.py +6 -0
- sgis/networkanalysis/nodes.py +4 -110
- sgis/parallel/parallel.py +267 -182
- sgis/raster/image_collection.py +789 -836
- sgis/raster/indices.py +0 -90
- sgis/raster/regex.py +146 -0
- sgis/raster/sentinel_config.py +9 -0
- {ssb_sgis-1.0.4.dist-info → ssb_sgis-1.0.6.dist-info}/METADATA +1 -1
- {ssb_sgis-1.0.4.dist-info → ssb_sgis-1.0.6.dist-info}/RECORD +24 -26
- sgis/raster/cube.py +0 -1274
- sgis/raster/cubebase.py +0 -25
- sgis/raster/raster.py +0 -1475
- {ssb_sgis-1.0.4.dist-info → ssb_sgis-1.0.6.dist-info}/LICENSE +0 -0
- {ssb_sgis-1.0.4.dist-info → ssb_sgis-1.0.6.dist-info}/WHEEL +0 -0
sgis/raster/cubebase.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
from collections.abc import Callable
|
|
2
|
-
from pathlib import Path
|
|
3
|
-
|
|
4
|
-
from geopandas import GeoDataFrame
|
|
5
|
-
|
|
6
|
-
from .raster import Raster
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
def _from_gdf_func(gdf: GeoDataFrame, **kwargs) -> Raster:
|
|
10
|
-
return Raster.from_gdf(gdf, **kwargs)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
def _raster_from_path(path: str, **kwargs) -> Raster:
|
|
14
|
-
return Raster.from_path(path, **kwargs)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
def _method_as_func(self: Raster, method: str, **kwargs) -> Callable:
|
|
18
|
-
return getattr(self, method)(**kwargs)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
def _write_func(raster: Raster, folder: str, **kwargs):
|
|
22
|
-
path = str(Path(folder) / Path(raster.name).stem) + ".tif"
|
|
23
|
-
raster.write(path, **kwargs)
|
|
24
|
-
raster.path = path
|
|
25
|
-
return raster
|