ssb-sgis 1.1.10__py3-none-any.whl → 1.1.11__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 +8 -4
- {ssb_sgis-1.1.10.dist-info → ssb_sgis-1.1.11.dist-info}/METADATA +1 -1
- {ssb_sgis-1.1.10.dist-info → ssb_sgis-1.1.11.dist-info}/RECORD +5 -5
- {ssb_sgis-1.1.10.dist-info → ssb_sgis-1.1.11.dist-info}/LICENSE +0 -0
- {ssb_sgis-1.1.10.dist-info → ssb_sgis-1.1.11.dist-info}/WHEEL +0 -0
sgis/raster/image_collection.py
CHANGED
|
@@ -212,19 +212,23 @@ class PixelwiseResults:
|
|
|
212
212
|
)
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
def to_geopandas(self, column: str = "value") -> GeoDataFrame:
|
|
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
217
|
minx, miny = self.bounds[:2]
|
|
218
218
|
resx, resy = _res_as_tuple(self.res)
|
|
219
219
|
|
|
220
|
-
minxs = np.full(self.row_indices.shape, minx) + (
|
|
221
|
-
minys = np.full(self.col_indices.shape, miny) + (
|
|
220
|
+
minxs = np.full(self.row_indices.shape, minx) + (self.row_indices * resx)
|
|
221
|
+
minys = np.full(self.col_indices.shape, miny) + (self.col_indices * resy)
|
|
222
222
|
maxxs = minxs + resx
|
|
223
223
|
maxys = minys + resy
|
|
224
224
|
|
|
225
225
|
return GeoDataFrame(
|
|
226
226
|
{
|
|
227
|
-
|
|
227
|
+
**(
|
|
228
|
+
{col: [x[i] for x in self.results] for i, col in enumerate(column)}
|
|
229
|
+
if not isinstance(column, str)
|
|
230
|
+
else {column: self.results}
|
|
231
|
+
),
|
|
228
232
|
"geometry": [
|
|
229
233
|
box(minx, miny, maxx, maxy)
|
|
230
234
|
for minx, miny, maxx, maxy in zip(
|
|
@@ -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=BfXkt05MoWLUNe_rqSW0uuX8YFqTXl2CDLa5y1ifgIk,123074
|
|
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.11.dist-info/LICENSE,sha256=np3IfD5m0ZUofn_kVzDZqliozuiO6wrktw3LRPjyEiI,1073
|
|
63
|
+
ssb_sgis-1.1.11.dist-info/METADATA,sha256=P7MbctOE50tjm1zeAGSEBcZENurWg2eb_qGaN_sokU0,11741
|
|
64
|
+
ssb_sgis-1.1.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
65
|
+
ssb_sgis-1.1.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|