Search Results for

    Show / Hide Table of Contents

    Class GeometryCombiner

    Combines Geometrys to produce a GeometryCollection of the most appropriate type.

    Inheritance
    object
    GeometryCombiner
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    | Edit this page View Source

    GeometryCombiner(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

    | Edit this page View Source

    SkipEmpty

    Value indicating whether empty geometries should be skipped

    Declaration
    public static bool SkipEmpty { get; set; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    Combine()

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    See Also

    BuildGeometry(IEnumerable<Geometry>)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX