Hello, I would like to use ArcGIS Pro SDK for .NET to convert an int array into a Raster object and display it on the Map. How can I achieve this?
Solved! Go to Solution.
There is no direct way to do that. Workflow is following:
1. Create raster in database or file using geoprocessing
2. Using snippet for "Read and Write pixels from and to a raster dataset using pixel blocks" update pixels from your array.
3. Save raster
4. Create layer and add to map
I want to directly convert an int array to a Raster object in the SDK. Is this not achievable?
Another way is to use GraphicsLayer or overlay graphics. Make a square symbol with dimensions of raster cell size and put different color symbols from your array depending on array item value. It would be fast solution if you have few hundred of points
There is no direct way to do that. Workflow is following:
1. Create raster in database or file using geoprocessing
2. Using snippet for "Read and Write pixels from and to a raster dataset using pixel blocks" update pixels from your array.
3. Save raster
4. Create layer and add to map