Search Results for

    Show / Hide Table of Contents

    Class OgcCompliantGeometryFactory

    OGC compliant geometry factory

    Inheritance
    object
    GeometryFactory
    OgcCompliantGeometryFactory
    Inherited Members
    GeometryFactory.Default
    GeometryFactory.Floating
    GeometryFactory.FloatingSingle
    GeometryFactory.Fixed
    GeometryFactory.PrecisionModel
    GeometryFactory.CoordinateSequenceFactory
    GeometryFactory.SRID
    GeometryFactory.ElevationModel
    GeometryFactory.GeometryServices
    GeometryFactory.CreatePointFromInternalCoord(Coordinate, Geometry)
    GeometryFactory.ToPointArray(IEnumerable<Geometry>)
    GeometryFactory.ToGeometryArray(IEnumerable<Geometry>)
    GeometryFactory.ToLineStringArray(IEnumerable<Geometry>)
    GeometryFactory.ToLinearRingArray(IEnumerable<Geometry>)
    GeometryFactory.ToPolygonArray(IEnumerable<Geometry>)
    GeometryFactory.ToMultiPointArray(IEnumerable<Geometry>)
    GeometryFactory.ToMultiLineStringArray(IEnumerable<Geometry>)
    GeometryFactory.ToMultiPolygonArray(IEnumerable<Geometry>)
    GeometryFactory.CreatePoint()
    GeometryFactory.CreatePoint(Coordinate)
    GeometryFactory.CreatePoint(CoordinateSequence)
    GeometryFactory.CreateLineString()
    GeometryFactory.CreateLineString(Coordinate[])
    GeometryFactory.CreateLineString(CoordinateSequence)
    GeometryFactory.CreateLinearRing()
    GeometryFactory.CreateLinearRing(Coordinate[])
    GeometryFactory.CreateLinearRing(CoordinateSequence)
    GeometryFactory.CreatePolygon()
    GeometryFactory.CreateMultiPoint()
    GeometryFactory.CreateMultiPoint(Point[])
    GeometryFactory.CreateMultiPointFromCoords(Coordinate[])
    GeometryFactory.CreateMultiPoint(CoordinateSequence)
    GeometryFactory.CreateMultiLineString()
    GeometryFactory.CreateMultiLineString(LineString[])
    GeometryFactory.CreateMultiPolygon()
    GeometryFactory.CreateMultiPolygon(Polygon[])
    GeometryFactory.CreateGeometryCollection()
    GeometryFactory.CreateGeometryCollection(Geometry[])
    GeometryFactory.BuildGeometry(IEnumerable<Geometry>)
    GeometryFactory.CreateEmpty(Dimension)
    GeometryFactory.CreateGeometry(Geometry)
    GeometryFactory.WithSRID(int)
    GeometryFactory.ToString()
    GeometryFactory.OnDeserialized(StreamingContext)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: NetTopologySuite.Geometries
    Assembly: NetTopologySuite.dll
    Syntax
    [Obsolete("Use GeometryFactoryEx with OrientationOfExteriorRing = CCW")]
    public class OgcCompliantGeometryFactory : GeometryFactory

    Constructors

    | Edit this page View Source

    OgcCompliantGeometryFactory()

    Creates an instance of this class using the default values for SRID, PrecisionModel and CoordinateSequenceFactory.

    Declaration
    public OgcCompliantGeometryFactory()
    | Edit this page View Source

    OgcCompliantGeometryFactory(CoordinateSequenceFactory)

    Creates an instance of this class using the default values for SRID, PrecisionModel, but the specified factory.

    Declaration
    public OgcCompliantGeometryFactory(CoordinateSequenceFactory factory)
    Parameters
    Type Name Description
    CoordinateSequenceFactory factory
    | Edit this page View Source

    OgcCompliantGeometryFactory(PrecisionModel)

    Declaration
    public OgcCompliantGeometryFactory(PrecisionModel pm)
    Parameters
    Type Name Description
    PrecisionModel pm
    | Edit this page View Source

    OgcCompliantGeometryFactory(PrecisionModel, int)

    Declaration
    public OgcCompliantGeometryFactory(PrecisionModel pm, int srid)
    Parameters
    Type Name Description
    PrecisionModel pm
    int srid
    | Edit this page View Source

    OgcCompliantGeometryFactory(PrecisionModel, int, CoordinateSequenceFactory)

    Declaration
    public OgcCompliantGeometryFactory(PrecisionModel pm, int srid, CoordinateSequenceFactory factory)
    Parameters
    Type Name Description
    PrecisionModel pm
    int srid
    CoordinateSequenceFactory factory

    Methods

    | Edit this page View Source

    CreatePolygon(CoordinateSequence)

    Constructs a Polygon with the given exterior boundary.

    Declaration
    public override Polygon CreatePolygon(CoordinateSequence coordinates)
    Parameters
    Type Name Description
    CoordinateSequence coordinates

    the outer boundary of the new Polygon, or null or an empty LinearRing if the empty geometry is to be created.

    Returns
    Type Description
    Polygon

    A Polygon object

    Overrides
    GeometryFactory.CreatePolygon(CoordinateSequence)
    Remarks

    The ExteriorRing is guaranteed to be orientated counter-clockwise.

    Exceptions
    Type Condition
    ArgumentException

    If the boundary ring is invalid

    | Edit this page View Source

    CreatePolygon(Coordinate[])

    Constructs a Polygon with the given exterior boundary.

    Declaration
    public override Polygon CreatePolygon(Coordinate[] coordinates)
    Parameters
    Type Name Description
    Coordinate[] coordinates

    the outer boundary of the new Polygon, or null or an empty LinearRing if the empty geometry is to be created.

    Returns
    Type Description
    Polygon

    A Polygon object

    Overrides
    GeometryFactory.CreatePolygon(Coordinate[])
    Remarks

    The ExteriorRing is guaranteed to be orientated counter-clockwise.

    Exceptions
    Type Condition
    ArgumentException

    If the boundary ring is invalid

    | Edit this page View Source

    CreatePolygon(LinearRing)

    Constructs a Polygon with the given exterior boundary.

    Declaration
    public override Polygon CreatePolygon(LinearRing shell)
    Parameters
    Type Name Description
    LinearRing shell

    the outer boundary of the new Polygon, or null or an empty LinearRing if the empty geometry is to be created.

    Returns
    Type Description
    Polygon

    the created Polygon

    Overrides
    GeometryFactory.CreatePolygon(LinearRing)
    Remarks

    The ExteriorRing is guaranteed to be orientated counter-clockwise.

    Exceptions
    Type Condition
    ArgumentException

    If the boundary ring is invalid

    | Edit this page View Source

    CreatePolygon(LinearRing, LinearRing[])

    Constructs a Polygon with the given exterior boundary and interior boundaries.

    Declaration
    public override Polygon CreatePolygon(LinearRing shell, LinearRing[] holes)
    Parameters
    Type Name Description
    LinearRing shell

    The outer boundary of the new Polygon, or null or an empty LinearRing if the empty point is to be created.

    LinearRing[] holes

    The inner boundaries of the new Polygon, or null or empty LinearRing s if the empty point is to be created.

    Returns
    Type Description
    Polygon

    A Polygon object

    Overrides
    GeometryFactory.CreatePolygon(LinearRing, LinearRing[])
    Remarks

    The ExteriorRing is guaranteed to be orientated counter-clockwise.
    The InteriorRings are guaranteed to be orientated clockwise.

    | Edit this page View Source

    ToGeometry(Envelope)

    Creates a Geometry with the same extent as the given envelope.

    Declaration
    public override Geometry ToGeometry(Envelope envelope)
    Parameters
    Type Name Description
    Envelope envelope

    The Envelope

    Returns
    Type Description
    Geometry

    An empty Point (for null Envelopes), a Point (when min x = max x and min y = max y) or a Polygon (in all other cases)

    Overrides
    GeometryFactory.ToGeometry(Envelope)
    Remarks

    The Geometry returned is guaranteed to be valid. To provide this behavior, the following cases occur:

    If the Envelope is:

    • null returns an empty Point
    • a point returns a non-empty Point
    • a line returns a two-point LineString
    • a rectangle returns a Polygon whose points are (minx, maxy), (minx, maxy), (maxx, maxy), (maxx, miny).
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX