Geometry Intersection( Geometry geometry1, Geometry geometry2, GeometryDimensionType resultDimensionType )
Overloads Function Intersection( _ ByVal geometry1 As Geometry, _ ByVal geometry2 As Geometry, _ ByVal resultDimensionType As GeometryDimensionType _ ) As Geometry
Parameters
- geometry1
- The first geometry.
- geometry2
- The second geometry.
- resultDimensionType
- Specifies the required dimension of the output. For example, if geometry1 is a Polyline and geometry2 is a Polyline and they cross each other at two points, then the intersection is a Multipoint. In this case, if you want the returned geometry to be the Multipoint where the input geometries intersect, use GeometryDimensionType.EsriGeometry0Dimension. Note that if the geometries intersect at one point and GeometryDimensionType.EsriGeometry0Dimension is used, the returned geometry will be a Multipoint with one point. In the above example, if GeometryDimensionType.EsriGeometry1Dimension is passed, an empty Polyline will be returned because the geometries intersect only at points. If, on the other hand, the two polylines overlap, then a non-empty Polyline will be returned. If resultDimensionType is GeometryDimensionType.EsriGeometryUnknownDimension, then the lowest dimension of the input geometries will be used.
Return Value
A geometry that represents the intersection of the two input geometries.