Click or drag to resize

BoundingBoxRectangle Property

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets a Rectangle representing this BoundingBox's coordinates, or sets this BoundingBox to match the coordinates of a given Rectangle.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public Rectangle Rectangle { get; set; }

Property Value

Type: Rectangle
Remarks
There is no need to call Normalize() after this method as the created Rectangle cannot have crossed-over coordinates.
Examples
C#
BoundingBox bb1 = new BoundingBox();
// Add arbitrary points in Los Angeles, USA.
bb1.Add(new LatLon(33.787935, -118.013866));
bb1.Add(new LatLon(33.761919, -117.985009));
Console.WriteLine("BoundingBox rectangle coordinates are {0}", bb1.Rectangle);
// Prints 'BoundingBox rectangle coordinates are 33.761919,-118.013866, 33.787935,-117.985009'

Telogis.GeoBase.Rectangle myRectangle = new Telogis.GeoBase.Rectangle();
myRectangle.p1 = new LatLon(33.776473, -117.961255);
myRectangle.p2 = new LatLon(33.769672, -117.956316);
bb1.Rectangle = myRectangle;
Console.WriteLine("BoundingBox rectangle coordinates are {0}", bb1.Rectangle);
// Prints 'BoundingBox rectangle coordinates are 33.776473,-117.961255, 33.769672,-117.956316'
See Also