sedona icon indicating copy to clipboard operation
sedona copied to clipboard

rs_clip(raster,polygon) get points offset and points missing

Open MyqueWooMiddo opened this issue 5 months ago • 2 comments

spark3.2.2+sedona1.7.2

raster fully covers the polygon

rs_clip(raster,polygon) to generate a clipped raster then save as a geotiff

If we treat the polygon as static , the clipped raster looks like moving letf one pixel and moving up one pixel , and some pixels are not nodata missing on the raster.

如果我们把polygon看作静止的,剪裁出来的tiff,放在global mapper看,像是向左、向上偏移了各一个像素,并且某些像素不是nodata的,被移除了

MyqueWooMiddo avatar Jul 14 '25 07:07 MyqueWooMiddo