Search Results for

    Show / Hide Table of Contents

    Class GeometryFactoryEx

    An extended GeometryFactory that is capable of enforcing a ring orientation for polygons.

    Inheritance
    object
    GeometryFactory
    GeometryFactoryEx
    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.ToGeometry(Envelope)
    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.CreatePolygon(CoordinateSequence)
    GeometryFactory.CreatePolygon(Coordinate[])
    GeometryFactory.CreatePolygon(LinearRing)
    GeometryFactory.CreateMultiPoint()
    GeometryFactory.CreateMultiPoint(Point[])
    GeometryFactory.CreateMultiPointFromCoords(Coordinate[])
    GeometryFactory.CreateMultiPoint(CoordinateSequence)
    GeometryFactory.CreateMultiLineString()
    GeometryFactory.CreateMultiLineString(LineString[])
    GeometryFactory.CreateMultiPolygon()
    GeometryFactory.CreateGeometryCollection()
    GeometryFactory.CreateGeometryCollection(Geometry[])
    GeometryFactory.BuildGeometry(IEnumerable<Geometry>)
    GeometryFactory.CreateEmpty(Dimension)
    GeometryFactory.CreateGeometry(Geometry)
    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
    public class GeometryFactoryEx : GeometryFactory

    Constructors

    | Edit this page View Source

    GeometryFactoryEx()

    Constructs a GeometryFactory that generates Geometries having a floating PrecisionModel and a spatial-reference ID of 0.

    Declaration
    public GeometryFactoryEx()
    | Edit this page View Source

    GeometryFactoryEx(CoordinateSequenceFactory)

    Constructs a GeometryFactory that generates Geometries having the given CoordinateSequence implementation, a double-precision floating PrecisionModel and a spatial-reference ID of 0.

    Declaration
    public GeometryFactoryEx(CoordinateSequenceFactory coordinateSequenceFactory)
    Parameters
    Type Name Description
    CoordinateSequenceFactory coordinateSequenceFactory
    | Edit this page View Source

    GeometryFactoryEx(PrecisionModel)

    Constructs a GeometryFactory that generates Geometries having the given {PrecisionModel} and the default CoordinateSequence implementation.

    Declaration
    public GeometryFactoryEx(PrecisionModel precisionModel)
    Parameters
    Type Name Description
    PrecisionModel precisionModel

    The PrecisionModel to use.

    | Edit this page View Source

    GeometryFactoryEx(PrecisionModel, int)

    Constructs a GeometryFactory that generates Geometries having the given PrecisionModel and spatial-reference ID, and the default CoordinateSequence implementation.

    Declaration
    public GeometryFactoryEx(PrecisionModel precisionModel, int srid)
    Parameters
    Type Name Description
    PrecisionModel precisionModel

    The PrecisionModel to use.

    int srid

    The SRID to use.

    | Edit this page View Source

    GeometryFactoryEx(PrecisionModel, int, CoordinateSequenceFactory)

    Constructs a GeometryFactory that generates Geometries having the given PrecisionModel, spatial-reference ID, and CoordinateSequence implementation.

    Declaration
    public GeometryFactoryEx(PrecisionModel precisionModel, int srid, CoordinateSequenceFactory coordinateSequenceFactory)
    Parameters
    Type Name Description
    PrecisionModel precisionModel
    int srid
    CoordinateSequenceFactory coordinateSequenceFactory
    | Edit this page View Source

    GeometryFactoryEx(PrecisionModel, int, CoordinateSequenceFactory, NtsGeometryServices)

    Constructs a GeometryFactory that generates Geometries having the given PrecisionModel, spatial-reference ID, and CoordinateSequence implementation.

    Declaration
    public GeometryFactoryEx(PrecisionModel precisionModel, int srid, CoordinateSequenceFactory coordinateSequenceFactory, NtsGeometryServices services)
    Parameters
    Type Name Description
    PrecisionModel precisionModel
    int srid
    CoordinateSequenceFactory coordinateSequenceFactory
    NtsGeometryServices services

    Properties

    | Edit this page View Source

    DefaultCoordinateSequenceFactory

    Gets or sets the default coordinate sequence factory to use with these geometry factories

    Declaration
    public static CoordinateSequenceFactory DefaultCoordinateSequenceFactory { get; set; }
    Property Value
    Type Description
    CoordinateSequenceFactory
    | Edit this page View Source

    DefaultPrecisionModel

    Gets or sets the default precision model to use with these geometry factories

    Declaration
    public static PrecisionModel DefaultPrecisionModel { get; set; }
    Property Value
    Type Description
    PrecisionModel
    | Edit this page View Source

    DefaultSRID

    Gets or sets the default spatial reference id.

    Declaration
    public static int DefaultSRID { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    OrientationOfExteriorRing

    Gets or sets a value indicating the ring orientation of the Polygon's exterior rings.

    If its value is DontCare, this factory behaves just like the base GeometryFactory.

    Declaration
    public LinearRingOrientation OrientationOfExteriorRing { get; set; }
    Property Value
    Type Description
    LinearRingOrientation
    Remarks

    The setter of this property has to be used prior to any call to CreatePolygon, CreateMultiPolygon, or ReplaceSRID

    See Also
    CreatePolygon(Coordinate[])
    CreatePolygon(CoordinateSequence)
    CreatePolygon(LinearRing)
    CreatePolygon(LinearRing, LinearRing[])
    CreateMultiPolygon(Polygon[])

    Methods

    | Edit this page View Source

    CreateMultiPolygon(Polygon[])

    Creates a MultiPolygon using the given Polygons; a null or empty array will create an empty Polygon. The polygons must conform to the assertions specified in the http://www.opengis.org/techno/specs.htm OpenGIS Simple Features Specification for SQL.

    The OrientationOfExteriorRing is enforced on each polygon.
    Declaration
    public override MultiPolygon CreateMultiPolygon(Polygon[] polygons)
    Parameters
    Type Name Description
    Polygon[] polygons

    Polygons, each of which may be empty but not null.

    Returns
    Type Description
    MultiPolygon

    A MultiPolygon object

    Overrides
    GeometryFactory.CreateMultiPolygon(Polygon[])
    | Edit this page View Source

    CreatePolygon(LinearRing, LinearRing[])

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

    The OrientationOfExteriorRing is enforced on the constructed polygon.
    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[])
    | Edit this page View Source

    WithSRID(int)

    Returns a new GeometryFactory whose SRID is the given value and whose other values and behavior are, as near as we possibly can make it, the same as our own.

    Declaration
    public override GeometryFactory WithSRID(int srid)
    Parameters
    Type Name Description
    int srid

    The SRID for the result.

    Returns
    Type Description
    GeometryFactory

    The cloned instance.

    Overrides
    GeometryFactory.WithSRID(int)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX