Geotools.Net

Geometry.GetEnvelope Method 

Returns this Geometrys bounding box.

[Visual Basic]
Overridable Public Function GetEnvelope() As Geometry Implements _
   IGeometry.GetEnvelope
[C#]
public virtual Geometry GetEnvelope();

Return Value

Returns an empty Point (for empty Geometrys), a Point (for Points) or a Polygon (in all other cases)

Implements

IGeometry.GetEnvelope

Remarks

If this Geometry is the empty geometry, returns an empty Point. If the Geometry is a point, returns a non-empty Point. Otherwise, returns a Polygon whose points are (minx, miny), (maxx, miny), (maxx, maxy), (minx, maxy), (minx, miny).

See Also

Geometry Class | Geometry Members | Geotools.Geometries Namespace