AE IMAP interface member

Source: Internet
Author: User
Tags imap

Displays data from various data sources using an IMAP interface.
Members of the IMAP interface
Activegraphicslayer: The active graphics layer, if one is not created, will create a basic memory graphics layers.
AddLayer: Adds a single layer to the map.
Addlayers: Add multiple layers to the map.
Addmapsurround: Add a map surround to your maps.
Annotationengine: Map uses the annotation (label) engine.
Areaofinterest: Area of interest in the map.
Barriers:barriers list and label weights.
Basicgraphicslayer: Basic graphics layer.
Clearlayers: Removes all layers from the map.
Clearmapsurrounds: Removes all the side notes from the map.
ClearSelection: Clears the map selection.
An optional boundary around the clipborder:clipgeometry.
Clipgeometry: A shape to cut in the map layer.
Computedistance: Calculates the distance of two points on the map and returns the result.
Createmapsurround: Creates and initializes a map surround. Specifies an optional style from the style set.
Delaydrawing: Pause Drawing.
Delayevents: Reduce notifications by combining actions in batches.
Deletlayer: Removes a layer from the map.
Deletemapsurround: Remove map surround from the maps.
Description: Map Description.
Distanceunits: The distance unit of the map.
Expanded: Indicates whether the map can be expanded.
Featureselection: The feature selected in the map.
GetPageSize: Gets the page size of the map.
Isframed: Indicates whether the map is drawn within a frame rather than the entire window.
Layer: The layer of the given ordinal.
LayerCount: The number of layers in the map.
Layers: A map layer with a UID indicating the type. If recursive is true, the layers is returned as a layers.
Mapscale: A map scale in digital form.
Mapsurroundcount: Number of side notes associated with the map.
Mapunits: Map units.
Movelayer: Move one layer to a different location.
Name: Map names.
Recalcfullextent: Recalculates the full amplitude range.
Referencescale: A map reference scale in fractional form.
Selectbyshape: Select features in the map with a geometry and selection environment (optional).
Selectfeature: Select a feature.
Selectioncount: The number of features selected.
SetPageSize: Sets the page size of the map (optional).
Spatialreference: The spatial reference of the map.
Spatialreferencelocked: Indicates whether the spatial reference is allowed to change.
Usesymbollevels: Indicates whether to draw the map using symbol levels.
Annotationengine:map uses the Annotion (label) engine.
Areaofinterest: Area of interest in the map.
Class map implements the interface IMAP.
Each map file contains at least one map object. But each time only one map can get the focus, this map is called the Focus map. Use Imxdocument to access all map objects in the document; Imxdocument::focusmap returns the map reference that currently has focus. Imxdocument:maps returns a reference to all map objects (IMAPS). A map document can contain any number of map objects--only the focus map is displayed in the Data View.
A map object that manages a series of layer objects. Each layer has a spatial reference. A spatial reference defines a resolution (1/precision) and a coordinate system. The map coordinate system is automatically set to the coordinate system of the first layer, and the resolution is calculated based on all layer ranges.
Several common properties and methods:
Imap.addlayer Method (add layer to map)
[Visual Basic.NET] Public Sub AddLayer (ByVal Layer as ILayer)
[C #] public void AddLayer (Ilayer Layer)
The Addlayer method adds a layer to the map. Use the LayerCount property to get the total number of layers in the map. If map does not have a coordinate system set, Addlayer automatically sets the Spatialreference property of the map. The map's mapunits and Distanceunits properties are set after the spatial reference property of the local map is set. Addlayer also sets the spatial reference of the layer.
Imap.deletelayer Method (delete a layer from map)
[Visual Basic.NET] Public Sub Deletelayer (ByVal Layer as ILayer)
[C #] public void Deletelayer (ILayer Layer)
If a layer is selected (Imxdocument::selectedlayer) in the TOC window, you can pass it to the Deletelayer method. When you delete a layer referencing a feature class, such as Featurelayer, execute IDataLayer2::D Isconnect can clearly refer to a feature class.
Imap.featureselection Property (imap.featureselection attribute)
[Visual Basic.NET] Public Property Featureselection as Iselection
[C #] public iselection Featureselection{get;set;}
ArcMap has two different selection sets, feature selection and element selection. Two different objects represent these choices and all implement the Iselection interface. The feature Selection object also implements the Ienumfeature interface, and the element selection also implements Ienumelement. The Iselection interface is used for clipboard type operations, and the Ienum interface is for items in the collection.
When you access featureselection from IMAP, a iselection is returned. When you select by Iactiveview::selection, you can either be an element selection or a feature selection, depending on which one is active-only one is active at a time. Use feature selection to make sure that you reference to the correct selection.
The Ienumfeature works on all feature layers. Each featurelayer has a iselectionset and ienumfeature. Ienumfeature work on all featurelayer, you can't use it to traverse a layer's features.
Note that only the shape field is guaranteed to be used for selection. The Imap::featureselection property is used to draw a map selection instead of accessing feature attributes. Be aware of the shapefiles, coverage, and geodatabases. If you want to traverse the map selection to perform an action, it is best to access each layer's selection set instead of the entire map.
Imap.layer Property (Imap.layer attribute)
[Visual Basic.NET] Public Function Get_layer (ByVal Index as Integer) as ILayer
[C #] Public ILayer get_layer (int Index);
Maps is made up of countless layers in various data sources. Use the Layer property to access a specific layer of the map. The layer set starts at 0. Use the Layer property and the LayerCount property to traverse each layer in the map.
The Layer property returns a Ilayer reference. Commonly used if (player is ifeaturelayer) to judge. For example, don't assume that all layers in a map are featurelayers. The layer that implements the Ilayer and Idatalayer interfaces is a valid layer.
Each map also has a basic graphics layer, but it is not included in the set of layers returned by this property. A reference to this layer can be obtained through the Basicgraphicslayer property.
Imap.selectbyshape Method
Select features by Geometry and selection environment (optional)
[Visual Basic.NET] Public Sub Selectbyshape (ByVal Shape as Igeometry,byval env as Iselectionenviroment,byval Justone as Boolean)
[C #] public void Selectbyshape (Igeometry shape,iselectionenvironment env,bool justone);
Selectbyshape searches all ifeaturelayer for features that intersect the input graph and searches for the layer only if the Ifeaturelayer::selectable property is set to true.
Iselectionenvironment decided to choose the result. For example, create a new selection or add features to an existing selection set. Use the application's selection environment through Imxapplication::selectionenviroment.
The Justone variable controls whether a search is stopped after a feature is found.
Call iactiveviewevents::selectionchanged notification selection has changed after the search is complete.

AE IMAP interface member

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.