@@ -79,10 +79,10 @@ package object geotiff {
79
79
)
80
80
81
81
// ~ SpatialTiledRasterLayer in GeoPySpark but supports compression
82
- def saveStitched (rdd : SRDD , path : String , compression : Compression ): Extent =
82
+ def saveStitched (rdd : SRDD , path : String , compression : Compression ): Item =
83
83
saveStitched(rdd, path, None , None , compression)
84
84
85
- def saveStitched (rdd : SRDD , path : String , cropBounds : Map [String , Double ], compression : Compression ): Extent =
85
+ def saveStitched (rdd : SRDD , path : String , cropBounds : Map [String , Double ], compression : Compression ): Item =
86
86
saveStitched(rdd, path, Some (cropBounds), None , compression)
87
87
88
88
def saveStitchedTileGrid (rdd : SRDD , path : String , tileGrid : String , compression : Compression ): JList [(String , Extent )] =
@@ -811,7 +811,7 @@ package object geotiff {
811
811
path : String ,
812
812
cropBounds : Option [Map [String , Double ]],
813
813
cropDimensions : Option [ArrayList [Int ]],
814
- compression : Compression ): Extent = {
814
+ compression : Compression ): Item = {
815
815
val contextRDD = ContextRDD (rdd, rdd.metadata)
816
816
817
817
val stitched : Raster [MultibandTile ] = contextRDD.stitch()
@@ -838,7 +838,9 @@ package object geotiff {
838
838
.withOverviews(NearestNeighbor )
839
839
840
840
writeGeoTiff(geoTiff, path, gtiffOptions = None )
841
- adjusted.extent
841
+
842
+ Item (id = UUID .randomUUID().toString, datetime = null , bbox = adjusted.extent,
843
+ Collections .singletonMap(" openEO" , Asset (path)))
842
844
}
843
845
844
846
def saveStitchedTileGrid (
0 commit comments