Click or drag to resize

LineStringBoundingBox Property

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Return the minimum-sized BoundingBox encapsulating all the points on this LineString.

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

Property Value

Type: BoundingBox
Examples
C#
// Create a LineString from an array of four points
Telogis.GeoBase.Geometry.LineString newLine = new Telogis.GeoBase.Geometry.LineString(
    new Telogis.GeoBase.LatLon[] {
        new Telogis.GeoBase.LatLon(33.594096,-117.741204),
        new Telogis.GeoBase.LatLon(33.594195,-117.726176),
        new Telogis.GeoBase.LatLon(33.582902,-117.725361),
        new Telogis.GeoBase.LatLon(33.582953,-117.740873)}
);

// Create a BoundingBox just large enough to contain 
// the LineString
BoundingBox linesBox = newLine.BoundingBox;

// Add the BoundingBox to the rendererlist
RendererList renderList = new RendererList();
mapCtrl.Renderer = renderList;
renderList.Add(linesBox);

// Zoom the map to the BoundingBox
mapCtrl.ZoomToBoundingBox(linesBox, 50);
See Also