Table of Contents

Class GeometryOverlay

Namespace
NetTopologySuite.Geometries
Assembly
NetTopologySuite.dll

A class that encapsulates geometry overlay functionality

public abstract class GeometryOverlay
Inheritance
GeometryOverlay
Inherited Members

Constructors

GeometryOverlay()

protected GeometryOverlay()

Properties

Legacy

Gets a value indicating a geometry overlay operation class that uses old NTS overlay operation set.

public static GeometryOverlay Legacy { get; }

Property Value

GeometryOverlay

NG

Gets a value indicating a geometry overlay operation class that uses next-generation NTS overlay operation set.

public static GeometryOverlay NG { get; }

Property Value

GeometryOverlay

Methods

Difference(Geometry, Geometry)

Computes a Geometry representing the closure of the point-set of the points contained in this Geometry that are not contained in the other Geometry.

public virtual Geometry Difference(Geometry a, Geometry b)

Parameters

a Geometry

The 1st Geometry

b Geometry

The 2nd Geometry

Returns

Geometry

A Geometry representing the point-set difference of Geometry's a and b.

See Also

Intersection(Geometry, Geometry)

Computes a Geometry representing the point-set which is common to both a and b Geometry.

public virtual Geometry Intersection(Geometry a, Geometry b)

Parameters

a Geometry

The 1st Geometry

b Geometry

The 2nd Geometry

Returns

Geometry

A geometry representing the point-set common to the two Geometrys.

See Also

Overlay(Geometry, Geometry, SpatialFunction)

Computes a Geometry representing the overlay of geometries a and b using the spatial function defined by opCode.

protected abstract Geometry Overlay(Geometry a, Geometry b, SpatialFunction opCode)

Parameters

a Geometry

The 1st geometry

b Geometry

The 2nd geometry

opCode SpatialFunction

The spatial function for the overlay operation

Returns

Geometry

The computed geometry

SymmetricDifference(Geometry, Geometry)

Computes a Geometry representing the closure of the point-set which is the union of the points in Geometry a which are not contained in the Geometry b, with the points in the b Geometry not contained in the Geometry a.

public virtual Geometry SymmetricDifference(Geometry a, Geometry b)

Parameters

a Geometry

The 1st Geometry

b Geometry

The 2nd Geometry

Returns

Geometry

A Geometry representing the point-set symmetric difference of Geometry's a and b.

See Also

Union(Geometry)

Computes the union of all the elements in the Geometry a.

public abstract Geometry Union(Geometry a)

Parameters

a Geometry

The Geometry

Returns

Geometry

The union of a

See Also

Union(Geometry, Geometry)

Computes a Geometry representing the point-set which is contained in both input Geometrys .

public virtual Geometry Union(Geometry a, Geometry b)

Parameters

a Geometry

The 1st Geometry

b Geometry

The 2nd Geometry

Returns

Geometry

A point-set combining the points of Geometry's a and b.

See Also