Select to view content in your preferred language

In ArcGIS Pro SDK Raster.GetNoDataValue(), how do I get the nodata value as a double?

303
1
04-26-2019 09:34 AM
BenRufenacht
Occasional Contributor

The Raster.GetNoDataValue() returns an object according to the ArcGIS Pro API reference, but I don't see any further details on the object. What data does the object hold, and how to I access it?

1 Reply
JamesShaefferUSDA
Emerging Contributor

For me, GetNoDataValue() was returning as a float[] type. I just cast the object as a float[], 

float[] noDataValue = raster.GetNoDataValue() as float[];

and noDataValue[0] was my final result.

0 Kudos