How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample.
Deploy the image service SOE
- Log in to ArcGIS Server Manager and click Site.
- Click Extensions.
- Click Add Extension.
- Click Browse and navigate to the .soe file, which by default is located at <ArcGIS DeveloperKit install location>\Samples\ArcObjectsNet\ISSOERasterAccess\CSharp\ISSOERasterAccess\bin\Release\ISSOERasterAccess.soe.
- Click OK.
Enable the SOE on an image service
- Login to ArcGIS Server Manager and click Manage Services.
- On the Services tab of Manager, select an image service that is published from a mosaic dataset. In the list of available capabilities, find "Raster Access" and check the box to enable it. If there is a list of available operations allowed, select all of them.
- Click the Save and Restart button to restart the service.
Test the SOE in ArcGIS Server Services Directory
- Open a browser and navigate to the root REST services endpoint for ArcGIS Server (for example: http://<server name>:6080/arcgis/rest/services). You'll see a list of services, including the USA map service created in the previous section.
- Click the image service created in the previous section
- Use the following url to access the root resource of the SOE: http://<server name>:<port>/arcgis/rest/services/<name of service>/ImageServer/exts/ISSOERasterAccess.
- Click the SOE name. The REST SOE description page displays the description and whether the service support raster item access (whether the service is created from mosaic dataset), and one operation called GetRasterStatistics.
- Click the GetRasterStatistics operation and type in a valid ObjectID, e.g. 1 and click either the echo (GET) or echo (POST) button. The operation will return the max, min, mean, and standard deviation values. --- For this to work, raster items in the mosaic dataset needs to have statistics built, you can use "build pyramids and statistics" to achieve this.
ISSOERasterAccess\ISSOERasterAccess.cs | Core image service SOE implementation |
ISSOERasterAccess\bin\Release\ISSOERasterAccess.soe | The deployable SOE file |