gdal_trace_outline producing incorrect results
Opened this issue · 1 comments
I have a raster (a_same_value_correct_ndv.tif) in which all values (except no data value) are 1 (Int16). NDV = -32768, i ran gdal_trace_outline but its producing incorrect results. I was expecting the output to exactly match the raster boundary but its not the case. See Incorrect Output . In this , grey area represents the raster and green is the output of gdal_trace_outline
gdal_trace_outline a_same_value_correct_ndv.tif -ndv -32768 -min-ring-area 50 -out-cs en -no-donuts -dp-toler 0.1 -ogr-out a_same_value_area50_donuts_toler0_1.shp
It looks like it's off by one pixel. One possibility is there is some discrepancy between gdal_trace_outline and your plotting program regarding whether coordinates are zeroed on the corner of pixels vs on the center of pixels.
Can you please attach the input file to this bug report thread?