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?
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
Hi,
There are many examples of working with raster here.
You can create raster using geoprocessing called from ArcGIS Pro SDK for .Net. More info about raster creating geoprocessing tool here. How to call geoprocessing tool from ArcGIS Pro SDK for .Net is here
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
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.