Class GeometryCombiner
Combines Geometrys to produce a GeometryCollection of the most appropriate type.
Inherited Members
Namespace: NetTopologySuite.Geometries.Utilities
Assembly: NetTopologySuite.dll
Syntax
public class GeometryCombiner
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
| Improve this Doc View SourceGeometryCombiner(IEnumerable<Geometry>)
Creates a new combiner for a collection of geometries
Declaration
public GeometryCombiner(IEnumerable<Geometry> geoms)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Geometry> | geoms | The geometries to combine |
Properties
| Improve this Doc View SourceSkipEmpty
Value indicating whether empty geometries should be skipped
Declaration
public static bool SkipEmpty { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceCombine()
Computes the combination of the input geometries to produce the most appropriate Geometry or GeometryCollection
Declaration
public Geometry Combine()
Returns
Type | Description |
---|---|
Geometry | A Geometry which is the combination of the inputs |
Combine(Geometry, Geometry)
Combines two geometries.
Declaration
public static Geometry Combine(Geometry g0, Geometry g1)
Parameters
Type | Name | Description |
---|---|---|
Geometry | g0 | A geometry to combine |
Geometry | g1 | A geometry to combine |
Returns
Type | Description |
---|---|
Geometry | The combined geometry |
Combine(Geometry, Geometry, Geometry)
Combines three geometries.
Declaration
public static Geometry Combine(Geometry g0, Geometry g1, Geometry g2)
Parameters
Type | Name | Description |
---|---|---|
Geometry | g0 | A geometry to combine |
Geometry | g1 | A geometry to combine |
Geometry | g2 | A geometry to combine |
Returns
Type | Description |
---|---|
Geometry | The combined geometry |
Combine(IEnumerable<Geometry>)
Combines a collection of geometries.
Declaration
public static Geometry Combine(IEnumerable<Geometry> geoms)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Geometry> | geoms | The geometries to combine |
Returns
Type | Description |
---|---|
Geometry | The combined geometry |
ExtractFactory(IEnumerable<Geometry>)
Extracts the GeometryFactory used by the geometries in a collection
Declaration
public static GeometryFactory ExtractFactory(IEnumerable<Geometry> geoms)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Geometry> | geoms |
Returns
Type | Description |
---|---|
GeometryFactory | a GeometryFactory |