Class GeometryFactoryEx
An extended GeometryFactory that is capable of enforcing a ring orientation for polygons.
Inherited Members
Namespace: NetTopologySuite.Geometries
Assembly: NetTopologySuite.dll
Syntax
public class GeometryFactoryEx : GeometryFactory
Constructors
| Improve this Doc View SourceGeometryFactoryEx()
Constructs a GeometryFactory that generates Geometries having a floating PrecisionModel and a spatial-reference ID of 0.
Declaration
public GeometryFactoryEx()
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 |
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. |
GeometryFactoryEx(PrecisionModel, Int32)
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. |
Int32 | srid | The SRID to use. |
GeometryFactoryEx(PrecisionModel, Int32, 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 | |
Int32 | srid | |
CoordinateSequenceFactory | coordinateSequenceFactory |
GeometryFactoryEx(PrecisionModel, Int32, 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 | |
Int32 | srid | |
CoordinateSequenceFactory | coordinateSequenceFactory | |
NtsGeometryServices | services |
Properties
| Improve this Doc View SourceDefaultCoordinateSequenceFactory
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 |
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 |
DefaultSRID
Gets or sets the default spatial reference id.
Declaration
public static int DefaultSRID { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
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
Methods
| Improve this Doc View SourceCreateMultiPolygon(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
| Improve this Doc View SourceCreatePolygon(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 |
LinearRing[] | holes | The inner boundaries of the new |
Returns
Type | Description |
---|---|
Polygon | A Polygon object |
Overrides
| Improve this Doc View SourceWithSRID(Int32)
Declaration
public override GeometryFactory WithSRID(int srid)
Parameters
Type | Name | Description |
---|---|---|
Int32 | srid |
Returns
Type | Description |
---|---|
GeometryFactory |