DataQueryQueryPoints Method (BoundingBox, String, CancellationToken) |
Namespace: Telogis.GeoBase
public static PointFeature[] QueryPoints( BoundingBox bbox, string tableName, CancellationToken token )
Pre-defined data query tables |
---|
all |
small_villages |
villages |
large_villages |
towns |
large_towns |
small_cities |
cities |
major_cities |
// // Create new BoundingBox, NE Los Angeles (USA) // BoundingBox bbox = new BoundingBox(new LatLon(34, -117), new LatLon(33.75, -117.5)); // // Create a cancellation token // var cancellationToken = new CancellationToken(); // // Get all PointFeatures in the bounding box... // PointFeature[] parray = DataQuery.QueryPoints(bbox, "all", cancellationToken); Console.WriteLine("There are a total of " + parray.Length + " PointFeatures in the given BoundingBox");