DataQueryQueryLines Method (BoundingBox, String, Double) |
Namespace: Telogis.GeoBase
public static Line[] QueryLines( BoundingBox bbox, string tableName, double simplificationLevel )
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 |
// // 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");