Class GeometryCombiner
- Namespace
- NetTopologySuite.Geometries.Utilities
- Assembly
- NetTopologySuite.dll
Combines Geometrys to produce a GeometryCollection of the most appropriate type.
public class GeometryCombiner
- Inheritance
-
GeometryCombiner
- Inherited Members
Remarks
Input geometries which are already collections will have their elements extracted first.
No validation of the result geometry is performed. (The only case where invalidity is possible is where IPolygonal geometries are combined and result in a self-intersection).
Constructors
GeometryCombiner(IEnumerable<Geometry>)
Creates a new combiner for a collection of geometries
public GeometryCombiner(IEnumerable<Geometry> geoms)
Parameters
geoms
IEnumerable<Geometry>The geometries to combine
- See Also
Properties
SkipEmpty
Value indicating whether empty geometries should be skipped
public static bool SkipEmpty { get; set; }
Property Value
- See Also
Methods
Combine()
Computes the combination of the input geometries to produce the most appropriate Geometry or GeometryCollection
public Geometry Combine()
Returns
- Geometry
A Geometry which is the combination of the inputs
- See Also
Combine(Geometry, Geometry)
Combines two geometries.
public static Geometry Combine(Geometry g0, Geometry g1)
Parameters
Returns
- Geometry
The combined geometry
- See Also
Combine(Geometry, Geometry, Geometry)
Combines three geometries.
public static Geometry Combine(Geometry g0, Geometry g1, Geometry g2)
Parameters
g0
GeometryA geometry to combine
g1
GeometryA geometry to combine
g2
GeometryA geometry to combine
Returns
- Geometry
The combined geometry
- See Also
Combine(IEnumerable<Geometry>)
Combines a collection of geometries.
public static Geometry Combine(IEnumerable<Geometry> geoms)
Parameters
geoms
IEnumerable<Geometry>The geometries to combine
Returns
- Geometry
The combined geometry
- See Also
ExtractFactory(IEnumerable<Geometry>)
Extracts the GeometryFactory used by the geometries in a collection
public static GeometryFactory ExtractFactory(IEnumerable<Geometry> geoms)
Parameters
geoms
IEnumerable<Geometry>
Returns
- GeometryFactory
a GeometryFactory
- See Also