HilbertRange Class |
Namespace: Telogis.GeoBase.Indexes
The HilbertRange type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
// Create a HilbertIndex object HilbertIndex hilb_index = new HilbertIndex(); // Create a BoundingBox BoundingBox b_box = new BoundingBox(); b_box.Add(new LatLon(33.976473, -118.348352)); b_box.Add(new LatLon(33.943459, -118.325526)); // Create a Hilbert query with a maximum of 128 ranges. HilbertQuery hil_query = hilb_index.Query(b_box, 128); StringBuilder my_out = new StringBuilder(); // Use HilbertRange to locate the low and high values of the ranges. foreach (HilbertRange range in hil_query.Ranges) { my_out.AppendFormat("The minimum value of this returned range is {0} and the maximum {1}.", range.Low, range.High); } // Write the ranges to the console Console.WriteLine(my_out);