Click or drag to resize

GeometryEngine Methods

The GeometryEngine type exposes the following members.

Methods
  NameDescription
Public methodStatic memberArea
Gets the simple area for the Geometry passed in. This is a planar measurement using 2D Cartesian mathematics to compute the area. Use AreaGeodetic(Geometry, AreaUnit, GeodeticCurveType) for geodetic measurement.
Public methodStatic memberAreaGeodetic
Gets the geodesic area of a polygon.
Public methodStatic memberAutoComplete
Fills the closed gaps between polygons using polygon boundaries and polylines as the boundary for the new polygons.
Public methodStatic memberBoundary
Performs a boundary operation on a single geometry.

For Point - returns an empty point.

For Multipoint - returns an empty point.

For Polyline - returns a multipoint.

For Polygon - returns a polyline that bounds the polygon (adds all rings of the polygon to a polyline).

Public methodStatic memberCode exampleBuffer(Geometry, Double)
Creates a buffer polygon at the specified distance around the given geometry. This is a planar buffer operation. Use BufferGeodetic(Geometry, Double, LinearUnit, Double, GeodeticCurveType) to produce geodetic buffers.
Public methodStatic memberCode exampleBuffer(IEnumerableGeometry, IEnumerableDouble, Boolean)
Creates and returns a buffer relative to the given geometries. This is a planar buffer operation. Use BufferGeodetic(Geometry, Double, LinearUnit, Double, GeodeticCurveType) to produce geodetic buffers.
Public methodStatic memberCode exampleBufferGeodetic(Geometry, Double, LinearUnit, Double, GeodeticCurveType)
Performs a geodesic buffer operation on a single geometry.
Public methodStatic memberBufferGeodetic(IEnumerableGeometry, IEnumerableDouble, LinearUnit, Double, GeodeticCurveType, Boolean)
Calculates the geodesic buffer of the geometries in a given collection.
Public methodStatic memberCode exampleClip
Constructs the polygon created by clipping geometry by envelope.
Public methodStatic memberCode exampleCombineExtents(IEnumerableGeometry)
Returns the envelope of geometries in the given collection.
Public methodStatic memberCode exampleCombineExtents(Geometry, Geometry)
Returns the envelope of the two given geometries.
Public methodStatic memberCode exampleContains
Returns true if geometry1 contains geometry2.
Public methodStatic memberCode exampleConvexHull(Geometry)
Returns the convex hull of a geometry
Public methodStatic memberCode exampleConvexHull(IEnumerableGeometry, Boolean)
Returns the convex hull for the geometries in the given collection.
Public methodStatic memberCreatePointAlong
Returns the point at a given distance along a line.
Public methodStatic memberCode exampleCrosses
Returns true if geometry1 crosses geometry2.
Public methodStatic memberCode exampleCut
Cut the 'geometry' with the 'cutter'
Public methodStatic memberCode exampleDensify
Densifies the input geometry by inserting additional vertices along the geometry at an interval defined by maxSegmentLength.
Public methodStatic memberCode exampleDensifyGeodetic
Densifies the input geometry by creating additional vertices along the geometry, using a geodesic curve.
Public methodStatic memberCode exampleDifference
Performs the Topological difference operation on the two geometries.
Public methodStatic memberCode exampleDisjoint
Returns true if geometry1 is not within geometry2.
Public methodStatic memberDistance
Measures the simple Euclidean distance between two geometries. This is a planar measurement using 2D Cartesian mathematics to calculate the distance in the same coordinate space as the inputs. Use DistanceGeodetic(MapPoint, MapPoint, LinearUnit, AngularUnit, GeodeticCurveType) for geodetic measurement.
Public methodStatic memberCode exampleDistanceGeodetic
Calculates the geodesic distance between 2 given points and calculates the azimuth at both points for the geodesic curves that connects the points.
Public methodStatic memberEllipseGeodesic
The function returns a piecewise approximation of a geodesic ellipse (or geodesic circle, if semiAxis1Length = semiAxis2Length). Constructs a geodesic ellipse centered on the specified point. If this method is used to generate a polygon or a polyline, the result may have more than one path, depending on the size of the ellipse and its position relative to the horizon of the coordinate system. When the method generates a polyline or a multipoint, the result vertices lie on the boundary of the ellipse. When a polygon is generated, the interior of the polygon is the interior of the ellipse, however the boundary of the polygon may contain segments from the spatial reference horizon, or from the GCS extent.
Public methodStatic memberEquals
Tests if two geometries are equal (have equivalent spatial reference systems, same geometry type, and same points).
Public methodStatic memberExtend
Extends a polyline using a polyline as the extender.
Public methodStatic memberCode exampleFractionAlong
Finds the location on the line nearest the point, expressed as the fraction along the line's total geodesic length, if the point is within the specified distance from the closest location on the line. The line and point must have consistent spatial references.
Public methodStatic memberCode exampleGeneralize
Performs the generalize operation on the geometries in the cursor. Point and Multipoint geometries are left unchanged. Envelope is converted to a Polygon and then generalized.
Public methodStatic memberCode exampleIntersection
Constructs the set-theoretic intersection between two geometries.
Public methodStatic memberIntersections
Calculates the intersection of two geometries.
Public methodStatic memberCode exampleIntersects
Returns true if geometry1 intersects geometry2.
Public methodStatic memberIsSimple
Gets a value indicating whether or not the geometry is simple.
Public methodStatic memberLabelPoint
Performs the LabelPoint operation on the geometry.
Public methodStatic memberLength
Gets the length for a specified Geometry. This is a planar measurement using 2D Cartesian mathematics to compute the length in the same coordinate space as the inputs. Use LengthGeodetic(Geometry, LinearUnit, GeodeticCurveType) for geodetic measurement.
Public methodStatic memberCode exampleLengthGeodetic
Gets the geodesic length for the Geometry passed in. Geodesic length is calculated using only the vertices of the polygon and define the lines between the points as geodesic segments independent of the actual shape of the polygon. A geodesic segment is the shortest path between two points on an ellipsoid. Thus, if you have a line that spans the width of the world, with only two vertices, each on the edges of the map, the geodesic length would be zero (shortest distance between the two vertices).
Public methodStatic memberCode exampleMoveGeodetic
Moves each map point in the read-only collection by a geodesic distance.
Public methodStatic memberCode exampleNearestCoordinate
Returns a ProximityResult that describes the nearest point in the input geometry to the input point.
Public methodStatic memberCode exampleNearestVertex
Returns a ProximityResult that describes the nearest vertex in the input geometry to the input point.
Public methodStatic memberCode exampleNormalizeCentralMeridian
Folds the geometry into a range of 360 degrees. This may be necessary when wrap around is enabled on the map. If Geometry is an Envelope then a Polygon will be returned unless the Envelope is empty then and Empty Envelope will be returned.
Public methodStatic memberOffset
Returns offset version of the input geometry. The offset operation creates a geometry that is a constant distance from an input polyline or polygon. It is similar to buffering, but produces a one sided result. If offset distance > 0, then the offset geometry is constructed to the right of the oriented input geometry, otherwise it is constructed to the left. For a simple polygon, the orientation of outer rings is clockwise and for inner rings it is counter clockwise. So the "right side" of a simple polygon is always its inside. The bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection can be from the input curve before it is beveled.
Public methodStatic memberCode exampleOverlaps
Returns true if geometry1 overlaps geometry2.
Public methodStatic memberCode exampleProject(Geometry, SpatialReference)
Projects the given geometry from its current spatial reference system into the given spatial reference system.
Public methodStatic memberCode exampleProject(Geometry, SpatialReference, DatumTransformation)
Projects the given geometry from its current spatial reference system into the given output spatial reference system, applying the datum transformation provided.
Public methodStatic memberRelate
Compares the spatial relationship of two geometries. Can compare Interior, Boundary and Exterior of two geometries based on a DE-9IM encoded string. This must be 9 characters long and contain combinations only of these characters: TF*012
Public methodStatic memberRemoveM
Return a copy of the given geometry with its M values removed.
Public methodStatic memberCode exampleRemoveZ
Return a copy of the given geometry with its Z ordinate removed.
Public methodStatic memberRemoveZAndM
Return a copy of the given geometry with its Z ordinate and M values removed.
Public methodStatic memberReshape
Reshapes the specified geometry.
Public methodStatic memberSectorGeodesic
The function returns a piecewise approximation of a geodesic sector. If this method is used to generate a polygon or a polyline, the result may have more than one path, depending on the size of the sector and its position relative to the horizon of the coordinate system. When the method generates a polyline or a multipoint, the result vertices lie on the boundary of the ellipse. When a polygon is generated, the interior of the polygon is the interior of the sector, however the boundary of the polygon may contain segments from the spatial reference horizon, or from the GCS extent.
Public methodStatic memberSetM
Return a copy of a geometry with the supplied M value.
Public methodStatic memberCode exampleSetZ
Return a copy of a geometry with the supplied Z ordinate.
Public methodStatic memberSetZAndM
Return a copy of a geometry with the supplied Z and M values.
Public methodStatic memberSimplify
Simplifies the given geometry to make it topologically consistent according to their geometry type. For instance, it rectifies polygons that may be self-intersecting, or contain incorrect ring orientations.
Public methodStatic memberCode exampleSymmetricDifference
Performs the Symmetric difference operation on the two geometries.
Public methodStatic memberCode exampleTouches
Returns true if geometry1 touches geometry2.
Public methodStatic memberUnion(IEnumerableGeometry)
Calculates the union of a collection of geometries
Public methodStatic memberCode exampleUnion(Geometry, Geometry)
The union operation constructs the set-theoretic union of the geometries in the input array.
Public methodStatic memberCode exampleWithin
Returns true if geometry1 is within geometry2.
Top
See Also