Is there any way to determine what the nodata value should be, in a set of geotiff images that do not have the 42113 tiff tag ?
I am trying to get elevation information, programatically in c++, and I have encountered areas that return a value of -1 (when I skim over the longitude/latitude points in Global Mapper, and I get to certain points the cursor seems to just skip over them and the elevation shows -1, jumping from something like 200 so I know the info is missing on that exact point).
I would like to have some way of determining an invalid value for the elevation/ nodata, but I haven't found anything in my searches. And I don't trust my assumption of -1 being bad data, since it can be a very reasonable elevation.
Thank you.
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
|
|||||
|
|
I believe you have to look for the source of data. Different software use different nodata values. Once you know that, you can QGIS--> raster calculator to set that nodata value to your desirable nodata value. If you don't have that information, you can look for outliers in a 3x3 or 5x5 window. But if you are working on built environment or values are close to -1 (say ranging from -5 to 50), then I think its not possible to look for nodata values. Global mapper sets -32767 to nodata values. You can export your tiff as 32 bit floating point elevation values and look for -32767 also. Best way is to check what nodata value is set by source. Cheers N |
|||
|
|