Click or drag to resize

DataQueryQueryLines Method (BoundingBox, String, Double)

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
)

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.

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));

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