Creating secure areas in an image service

LegacyLegacy:

ArcGIS 10 is the last release of the stand-alone ArcGIS Image Server product. The image service definition (.ISDef) has been replaced by an improved geodatabase data model—the mosaic dataset—which can be published as an image service using the ArcGIS Server Image extension.

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 Polygon or Draw Rectangle tool Rectangle.

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.

Steps:
  1. Open an image service definition in ArcMap (click the Add Data button Add Data).
  2. 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.
  3. Check the Preview layer on.
  4. Optionally, zoom to the area of the image that needs to be secured.
  5. Click the New Rectangle tool Rectangle on the Draw toolbar and draw a rectangle over the area that needs to be secured.
  6. 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.

  7. 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.

  8. Open the service table (click the Service Table button Service Table).
  9. Click and highlight the last record.
  10. Right-click the MinPS field and click Field Calculator.
  11. Type 0 in the MinPS = text box and click OK.
  12. Right-click the DispOrder field and click Field Calculator.
  13. Type -1 in the DispOrder = text box and click OK.

    This sets the display order so this image will always be displayed on top.

  14. Build the image service definition with only Generate Derived Images checked.
  15. 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.

Steps:
  1. Open an image service definition that has a secured area, as described in the first procedure.
  2. Click the Service Properties button Image Service Properties on the Image Service Definition Editor toolbar.
  3. Click the Service Definition node.
  4. Click the Transparency drop-down arrow and click Unchanged.
  5. Click the Default Client Properties node.
  6. 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.

  7. Click the Service Table button Service Table on the Image Service Definition Editor toolbar.
  8. 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.

  9. Close the service table.
  10. Click the Raster Properties button Raster Properties on the Image Service Definition Editor toolbar.
  11. Click the General node.
  12. Check the Transparency check box.
  13. Click the Processes node.
  14. Add the Classify Pixel process to the Selected processes list.

    You do not need to edit the default properties set for this process.

  15. Close the Raster Properties dialog box.
  16. Zoom out to refresh the Preview, then pan or zoom to the secure area to preview the results.

Related Topics


4/19/2011