Class OgcCompliantGeometryFactory
OGC compliant geometry factory
Inherited Members
Namespace: NetTopologySuite.Geometries
Assembly: NetTopologySuite.dll
Syntax
[Obsolete("Use GeometryFactoryEx with OrientationOfExteriorRing = CCW")]
public class OgcCompliantGeometryFactory : GeometryFactory
Constructors
| Edit this page View SourceOgcCompliantGeometryFactory()
Creates an instance of this class using the default values for SRID, PrecisionModel and CoordinateSequenceFactory.
Declaration
public OgcCompliantGeometryFactory()
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 |
OgcCompliantGeometryFactory(PrecisionModel)
Declaration
public OgcCompliantGeometryFactory(PrecisionModel pm)
Parameters
Type | Name | Description |
---|---|---|
PrecisionModel | pm |
OgcCompliantGeometryFactory(PrecisionModel, int)
Declaration
public OgcCompliantGeometryFactory(PrecisionModel pm, int srid)
Parameters
Type | Name | Description |
---|---|---|
PrecisionModel | pm | |
int | srid |
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 SourceCreatePolygon(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 |
Returns
Type | Description |
---|---|
Polygon | A Polygon object |
Overrides
Remarks
The ExteriorRing is guaranteed to be orientated counter-clockwise.
Exceptions
Type | Condition |
---|---|
ArgumentException | If the boundary ring is invalid |
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 |
Returns
Type | Description |
---|---|
Polygon | A Polygon object |
Overrides
Remarks
The ExteriorRing is guaranteed to be orientated counter-clockwise.
Exceptions
Type | Condition |
---|---|
ArgumentException | If the boundary ring is invalid |
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 |
Returns
Type | Description |
---|---|
Polygon | the created Polygon |
Overrides
Remarks
The ExteriorRing is guaranteed to be orientated counter-clockwise.
Exceptions
Type | Condition |
---|---|
ArgumentException | If the boundary ring is invalid |
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 |
LinearRing[] | holes | The inner boundaries of the new |
Returns
Type | Description |
---|---|
Polygon | A Polygon object |
Overrides
Remarks
The ExteriorRing is guaranteed to be orientated counter-clockwise.
The InteriorRings are guaranteed to be orientated clockwise.
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 |
Returns
Type | Description |
---|---|
Geometry | An empty |
Overrides
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).