ISpatialOperator

This interface is composed of methods that return the geometries of different possible interactions with the selected geometry.

 

 

Methods

 

Boundary

Returns the boundary around the selected geometry.

buffer

Returns a buffer region around the selected geometry.

Difference

Returns a geometry representing the points in the selected geometry that are not in the specified other geometry.

Distance

Returns the minimum distance between the selected geometry and another specified geometry.

Intersection

Returns a geometry representing the points shared by this geometry and a specified other geometry.

SymmetricDifference

Returns a set combining the points that are in each geometry and not the other.

Union

Returns a geometry representing all the points in the selected geometry and specified other geometry.

Boundary

Returns the boundary (border of the geometry), or an empty geometry of appropriate dimension if the selected geometry is empty.

 

JavaScript

 

Boundary()

 

C#

 

IGeometry Boundary()

 

C++

 

HRESULT Boundary(

       IGeometry** pVal)

Return Value

pVal

An IGeometry representing the boundary of this geometry.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.

buffer

Returns a buffer region around the selected geometry having the specified width.

 

JavaScript

 

buffer(

       buffer)

 

C#

 

IGeometry buffer(

       double buffer)

 

C++

 

HRESULT buffer(

       double buffer,

       IGeometry** pVal)

Parameters

buffer

The width of the buffer zone.

Return Value

pVal

An IGeometry representing the buffer region.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.

Difference

Returns a geometry representing the points in the selected geometry that are not in the specified other geometry.

 

JavaScript

 

Difference(

       otherGeometry)

 

C#

 

IGeometry Difference(

       IGeometry otherGeometry)

 

C++

 

HRESULT Difference(

       IGeometry* otherGeometry,

       IGeometry** pVal)

Parameters

otherGeometry

An IGeometry representing the other geometry.

Return Value

pVal

An IGeometry representing all the points in the selected geometry that are not in the other geometry.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.

Distance

Returns the minimum distance between two disjoint geometry objects. If the objects are not disjoint, the Distance of zero is returned.

 

JavaScript

 

Distance(

       otherGeometry)

 

C#

 

double Distance(

       IGeometry otherGeometry)

 

C++

 

HRESULT Distance(

       IGeometry* otherGeometry,

       double* Distance)

Parameters

otherGeometry

An IGeometry representing the other geometry.

Return Value

Distance

The distance between the two geometries.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.

Intersection

Returns a geometry representing the points shared by this geometry and a specified other geometry.

 

JavaScript

 

Intersection(

       otherGeometry)

 

C#

 

IGeometry Intersection(

       IGeometry otherGeometry)

 

C++

 

HRESULT Intersection(

       IGeometry* otherGeometry,

       IGeometry** pVal)

Parameters

otherGeometry

An IGeometry representing the geometry that is being tested for intersection with the selected geometry.

Return Value

pVal

An IGeometry representing all the points shared by the geometries.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.

SymmetricDifference

Returns a set combining the points that are in the selected geometry and not the specified other geometry, and the points in the specified other geometry that are not in the selected geometry.

 

JavaScript

 

SymmetricDifference(

       otherGeometry)

 

C#

 

IGeometry SymmetricDifference(

       IGeometry otherGeometry)

 

C++

 

HRESULT SymmetricDifference(

       IGeometry* otherGeometry,

       IGeometry** pVal)

Parameters

otherGeometry

An IGeometry representing the geometry whose intersection with the selected geometry is being tested.

Return Value

pVal

An IGeometry representing all the points that are in the selected geometry and not the specified other geometry, and the points in the specified other geometry that are not in the selected geometry.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.

Union

Returns a geometry representing all the points in the selected geometry and specified other geometry.

 

JavaScript

 

Union(

       otherGeometry)

 

C#

 

IGeometry Union(

       IGeometry otherGeometry)

 

C++

 

HRESULT Union(

       IGeometry* otherGeometry,

       IGeometry** pVal)

Parameters

otherGeometry

An IGeometry representing the other geometry.

Return Value

pVal

An IGeometry representing all the points in both geometries.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.