ssb-sgis 1.1.11__py3-none-any.whl → 1.1.12__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/raster/image_collection.py +5 -4
- {ssb_sgis-1.1.11.dist-info → ssb_sgis-1.1.12.dist-info}/METADATA +1 -1
- {ssb_sgis-1.1.11.dist-info → ssb_sgis-1.1.12.dist-info}/RECORD +5 -5
- {ssb_sgis-1.1.11.dist-info → ssb_sgis-1.1.12.dist-info}/LICENSE +0 -0
- {ssb_sgis-1.1.11.dist-info → ssb_sgis-1.1.12.dist-info}/WHEEL +0 -0
sgis/raster/image_collection.py
CHANGED
|
@@ -214,13 +214,14 @@ class PixelwiseResults:
|
|
|
214
214
|
|
|
215
215
|
def to_geopandas(self, column: str | list[str] = "value") -> GeoDataFrame:
|
|
216
216
|
"""Return GeoDataFrame with pixel geometries and values from the pixelwise operation."""
|
|
217
|
-
minx, miny = self.bounds[:2]
|
|
218
217
|
resx, resy = _res_as_tuple(self.res)
|
|
219
218
|
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
# work ourselves inwards from the bottom left and top right corners
|
|
220
|
+
minx, _, _, maxy = self.bounds
|
|
221
|
+
minxs = np.full(self.col_indices.shape, minx) + (self.col_indices * resx)
|
|
222
|
+
maxys = np.full(self.row_indices.shape, maxy) - (self.row_indices * resy)
|
|
222
223
|
maxxs = minxs + resx
|
|
223
|
-
|
|
224
|
+
minys = maxys - resy
|
|
224
225
|
|
|
225
226
|
return GeoDataFrame(
|
|
226
227
|
{
|
|
@@ -54,12 +54,12 @@ sgis/parallel/parallel.py,sha256=CzHetSAr9wvSrEDFTqDq2xAsNuG1ig22-vcEOIoUVv4,396
|
|
|
54
54
|
sgis/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
55
55
|
sgis/raster/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
56
|
sgis/raster/base.py,sha256=tiZEuMcVK6hOm_aIjWhQ1WGshcjsxT1fFkuBSLFiMC0,7785
|
|
57
|
-
sgis/raster/image_collection.py,sha256=
|
|
57
|
+
sgis/raster/image_collection.py,sha256=hpIVKBizlhn5YyxXoSpXHNVo0eVy5PfTnJCwpw2V1rQ,123152
|
|
58
58
|
sgis/raster/indices.py,sha256=-J1HYmnT240iozvgagvyis6K0_GHZHRuUrPOgyoeIrY,223
|
|
59
59
|
sgis/raster/regex.py,sha256=kYhVpRYzoXutx1dSYmqMoselWXww7MMEsTPmLZwHjbM,3759
|
|
60
60
|
sgis/raster/sentinel_config.py,sha256=nySDqn2R8M6W8jguoBeSAK_zzbAsqmaI59i32446FwY,1268
|
|
61
61
|
sgis/raster/zonal.py,sha256=D4Gyptw-yOLTCO41peIuYbY-DANsJCG19xXDlf1QAz4,2299
|
|
62
|
-
ssb_sgis-1.1.
|
|
63
|
-
ssb_sgis-1.1.
|
|
64
|
-
ssb_sgis-1.1.
|
|
65
|
-
ssb_sgis-1.1.
|
|
62
|
+
ssb_sgis-1.1.12.dist-info/LICENSE,sha256=np3IfD5m0ZUofn_kVzDZqliozuiO6wrktw3LRPjyEiI,1073
|
|
63
|
+
ssb_sgis-1.1.12.dist-info/METADATA,sha256=UMYFkb-iBAu40ktwp9hVhdXoQ4MHvO4osBaCwCG5xHU,11741
|
|
64
|
+
ssb_sgis-1.1.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
65
|
+
ssb_sgis-1.1.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|