Creating secure areas in an image service
By creating a secure area in an image service definition, you are either blocking out an area from the display or you are resampling the pixel resolution so the client cannot view the image at its best resolution. For either method, you can define the area by drawing a polygon, using tools on the Draw toolbar such as the Draw Polygon tool or Draw Rectangle tool .
Securing an area with a derived tile
This section walks you through defining a secure area in an image service definition that will be displayed at a poorer resolution.
- Open an image service definition in ArcMap (click the Add Data button ).
- Ensure this image service definition has been built and has a valid boundary. If not, build the image service definition and check the Create Boundary option.
- Check the Preview layer on.
- Optionally, zoom to the area of the image that needs to be secured.
- Click the New Rectangle tool on the Draw toolbar and draw a rectangle over the area that needs to be secured.
-
On the Image Service Definition Editor toolbar, point to Advanced, point to Optimize, point to Derived Tiles, then click Add.
You can also choose to add this as a service overview instead.
-
Set the pixel size to be 5 or 10 times larger than the highest value selectable from the Pixel Size drop-down arrow.
This value should be the best pixel resolution you want people to view in the secured area.
- Open the service table (click the Service Table button ).
- Click and highlight the last record.
- Right-click the MinPS field and click Field Calculator.
- Type 0 in the MinPS = text box and click OK.
- Right-click the DispOrder field and click Field Calculator.
-
Type -1 in the DispOrder = text box and click OK.
This sets the display order so this image will always be displayed on top.
- Build the image service definition with only Generate Derived Images checked.
- Zoom out to refresh the image service definition preview and use the Zoom In and Pan tools to examine the secured area.
Graying out a secure area
This section walks you though turning the secure area defined above into an area that appears completely grayed out in the viewer.
- Open an image service definition that has a secured area, as described in the first procedure.
- Click the Service Properties button on the Image Service Definition Editor toolbar.
- Click the Service Definition node.
- Click the Transparency drop-down arrow and click Unchanged.
- Click the Default Client Properties node.
-
Click the Background Color box and choose a new color, such as gray.
This is the color that will be displayed, rather than the raster data, to the client viewing the secured area.
- Click the Service Table button on the Image Service Definition Editor toolbar.
-
Click to highlight the row containing the secured image derived tile or service overview.
If you used the steps above (in "Securing an area with a derived tile") to create one secure area, this will be the last row in the service table.
- Close the service table.
- Click the Raster Properties button on the Image Service Definition Editor toolbar.
- Click the General node.
- Check the Transparency check box.
- Click the Processes node.
-
Add the Classify Pixel process to the Selected processes list.
You do not need to edit the default properties set for this process.
- Close the Raster Properties dialog box.
- Zoom out to refresh the Preview, then pan or zoom to the secure area to preview the results.