This document is archived and information here might be outdated.  Recommended version.


ArcScan (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > ArcScan

ArcScan


Supported with:
  • ArcGIS for Desktop Standard
  • ArcGIS for Desktop Advanced
Library dependencies: Version, System, SystemUI, Geometry, GraphicsCore, Display, Server, Output, Geodatabase, GISClient, DataSourcesFile, DataSourcesGDB, DataSourcesOleDB, DataSourcesRaster, DataSourcesNetCDF, GeoDatabaseDistributed, GeoDatabaseExtensions, Carto, NetworkAnalysis, Location, GeoAnalyst, Animation, Maplex, Geoprocessing, NetworkAnalyst, Schematic, SpatialAnalyst, 3DAnalyst, GlobeCore, EngineCore, TrackingAnalyst, Framework, Desktop.Addins, GeoDatabaseUI, DisplayUI, OutputUI, Search, Catalog, CatalogUI, CartoUI, DataSourcesRasterUI, ArcCatalog, ArcCatalogUI, ArcMap, ArcMapUI, AnimationUI, Editor, GeoReferenceUI, EditorExt, LocationUI, GeoDatabaseDistributedUI, GeoprocessingUI, OutputExtensions, OutputExtensionsUI

Additional library information: Contents, Object Model Diagram

The ArcScan library supports the ArcScan raster-to-vector conversion extension to ArcMap, along with its associated user interface (UI) components, commands, and tools. The ArcScan extension object, Vectorization, is implemented by this library.
Developers do not extend this library.

See the following sections for more information about this namespace:

Vectorization

The focal point in ArcScan is the Vectorization object. This identifies the source raster layer to which all ArcScan functions are applied and maintains the vectorization environment. The properties and methods on this object also perform the raster-to-vector conversion. This class is an ArcMap extension and can be referenced through IApplication.FindExtensionByName.
It is recommended that all ArcScan functions occur within an edit session or edit operation via the Editor object. The editor framework provides undo and redo capabilities as well as supporting functions for vector manipulation.
A typical workflow for performing a conversion through raster snapping, trace, or batch vectorization initially involves establishing the vectorization environment by setting the target raster layer in IVectorizationLayers.CurrentLayer and the vectorization properties in IVectorizationProperties and IVectorizationBatchProperties. The conversion methods can then be called from IVectorization (Snap, Trace, or Vectorize).
The vectorization environment IVectorizationBatchProperties can be saved and retrieved as a style. This enables quick saving and loading of the environment for various types of rasters to be converted (for example, parcel, contour, or vegetation maps). Prior to vectorization, particularly batch vectorization, images can be cleaned by removing noise or filling cells. The RasterCleanup object provides this cleanup environment. As with Vectorization, the RasterCleanup class is an extension and must be referenced through the application.

Raster cleanup operations

The raster cleanup session works similar to an edit session. Raster cleanup operation objects are used within the cleanup session to modify the raster target layer. These work in a similar manner to the drawing tools found in common raster drawing packages. Noise removal can be achieved by selecting raster cells using the methods on IConnectedCells, then erasing the selection.
See the remarks in IRasterCleanup for more information.