ssb-sgis 1.3.2__py3-none-any.whl → 1.3.4__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.
@@ -268,6 +268,8 @@ def _shapely_pd_overlay(
268
268
  left, right = rtree_runner.run(
269
269
  df1.geometry.values, df2.geometry.values, predicate=predicate
270
270
  )
271
+ left = left.astype(int)
272
+ right = right.astype(int)
271
273
  pairs = _get_intersects_pairs(df1, df2, left, right, rsuffix)
272
274
  assert pairs["geometry"].notna().all(), pairs.geometry[lambda x: x.isna()]
273
275
  assert pairs["geom_right"].notna().all(), pairs.geom_right[lambda x: x.isna()]
@@ -355,7 +355,7 @@ def get_bounds_series(
355
355
  Examples:
356
356
  ---------
357
357
  >>> import sgis as sg
358
- >>> import dapla as dp
358
+ >>> from gcsfs import GCSFileSystem
359
359
  >>> all_paths = GCSFileSystem().ls("...")
360
360
 
361
361
  Get the bounds of all your file paths, indexed by path.
sgis/io/opener.py CHANGED
@@ -5,8 +5,7 @@ from contextlib import contextmanager
5
5
  from typing import Any
6
6
 
7
7
  try:
8
- from dapla import FileClient
9
- from dapla.gcs import GCSFileSystem
8
+ from gcsfs import GCSFileSystem
10
9
  except ImportError:
11
10
 
12
11
  class GCSFileSystem: # type: ignore[no-redef]
@@ -30,7 +29,7 @@ def opener(
30
29
  """
31
30
  if is_dapla():
32
31
  if file_system is None:
33
- file_system = FileClient.get_gcs_file_system()
32
+ file_system = GCSFileSystem()
34
33
  yield file_system.open(str(path), mode=mode)
35
34
  else:
36
35
  yield str(path)
@@ -1,16 +1,15 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ssb-sgis
3
- Version: 1.3.2
3
+ Version: 1.3.4
4
4
  Summary: GIS functions used at Statistics Norway.
5
5
  Home-page: https://github.com/statisticsnorway/ssb-sgis
6
6
  License: MIT
7
7
  Author: Morten Letnes
8
8
  Author-email: morten.letnes@ssb.no
9
- Requires-Python: >=3.10,<4
9
+ Requires-Python: >=3.11
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.10
14
13
  Classifier: Programming Language :: Python :: 3.11
15
14
  Classifier: Programming Language :: Python :: 3.12
16
15
  Classifier: Topic :: Scientific/Engineering :: GIS
@@ -20,7 +19,6 @@ Provides-Extra: test
20
19
  Provides-Extra: xarray
21
20
  Requires-Dist: affine (>=2.4.0)
22
21
  Requires-Dist: branca (>=0.6.0)
23
- Requires-Dist: dapla-toolbelt (>=3.0.1) ; extra == "all" or extra == "bucket"
24
22
  Requires-Dist: dask (>=2024.1.1) ; extra == "all" or extra == "test"
25
23
  Requires-Dist: folium (>=0.14.0)
26
24
  Requires-Dist: gcsfs (>=2024.3.1) ; extra == "all" or extra == "bucket"
@@ -13,7 +13,7 @@ sgis/geopandas_tools/general.py,sha256=DTQM8p-krgR3gA3miP931eCrxDCpF1ya7dRiMy3K_
13
13
  sgis/geopandas_tools/geocoding.py,sha256=sZjUW52ULhQWDLmU51C9_itBePkDuWkp8swvYaiYmJk,679
14
14
  sgis/geopandas_tools/geometry_types.py,sha256=ijQDbQaZPqPGjBl707H4yooNXpk21RXyatI7itnvqLk,7603
15
15
  sgis/geopandas_tools/neighbors.py,sha256=VZGOwwC3-C6KpwLQ3j0K5cOVInmckxIXoGMqPGkemk4,17606
16
- sgis/geopandas_tools/overlay.py,sha256=5i9u8GgFuU0fCqzELsbIaoUPhw-E7eZHl_yKB0wEcGM,23464
16
+ sgis/geopandas_tools/overlay.py,sha256=uR9troLM9amo-z5Bs6jhPtFbr0RrDFsW-WJpeuQ4WSQ,23522
17
17
  sgis/geopandas_tools/point_operations.py,sha256=JM4hvfIVxZaZdGNlGzcCurrKzkgC_b9hzbFYN42f9WY,6972
18
18
  sgis/geopandas_tools/polygon_operations.py,sha256=v-B9IgbFfm4dVHKPyzvmnNiqVCdtl9ddpCsQpZZ-9sU,49284
19
19
  sgis/geopandas_tools/polygons_as_rings.py,sha256=BX_GZS6F9I4NbEpiOlNBd7zywJjdfdJVi_MkeONBuiM,14941
@@ -23,8 +23,8 @@ sgis/geopandas_tools/utils.py,sha256=X0pRvB1tWgV_0BCrRS1HU9LtLGnZCpvVPxyqM9JGb0Y
23
23
  sgis/helpers.py,sha256=4N6vFWQ3TYVzRHNcWY_fNa_GkFuaZB3vtCkkFND-qs0,9628
24
24
  sgis/io/__init__.py,sha256=uyBr20YDqB2bQttrd5q1JuGOvX32A-MSvS7Wmw5f5qg,177
25
25
  sgis/io/_is_dapla.py,sha256=wmfkSe98IrLhUg3dtXZusV6OVC8VlY1kbc5EQDf3P-Q,358
26
- sgis/io/dapla_functions.py,sha256=ZWtUv58GY0RowUGY7vJBk1rrpjoZq8iVZEmSV3GJShU,31883
27
- sgis/io/opener.py,sha256=HWO3G1NB6bpXKM94JadCD513vjat1o1TFjWGWzyVasg,898
26
+ sgis/io/dapla_functions.py,sha256=EmliBKnGm8XELY450BMTYfRtYw2WRMR2SBUxhYP5huw,31896
27
+ sgis/io/opener.py,sha256=3D65XF0dHLigZfzB5uAG-3T_VXVu4wJXZUMzAkqHypc,844
28
28
  sgis/io/read_parquet.py,sha256=FvZYv1rLkUlrSaUY6QW6E1yntmntTeQuZ9ZRgCDO4IM,3776
29
29
  sgis/maps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  sgis/maps/examine.py,sha256=yfYYxn0C9gH3ygS9MnWfzyY9upjNuGJdPZPXcv4vO_8,9201
@@ -61,7 +61,7 @@ sgis/raster/indices.py,sha256=efJmgfPg_VuSzXFosXV661IendF8CwPFWtMhyP4TMUg,222
61
61
  sgis/raster/regex.py,sha256=4idTJ9vFtsGtbxcjJrx2VrpJJuDMP3bLdqF93Vc_cmY,3752
62
62
  sgis/raster/sentinel_config.py,sha256=nySDqn2R8M6W8jguoBeSAK_zzbAsqmaI59i32446FwY,1268
63
63
  sgis/raster/zonal.py,sha256=D4Gyptw-yOLTCO41peIuYbY-DANsJCG19xXDlf1QAz4,2299
64
- ssb_sgis-1.3.2.dist-info/LICENSE,sha256=np3IfD5m0ZUofn_kVzDZqliozuiO6wrktw3LRPjyEiI,1073
65
- ssb_sgis-1.3.2.dist-info/METADATA,sha256=bXRithGOpGcmOzDI1FkZ-trISx9unb2erI1XXwfa91w,11624
66
- ssb_sgis-1.3.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
67
- ssb_sgis-1.3.2.dist-info/RECORD,,
64
+ ssb_sgis-1.3.4.dist-info/LICENSE,sha256=np3IfD5m0ZUofn_kVzDZqliozuiO6wrktw3LRPjyEiI,1073
65
+ ssb_sgis-1.3.4.dist-info/METADATA,sha256=wAMZDLihfcah_G-Um-7ckwBhyWZy3LqUw6u9x6W2Bf4,11492
66
+ ssb_sgis-1.3.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
67
+ ssb_sgis-1.3.4.dist-info/RECORD,,