locationtech / rasterframes

Geospatial Raster support for Spark DataFrames
http://rasterframes.io
Apache License 2.0
240 stars 46 forks source link

rf_rasterize of circles of same diameter return tiles of different sizes #556

Open jornfranke opened 2 years ago

jornfranke commented 2 years ago

This might not be an issue, but I could not verify this understanding in the documentation. Here is what I do:

Input: Raster "A" (cells with continuous values) Multiple Points (Geometry)

Process:

The statistics (min,max,mean,variance) look good and plausible. I have only one issue with data_cells and na_datacells. For some masks the total sum of the two is 65536 and others it is 131072 (=2*65536). Is this correct? I would have expected it would always be the same. Maybe if the circle falls at certain positions on the raster mask there is a need to make it double the size. As said, the other statistics are correctly calculated.