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
| Edit this page 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, 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. |
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 |
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 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 |
|---|---|
| int |
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
| Edit this page 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.
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
| Edit this page View SourceCreatePolygon(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 |
| LinearRing[] | holes | The inner boundaries of the new |
Returns
| Type | Description |
|---|---|
| Polygon | A Polygon object |
Overrides
| Edit this page View SourceWithSRID(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. |