Geotools.Net

GeometryFactory.ToGeometry Method 

Converts an envnelope to a geometry.

[Visual Basic]
Public Shared Function ToGeometry( _
   ByVal envelope As Envelope, _
   ByVal precisionModel As PrecisionModel, _
   ByVal SRID As Integer _
) As Geometry
[C#]
public static Geometry ToGeometry(
   Envelope envelope,
   PrecisionModel precisionModel,
   int SRID
);

Parameters

envelope
The Envelope to convert to a Geometry.
precisionModel
The specification of the grid of allowable points for the new Geometry.
SRID
The ID of the Spatial Reference System used by the Envelope.

Return Value

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)

Remarks

Missing <remarks> documentation for M:Geotools.Geometries.GeometryFactory.ToGeometry(Geotools.Geometries.Envelope,Geotools.Geometries.PrecisionModel,System.Int32)

Exceptions

Exception TypeCondition
TopologyException if coordinates is not a closed linestring, that is, if the first and last coordinates are not equal.

See Also

GeometryFactory Class | GeometryFactory Members | Geotools.Geometries Namespace