Hi, I’m using QGIS to click points on a raster image, and subsequently I use ogr from osgeo to expand the region by creating a new polygon feature with a given x and y expansion distance around the clicked points. I’m trying to use PolygonClassStatistics (followed by SampleSelection and SampleExtraction) to extract all the points inside this expansion. PolygonClassStatistics states that for polygon geometries it will “select pixels whose center is inside the polygon.” When I look visually at the polygon added (a square with the expanded x and y dimensions), I see that it encompasses several pixels. However PolygonClassStatistics only counts 2. I’m unsure how to debug this issue, as clearly several pixels aren’t being accounted for. How might I be able to recapture these pixels?
My system: macOS
Version of the OTB: 7.2
I installed the OTB with: the binaries
QGIS version: 3.10.10
Python version: 3.7.7