Skip to content

You can perform many different types of geometry analyses with the ArcGIS APIs.

The operations are categorized into the following:

  1. Spatial relationship
  2. Geometric calculation
  3. Length and area
  4. Projection

Click on the tables below to learn how to execute each operation with ArcGIS APIs.

Spatial relationship

Spatial relationship operations determine the topological association between two geometries and return true or false.

OperationDescription
Relation (yellow = true)
ContainsReturns true if one geometry contains another geometry.Diagram where one geometry fully contains another
The left geometry contains the top geometry.
DisjointReturns true if one geometry does not intersect another geometry.Diagram where two geometries do not overlap
The left geometry is disjoint from the top geometry.
IntersectsReturns true if one geometry intersects another geometry.Diagram where two geometries cross or overlap
The left geometry intersects the top geometry.
OverlapsReturns true if one geometry overlaps another geometry. NOTE: Only valid for geometries of the same type or dimension.Diagram where two geometries partially overlap
The left geometry overlaps the top geometry.
TouchesReturns true if one geometry touches another geometry.Diagram where geometries touch at a boundary
The left geometry touches the top geometry.
WithinReturns true if one geometry is fully within another geometry.Diagram where one geometry is fully inside another
The left geometry is within the top geometry.
RelateReturns true if input geometries satisfy the specified DE-9IM spatial relation. You can provide any combination of the supported DE-9IM operations.Before-and-after diagram of the relate geometry operation

Geometric calculation

Geometric calculation operations evaluate one or more geometries and return a new geometry.

OperationDescription
Example
BoundaryReturns a polyline or polygon for the area of a geometry.Before-and-after diagram of the boundary geometry operation
BufferReturns a polygon that surrounds a geometry at a specified distance.Before-and-after diagram of the buffer geometry operation
ClipReturns a geometry where a target geometry and envelope intersect.Before-and-after diagram of the clip geometry operation
Convex HullReturns a polygon with the shortest perimeter that encloses one or more geometries.Before-and-after diagram of the convex hull geometry operation
CutReturns geometries where an input polyline crosses an existing geometry.Before-and-after diagram of the cut geometry operation
DensifyReturns a geometry that has intermediate points at a specified distance between existing vertices.Before-and-after diagram of the densify geometry operation
DifferenceReturns one or more geometries that are the result of the set theoretic difference between one geometry and another geometry.Before-and-after diagram of the difference geometry operation
ExtentReturns a rectangle geometry that encompasses the coordinates of an input geometry.Before-and-after diagram of the extent geometry operation
GeneralizeReturns a geometry where the vertices that contribute least to the shape of the input polygon or polyline are removed, while retaining the characteristics of the shape. The number of vertices removed depends on a given spatial deviation distanceBefore-and-after diagram of the generalize geometry operation
IntersectReturns a geometry based on set theoretic intersection of the input geometries.Before-and-after diagram of the intersect geometry operation
Nearest CoordinateReturns the coordinate of a geometry that is closest to a specified point.Before-and-after diagram of the nearest coordinate geometry operation
Nearest VertexReturns the vertex of a geometry that is closest to a specified point.Before-and-after diagram of the nearest vertex geometry operation
OffsetReturns a geometry that is a constant distance from an input polyline or polygon.Before-and-after diagram of the offset geometry operation
ReshapeReturns a geometry that takes the shape of the reshaper input where the reshaper geometry intersects the input geometry.Before-and-after diagram of the reshape geometry operation
SimplifyReturns a geometry that is topologically correct.Before-and-after diagram of the simplify geometry operation
TrimReturns a geometry that intersects the input geometry and trim polyline.Before-and-after diagram of the trim geometry operation
UnionReturns a geometry based on the set theoretic union of the input geometries.Before-and-after diagram of the union geometry operation

Length and area

Length and area measures calculate the length, distance, and area of one or more geometries.

OperationDescriptionExample
AreaReturns the planar or geodesic area for a polygon.Before-and-after diagram of the area geometry operation
DistanceReturns the planar or geodesic distance between two geometries.Before-and-after diagram of the distance geometry operation
LengthReturns the planar or geodesic length of a polyline.Before-and-after diagram of the length geometry operation

Projection

A project operation projects one or more input geometries from one spatial reference to another.

OperationDescriptionExample
ProjectReturns a projected geometry in the specified spatial reference.Before-and-after diagram of the project geometry operation

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.