Skip to content

Files

Latest commit

4294fdc · Nov 6, 2024

History

History

WorkingWithRasterLayers

WorkingWithRasterLayers

This sample demonstrates how to work with raster layers in ArcGIS Pro. The samples includes these functions:

1.) Create a new image service layer and add the layer to the current map.
2.) Set the compression type and quality to JPEG and 85 on the selected image service layer.
3.) Set the processing template to Natural Color on the selected image service layer.
4.) Set the stretch type to Percent Clip and enable DRA on the selected image service layer.
5.) Set the resampling type to Nearest Neighbor on the selected image service layer.

View it live

Language:              C#
Subject:               Map Authoring
Contributor:           ArcGIS Pro SDK Team <[email protected]>
Organization:          Esri, https://www.esri.com
Date:                  11/04/2024
ArcGIS Pro:            3.4
Visual Studio:         2022
.NET Target Framework: net8.0-windows

Resources

Community Sample Resources

Samples Data

  • Sample data for ArcGIS Pro SDK Community Samples can be downloaded from the Releases page.

How to use the sample

  1. In Visual Studio click the Build menu. Then select Build Solution.
  2. Click Start button to open ArcGIS Pro.
  3. ArcGIS Pro will open.
  4. Open a new map view using the Map tempalte (using this path: "CIMPATH=map/map.xml")
  5. Click on the ADD-IN tab.
  6. Click the Add Raster Layer button to add a new image service layer to the map.
  7. Click on the other buttons described above to set different properties in the image service layer.
    UI

      ArcGIS Pro SDK for Microsoft .NET Framework              Home | API Reference | Requirements | Download | Samples