Click or drag to resize

DataQueryQueryLines Method (BoundingBox, String, Double, CancellationToken)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets an array of Lines that lie underneath the given BoundingBox.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static Line[] QueryLines(
	BoundingBox bbox,
	string tableName,
	double simplificationLevel,
	CancellationToken token
)

Parameters

bbox
Type: Telogis.GeoBaseBoundingBox
The BoundingBox representing the area to be queried.
tableName
Type: SystemString
The lines table to query.
simplificationLevel
Type: SystemDouble
Level used to simplify results, given as meters per pixel.
token
Type: Telogis.GeoBase.ConcurrencyCancellationToken
A CancellationToken that can be used to cancel the query early, causing a DataQueryCanceledException to be thrown.

Return Value

Type: Line
An array of Lines.
Remarks

This method also matches Lines that pass through rect and continue outside its area.
Further, Lines with BoundingBoxes that intersect rect will also be returned by this method, thus it is possible that lines will be returned that appear to lie outside rect.

Map features are stored in named tables according to their type. Developers with custom data should avoid using the table names in the list below.

Pre-defined Line query tables
all
railways
rivers
canals
Examples
C#
// 
// Create new BoundingBox, NE Los Angeles (USA)
// 
BoundingBox bbox = new BoundingBox(new LatLon(34, -117), new LatLon(33.75, -117.5));

CancellationToken token = new CancellationToken();

// 
// Get all the Lines in the bounding box... these could be railways, rivers or canals
// 
Line[] ls = DataQuery.QueryLines(bbox, "all", 0, token);
Console.WriteLine("There are a total of " + ls.Length + " Lines in the given BoundingBox");
See Also