Provides rapid access to a geometry's extent in the x-y plane.
Members
Name | Description | |
---|---|---|
Dimension | The topological dimension of this geometry. | |
Envelope | Creates a copy of this geometry's envelope and returns it. | |
GeometryType | The type of this geometry. | |
GeoNormalize | Shifts longitudes, if need be, into a continuous range of 360 degrees. | |
GeoNormalizeFromLongitude | Normalizes longitudes into a continuous range containing the longitude. This method is obsolete. | |
IsEmpty | Indicates whether this geometry contains any points. | |
Project | Projects this geometry into a new spatial reference. | |
ProjectEx | Projects a geometry, optionally applies a GeoTransformation, and optionally densifies the geometry. | |
QueryEnvelope | Copies this geometry's envelope properties into the specified envelope. | |
QueryWKSEnvelope | Defines the specified wksenvelope to be the current extent of this geometry in the x-y plane. | |
SetEmpty | Removes all points from this geometry. | |
SnapToSpatialReference | Moves points of this geometry so that they can be represented in the precision of the geometry's associated spatial reference system. | |
SpatialReference | The spatial reference associated with this geometry. |
IGeometry3.QueryWKSEnvelope Method
Defines the specified wksenvelope to be the current extent of this geometry in the x-y plane.
Public Sub QueryWKSEnvelope ( _
ByRef e As WKSEnvelope _
)
public void QueryWKSEnvelope (
ref WKSEnvelope e
);
Description
The QueryWKSEnvelope method returns a WKSEnvelope structure corresponding to the envelope of the geometry. Use that method to quickly get the XMin, XMax, YMin and YMax values.
//This example demonstrates how to use the QueryWKSEnvelope method
private void QueryWKSEnvelope_Example()
{
IGeometry3 geometry = CreateRectanglePolygon() as IGeometry3;
WKSEnvelope wksEnvelope = new WKSEnvelope();
geometry.QueryWKSEnvelope(out wksEnvelope);
System.Windows.Forms.MessageBox.Show("Xmin, Xmax, Ymin, Ymax: " + wksEnvelope.XMin + " , " + wksEnvelope.XMax + " , " + wksEnvelope.YMin + " , " + wksEnvelope.YMax);
}
private IPolygon CreateRectanglePolygon()
{
IEnvelope envelope = new EnvelopeClass();
envelope.PutCoords(0, 0, 20, 20);
ISegmentCollection segmentCollection = new PolygonClass();
segmentCollection.SetRectangle(envelope);
return segmentCollection as IPolygon;
}
Inherited Interfaces
Interfaces | Description |
---|---|
IGeometry2 | Provides access to members that extend the IGeometry interface with a more sophisticated projection method. |
IGeometry | Provides access to members that describe properties and behavior of all geometric objects. |
Classes that implement IGeometry3
Classes | Description |
---|---|
Envelope | A rectangle with sides parallel to a coordinate system defining the extent of another geometry; optionally has min and max measure, height and ID attributes. |
GeometryBag | An ordered collection of objects that support the IGeometry interface. |
MultiPatch | A collection of surface patches. |
Multipoint | An ordered collection of points; optionally has measure, height and ID attributes. |
Point | A two dimensional point, optionally with measure, height, and ID attributes. |
Polygon | A collection of rings ordered by their containment relationship; optionally has measure, height and ID attributes. |
Polyline | An ordered collection of paths; optionally has measure, height and ID attributes. |