ArcGIS Interface Detailed Description ... 1
1. Ifield interface (esrigeodatabase) ... 2
2. Ifieldedit interface (esrigeodatabase) ... 2
3. Ifields interface (esrigeodatabase) ... 2
4. IRow interface (esrigeodatabase) ... 3
5. Itable interface (esrigeodatabase) ... 3
6. Iarea interface (esrigeometry) ... 4
7. Ienvelope interface (esrigeometry) ... 4
8. IPoint interface (esrigeometry) ... 5
9. Ipointarray interface (esrigeometry) ... 5
Ipointcollection interface (esrigeometry) ... 6
Ipolyline interface (esrigeometry) ... 6
Igeometry interface (esrigeometry) ... 6
Ifeature interface (esrigeodatabase) ... 7
Ifeaturelayer interface (Esricarto) ... 8
Ifeatureclass interface (esrigeodatabase) ... 8
Ifeaturecursor interface (esrigeodatabase) ... 9
Ispatialfilter interface (esrigeodatabase) ... 9
Iqueryfilter interface (esrigeodatabase) ... 11
Ifeatureselection interface (Esricarto) ... 11
IMAP interface (ESRICARTO). 11
Ipropertyset interface (Esrisystem). 12
Ifeatureworkspace interface (esrigeodatabase) ... 12
Iworkspaceedit interface (esrigeodatabase) ... 12
Iworkspacefactory interface (esrigeodatabase) ... 13
Itopologicaloperator interface (esrigeometry) ... 13
1. Ifield Interface (esrigeodatabase)
The first property of the Ifield interface aliasname (read-only, gets the alias of the field)
The second method of the Ifield interface is CheckValue (value) (method, which, for the specified property field, determines whether the parameter value is valid, valid, and returns True, otherwise false, based on the field type)
Example code:
Ifeatureclass pfc_scp_pt;
EDITPT = new Fieldclass ();
Editpt.precision_2 = 8;
editpt.scale_2 = 3;
editpt.name_2 = "ELEV1";
editpt.type_2 = esrifieldtype.esrifieldtypedouble;
The other properties of the Ifield interface are read-only and are commonly used with name (read-only, get the name of the field) 2. Ifieldedit Interface (esrigeodatabase)
All the properties of this interface are readable and writable, often with the setting of the new field, because once the field is set, its base property cannot be changed, so a variable of that interface type is required to be converted by:
Ifeatureclass pfc_scp_pt;
Ifieldedit editpt = new Fieldclass ();
Pfc_scp_pt. AddField ((Ifield) editpt);
If you write code in VB, the assignment and get are the same attribute, and in C #, in order to distinguish between the set and get, the property has two, similar to the name and name_2, so it can be distinguished, generally with the set of the _2 of that property.
The first property of the Ifieldedit interface name (read-write, set, or get the name of the variable-type variable field)
The second property of the Ifieldedit interface precision (read-write, set or get the length of the variable-type variable field)
The third attribute of the Ifieldedit interface scale (read-write, set or get the precision of the variable-type variable field)
The fourth attribute of the Ifieldedit interface type (read-write, set or get the type of the variable-type variable field)
3. Ifields Interface (esrigeodatabase)
The first attribute of the Ifields interface is field (Index) (read-only, to be used to get the specific field, the return type is Ifield)
The second property of the Ifields interface FieldCount (read-only, to get the number of properties)
Use the above two interfaces and loop through the index to get the properties of each column Pfield (Ifield interface)
The third method of the Ifields interface is FindField (name) (method, enter the name of the domain field that you want to find, and if so, returns the index of the domain field in this fields, no then returns-1)
The fourth method of the Ifields interface is Findfieldbyaliasname (Name) (method, similar to the third method, at which time the alias of the Column property field is entered, which is not used frequently)
4. IRow Interface (esrigeodatabase)
the first method of the IRow interface Delete (method, delete the row)
The second property of the IRow interface, fields (read-only, gets the field collection of the feature feature, and the return value is Ifields type) This method is similar to the domain property of the Ifeature interface
The third method of the IRow interface is the store (method, which saves the row. This method is similar to the store method of the Ifeature interface
The fourth property of the IRow interface table (read-only, gets the table that contains the row, and the return value is itable type)
The fifth property of the IRow interface, Value (index) (read-write, gets the value of the row's field in the parameter index, and note that the index is starting from 0. )
Object. Value (Index) = [value]
the sixth property of the IRow interface hasoid (read-only to determine if the row has an OID)
The Seventh property OID of the IRow interface (read-only, gets the OID value of the row)
5. Itable Interface (esrigeodatabase)
Itable the feature class as a table, each column corresponds to a field (field), and each row corresponds to one feature (Feature), so operations on the feature Class (Ifeatureclass) interface can be similar to those found in the Itable interface.
Two interfaces can be coerced into the following:
Ifeatureclass PFC;
ITable ptable;
ptable = (ITable) PFC;
The first method of the Itable interface AddField (field) (method, adds an attribute field to the table where the passed parameter is a Ifield interface variable that can be obtained by other tables and assigned to the table to be manipulated, Available with the field property of the Ifeilds interface)
The second method of the Itable interface, GetRow (OID) (method, gets a row from the table database through the OID, returns a variable of IRow interface) This method is similar to the Getfeature method of the Ifeatureclass interface
The third method of the Itable interface GetRows (OIDs, Recycling) (method, gets a cursor icursor, passes a oids of the oid array parameter and a Recycling of the Boolean type parameter, Generally true) This method is similar to the Getfeatures method of the Ifeatureclass interface
The fourth method of the Itable interface, ROWCOUNT (QueryFilter) (method, gets the number of rows that satisfy the query filter criteria. This method Ifeatureclass interface does not, so is a good way to conditionally query the number of features)
6. Iarea Interface (esrigeometry)
The first property of the Iarea interface area (read-only, returns a numeric value of type Double, which is a space of
The second property of the Iarea interface centroid (read-only, returns a variable of type ipoint, the center of gravity for this area)
The third property of the Iarea interface Lablepoint (read-only, returns a variable of type ipoint, the location of the label for this area, typically inside the area)
The fourth method of the Iarea Interface Querycentroid (center) (method, the center parameter is a variable of type ipoint, by calling this method assigns the center of Gravity point to the parameter center)
The fifth method of the Iarea interface Querylablepoint (Lablepoint) (method, lablepoint parameter is a variable that sets the IPoint type, by calling this method assigns the label point to the parameter lablepoint)
7. Ienvelope Interface (esrigeometry)
The first method of the Ienvelope interface Centerat (PPoint) (method that moves the bounding rectangle to the position of the parameter ppoint, but the other property is the same, such as its width and height)
The length and Width properties of the Ienvelope interface (read and write, which can be obtained or set by the length and width of the border)
The 4 vertex properties of the Ienvelope interface Upperleft, Upperright, Lowerleft, and Lowerright (read and write, return four vertices of the ipoint type, which is more convenient and rigorous than directly obtaining the most value coordinates)
Ienvelope the maximum coordinate properties of the interface Xmax, XMin, Ymax, and ymin (read and write, which can be used to get or set the coordinates of the four vertices of the bounding rectangle)
The fifth method of the Ienvelope interface, Union (Inenvelope) (method, sets the geometry border of the parameter input and calls the method's geometry bounding set, and assigns the result to the first border, the object that calls this method)
Example code:
The sixth method of the Ienvelope interface, Union (Inenvelope) (method, returns the geometry border of the area that intersects the input parameter and assigns the result to the first border, the object that called this method)
The seventh method of the Ienvelope interface Putcoords (XMin, Ymin,xmax,ymax) (method that sets the 4 polar coordinates of a newly created border to the input parameters)
The eighth method of the Ienvelope interface Querycoords (XMin, Ymin,xmax,ymax) (method that outputs 4 polar coordinates of an existing border to the parameter for later use)
The Nineth method of the Ienvelope interface is expand (dx, DY, Asratio) (method that zooms in or out of the current border by the input dx and dy parameters, zooms in or out with the center of the ArcMap form, or clicks the screen to get the coordinates of the click Point. and set the center point to the point of click, and a certain proportion of magnification or reduction)
Example code:
The general setting is true to control the magnification of multiples
The tenth method of the Ienvelope interface is offset (X, Y) (method that moves the existing border horizontally vertically according to the size of the input parameter)
8. IPoint Interface (esrigeometry)
The first method of the IPoint interface is putcoords (x, Y) (method that sets the coordinates of the point) or directly calls the properties X and Y that can read and write, assigning coordinates to X and Y
Example code:
Dim PPoint Asipoint
Set ppoint = Newpoint
ppoint.putcoords100,100
The second method of the IPoint interface querycoords (x, Y) (method to get the coordinates of that point)
Example code:
Dim PPoint Asipoint
Dim DX asdouble,dyasdouble
Ppoint.querycoordsdx,dy
The third method of the IPoint interface is Constrainangle (Constraintangle, Anchor, Allowopposite) (method, if the third argument allowopposite is true, The second parameter anchor the point as an Origin, then takes the first parameter constraintangle to the angle of the x-axis, makes a straight line, and then takes the point that calls this parameter to the line and makes a perpendicular to a new point, and moves the point that calls this method to that point.
The fourth method of the IPoint interface is constraindistance (Constraintradius, Anchor) (method, which is the center of the second parameter anchor this point and then a circle with the first parameter Constraintradius as the radius). , move the point that calls this parameter to the point where the line segment crosses the intersection of the circle)
9. Ipointarray Interface (esrigeometry)
The first method of the Ipointarray interface, add (P) (method, adds a point to an array variable of that type)
The second property of the Ipointarray interface, COUNT (read-only, gets the number of point in the array variable, returning a long type variable)
The third property of the Ipointarray interface, Element (Index) (read-only, gets the point at which the array variable is located at the index of the parameter index, which returns a variable of type ")
The fourth method of the Ipointarray interface Insert (Index, p) (method, insert a point to index position index)
The fifth method of the Ipointarray interface, remove (index) (method, removes the index position at the point of the location index)
The sixth method of the Ipointarray interface RemoveAll (method that removes all points in this array)
Ipointcollection Interface (esrigeometry)
The first method of the Ipointcollection interface Addpoint (Inpoint [, before] [, after]) (method, adds a point to the set of points for that type, the first argument is the added dot, the second third argument is a selectable argument, Add the end of the point set by default)
The second property of the Ipointcollection interface, point (i) (read-only, gets the dot in the I position of the set variable, returns the IPoint type variable, and I starts with the 0 calculation)
The third property of the Ipointcollection interface Pointcount (read-only, gets the number of points in the point set variable, returns a long type variable, remember, if a pointcollection variable is converted from a closed geometry, Then the number of points is one more than the number of nodes, because it is closed, so the first node is the same point)
Ipolyline Interface (esrigeometry)
The first property of the Ipolyline interface Frompoint and Topoint (read and write, set or read the starting and ending points of the point, and return all variables of the ipoint type)
The second method of the Ipolyline interface Queryfrompoint (from) (method that returns a variable of type ipoint to the parameter from)
The third method of the Ipolyline interface Querytopoint (To) (method, returns a variable of type ipoint to the parameter to)
The fourth method of the Ipolyline interface generalize (Maxallowableoffset) (method, with Douglaspuck hair to simplify polyline)
The fifth method of the Ipolyline interface, Weed (Maxallowableoffsetfactor) (method, is similar to method generalize, is the method of simplifying polyline, which is different from the parameter. )
Igeometry Interface (esrigeometry)
The first property of the Igeometry interface dimension (read-only, returns a geometric dimension of the shape that is of type esrigeometrydimension)
1 esrigeometrynodimension
2 esrigeometry0dimension
3 esrigeometry1dimension
4 esrigeometry2dimension
5 esrigeometry25dimension
6 esrigeometry3dimension
The second property of the Igeometry interface extent (read-only, returns the maximum bounding rectangle of the geometry range of the shape with the type Ienvelope)
The third property of the Igeometry interface Geometrytype (read-only, returns the geometry type of the graph of type Esrigeometrytype)
Esrigeometrynull = 0
Esrigeometrypoint = 1
Esrigeometrymultipoint = 2
Esrigeometrypolyline = 3
Esrigeometrypolygon = 4
Esrigeometryenvelope = 5
Esrigeometrypath = 6
Esrigeometryany = 7
Esrigeometrymultipatch = 9
esrigeometryring = 11
Esrigeometryline = 13
Esrigeometrycirculararc = 14
Esrigeometrybezier3curve = 15
Esrigeometryellipticarc = 16
Esrigeometrybag = 17
Esrigeometrytrianglestrip = 18
Esrigeometrytrianglefan = 19
Esrigeometryray = 20
Esrigeometrysphere = 21