text:
|Publication number
|Publication type
|Application number
|Publication date
|Oct 5, 1999
|Filing date
|Feb 27, 1997
|Priority date
|Feb 27, 1997
|Fee status
|Also published as
|Publication number
|Brian E. Smartt
|Original Assignee
|Export Citation
|BiBTeX, EndNote, RefMan
|Patent Citations (5), Referenced by (173), Classifications (20), Legal Events (9)
|External Links: USPTO, USPTO Assignment, Espacenet
1. Field of the Invention
This invention relates to computer databases. Specifically, this invention relates to methods of indexing database records which contain information describing the position, size and shape of objects in two and three-dimensional space.
2. Description of the Related Technology
The purpose of a data structure is to organize large volumes of information, allowing the computer to selectively process the data structure's content. The motivation for this is simple: you always have more data than your time requirements, processor speed, main memory and disk access time allow you to process all at once. Depending on the nature of the data and application, data organizing strategies may include partitioning the content into subsets with similar properties or sequencing the data to support indexing and hashing for fast random access. Databases and database management systems extend these concepts to provide persistent storage and transaction controlled editing of the structured data.
Spatial data such as that describing a two-dimensional map is no different in its need for efficient organization. Map data is particularly demanding in this regard. A comprehensive street map for a moderate sized community may consist of tens to hundreds of thousands of individual street segments. Wide area maps of LA or New York may contain millions of segments. The content of each map data object can also be some what bulky. For example, a record for an individual street segment may include the coordinates of its end points, a usage classification, the street name, street address ranges, left and right side incorporated city name and postal codes.
However, spatial data at its core poses a particularly vexing organizational problem because it tries to organize objects within two-dimensional space. Spatial coordinates consist of two (or more) values which are independent, but equally important for most spatial queries. Established data structures and database methods are designed to efficiently handle a single value, and not representations of multi-dimensional space.
This difficulty can be illustrated by considering the problem of creating an application which presents a small window of map data (for instance, the square mile surrounding a house) from a database of a few hundred thousand spatial objects (a map of the city surrounding the house). The motivation for doing this is really two fold: first, the typical resolution of a computer monitor is limited, allowing only a certain amount information to be expressed. Secondly, even if all the data fit within the monitor, the data processing time to calculate this much information (fetching, transforming, clipping, drawing) would be far too long for the average personal computer.
To solve this problem, it is advantageous to find all of the street segments which appear in the "window" that will be generated on the monitor, and avoid as many as possible which do not. Thus, all objects which are within a particular range of x-coordinate (or longitude) values and y-coordinate (or latitude) values will be gathered. This problem is generally known as rectangular window retrieval, and is one of the more fundamental types of spatial queries. This method will be used in the following sections as a method for gauging the effectiveness of each of the following organizational methods.
The most heavily researched and commonly used spatial data structures (data structures used to organize geographic and geometric data) rely on the concept of tile-based hierarchical trees. A tile in this context is a rectangular (or other regularly or irregularly shaped) partitioning of coordinate space, wherein each partition has a distinct line separating one tile from another so that no single point in the coordinate system lies within more than one tile. A hierarchical tree is one structure for dividing coordinate space by recursively decomposing the space into smaller and smaller tiles, starting at a root that represents the entire coordinate space. In this system, a "hard edge" between tiles means that every point in the space resides exactly one tile at each level of the hierarchy. No point can coexist in more than one tile.
One example of a well-known hierarchical tree is the quad-tree data structure. In one example, the quad-tree could represent the surface of the Earth. At the root of the quad-tree is a node representing the entire surface of the Earth. The root, in turn, will have four children representing each quadrant of Latitude and Longitude space: east of Greenwich and north of the Equator, east of Greenwich and south of the Equator, west of Greenwich and north of the Equator and finally, west of Greenwich and south of the equator. Points on Greenwich and the Equator are arbitrarily defined to be in one quadrant or the other. Each of these children are further subdivided into more quadrants, and the children of those children, and so on, down to the degree of partitioning which is required to support the volume and density of data which is to be stored in the quad-tree.
The principle problem with quad-tree structures is that they are unbalanced. Because each node in the tree has a limited data storage capacity, when that limit is exceeded, the node must be split into four children, and the data content pushed into lower recesses of the tree. As a result, the depth of a quad-tree is shallow where the data density is low, and deep where the data density is high. For example, a quad-tree used to find population centers on the surface of the Earth will be very shallow (e.g., have few nodes) in mid-ocean and polar regions, and very deep (e.g., have many nodes) in regions such as the east and south of the United States.
Since quad-trees are inherently unbalanced, the rectangular window retrieval behavior of a quad-tree is difficult to predict. It is difficult for software to predict how many nodes deep it may have to go to find the necessary data. In a large spatial database, each step down the quad-tree hierarchy into another node normally requires a time-consuming disk seek. In addition, more than one branch of the tree will likely have to be followed to find all the necessary data. Second, when the content of the data structure is dynamic, efficient space management is problematic since each node has both a fixed amount of space and a fixed regional coverage. In real world data schemes, these two rarely correspond. There are several variations on the quad-tree which attempt to minimize these problems. However, inefficiencies still persist.
So far, data structures containing points have only been discussed where each spatial object comprises a single set of coordinates. Lines, curves, circles, and polygons present a further complexity because they have dimensions. Therefore, these objects no longer fit neatly into tile based data structures, unless the tiling scheme is extremely contrived. There will always be some fraction of the objects which cross the hard edged tile boundaries from one coordinate region to another. Note that this fact is true regardless of the simplicity of an object's description. For example, a line segment described by its two end points, or a circle described by its center point and radius.
A simple, and commonly used way around this problem is to divide objects which cross the tile boundaries into multiple objects. Thus, a line segment which has its end points in two adjacent tiles will be split into two line segments; a line segment which starts in one tile, and passes through fifty tiles on its way to its other end will be broken into fifty-two line segments: one for each tile it touches.
This approach can be an effective strategy for certain applications which are read-only. However, it is a poor strategy for data structures with dynamic content. Adding new data objects is relatively simple, but deleting and modifying data are more difficult. Problems arise because the original objects are not guaranteed to be intact. If a line segment needs to be moved or removed, it must somehow be reconstituted so that the database behaves as expected. This requires additional database bookkeeping, more complicated algorithms and the accompanying degradation in design simplicity and performance.
Another general problem related to organizing multidimensional objects is that many of these objects are difficult to mathematically describe once broken up. For example, there are numerous ways in which a circle can overlap four adjacent rectangular tiles. Depending on placement, the same sized circle can become two, three or four odd shaped pieces. As with a heavily fragmented line segment, the original "natural" character of the object is effectively lost.
An alternate strategy is to use indirection, where objects which cross tile boundaries are multiply referenced. However, each reference requires an extra step to recover the object, and the same object may be retrieved more than once by the same query, requiring additional complexity to resolve. When the number of objects in the database becomes large, this extra level of indirection becomes too expensive to create a viable system.
Another strategy used with quad-trees is to push objects which cross tile boundaries into higher and higher levels of the tree until they finally fit. The difficulty with this strategy is that when the number of map objects contained in the higher nodes increases, database operations will have to examine every object at the higher nodes before they can direct the search to the smaller nodes which are more likely to contain useful information. This results in a tremendous lag time for finding data.
Query Optimization in a Conventional DBMS
As discussed above, data which describes the position, size and shape of objects in space is generally called spatial data. A collection of spatial data is called a Spatial Database. Examples of different types of Spatial Databases include maps (street-maps, topographic maps, land-use maps, etc.), two-dimensional and three-dimensional architectural drawings and integrated circuit designs.
Conventional Database Management Systems (DBMS) use indexing methods to optimize the retrieval of records which have specific data values in a given field. For each record in the database, the values of the field of interest are stored as keys in a tree or similar indexing data structure along with pointers back to the records which contain the corresponding values.
DATABASE TABLE 1 shows an example of a simple database table which contains information about former employees of a fictional corporation. Each row in the table corresponds to a single record. Each record contains information about a single former employee. The columns in the table correspond to fields in each record which store various facts about each former employee, including their name and starting and ending dates of employment.
______________________________________DATABASE TABLE 1The FormerEmployee database table.Name StartDate EndDate Other . . .______________________________________P. S. Buck 6/15/92 8/2/95Willy Cather 1/27/93 6/30/93Em Dickinson 9/12/92 11/15/92Bill Faukner 7/17/94 2/12/95Ernie Hemmingway 6/30/91 5/14/93H. James 10/16/91 12/4/92Jim Joyce 11/23/92 5/8/93E. A. Poe 1/14/93 4/24/95______________________________________
EXAMPLE QUERY 1 shows a SQL query which finds the names of all former employees who started working during 1993. If the number of records in the former employee database were large, and the query needs to be performed on a regular or timely basis, then it might be useful to create an index on the StartDate field to make this query perform more efficiently. Use of a sequential indexing data structure such as a B-tree effectively reorders the database table by the field being indexed, as is shown in DATABASE TABLE 2. The important property of such sequential indexing methods is that they allow very efficient search both for records which contain a specific value in the indexed field and for records which have a range of values in the indexed field.
SQL to find all former employees hired during 1993.
select Name
______________________________________DATABASE TABLE 2The FormerEmployee table indexed by StartDate.Name StartDate EndDate Other . . .______________________________________Ernie Hemmingway 6/30/91 5/14/93H. James 10/16/91 12/4/92P. S. Buck 6/15/92 8/2/95Em Dickinson 9/12/92 11/15/92Jim Joyce 10/23/92 5/8/93E. A. Poe 1/14/93 4/24/95Willy Cather 1/27/93 6/30/93Bill Faukner 7/17/94 2/12/95______________________________________
For analytical purposes, the efficiencies of computer algorithms and their supporting data structures are expressed in terms of Order functions which describe the approximate behavior of the algorithm as a function of the total number of objects involved. The notational short hand which is used to express Order is O0. For data processing algorithms, the Order function is based on the number of objects being processed.
For example, the best sorting algorithms are typically performed at a O(N�log(N)) cost, where N is the number of records being sorted. For data structures used to manage objects (for instance, an index in a database), the Order function is based on the number of objects being managed. For example, the best database indexing methods typically have a O( log(N) ) search cost, where N is the number of records being stored in the database. Certain algorithms also have distinct, usually rare worst case costs which may be indicated by a different Order function. Constant functions which are independent of the total number of objects are indicated by the function O(K).
B-trees and similar Indexed Sequential Access Methods (or ISAMs) generally provide random access to any given key value in terms of a O(log(N)) cost, where N is the number of records in the table, and provide sequential access to subsequent records in a O(K) average cost, where K is a small constant representing the penalty of reading records through the index, (various strategies may be employed to minimize K, including index clustering and caching). The total cost of performing EXAMPLE QUERY 1 is therefore O(log(N)+(M�K)), where M is the number of records which satisfy the query. If N is large and M is small relative to N, then the cost of using the index to perform the query will be substantially smaller than the O(N) cost of scanning the entire table. DATA TABLE 1 illustrates this fact by showing the computed values of some Order functions for various values of N and M. This example, though quite simple, is representative of the widely used and generally accepted database management practice of optimizing queries using indexes.
Cost of retrieving consecutive records from a database table via an index.
N=number of records in the table,
M=number of consecutive records which satisfy the query,
K=constant extra cost of reading records through the index.
EXAMPLE QUERY 2 shows a SQL query which finds the names of all former employees who worked during 1993. Unlike EXAMPLE QUERY 1, it is not possible to build an index using traditional methods alone which significantly improves EXAMPLE QUERY 2 for arbitrary condition boundaries, in this case, an arbitrary span of time. From a database theory point of view, the difficulty with this query is due to the interaction of the following two facts: because the two conditions are on separate field values, all records which satisfy one of the two conditions need to be inspected to see if they also satisfy the other; because each condition is an inequality, the set of records which must be inspected therefore includes all records which come either before or after one of the test values (depending on which field value is inspected first).
SQL to find all former employees who worked during 1993.
select Name
from FormerEmployee
where EndDate≧1/1/93
and StartDate≦12/31/93
Consider the process of satisfying EXAMPLE QUERY 2 using the index represented by DATABASE TABLE 2. The cost of performing EXAMPLE QUERY 2 using an index based on either of the two fields would be O(K�N/2) average cost and O(K�N) worst-case cost. In other words, the query will have to look at half the table on average, and may need to inspect the whole table in order to find all of the records which satisfy the first of the two conditions. Since the cost of scanning the entire table without the index is O(N), the value of using the index is effectively lost (refer to TABLE 3). Indeed, when this type of circumstance is detected, query optimizers (preprocessing functions which determine the actual sequence of steps which will be performed to satisfy a query) typically abandon the use of an index in favor of scanning the whole table.
Cost of retrieving all records which overlap an interval using a conventional database index on the start or end value.
O(K�N/2) average,
O(K�N) worst case.
______________________________________DATA TABLE 1Comparison of Order function results for various valuesof N and M. A K value of 1.5 is used for the purpose of this example.N, O(N) M O(log(N)) O(log(N)+(M�K)) O(K � N / 2)______________________________________100 5 2 10 75100 10 2 17 75100 50 2 77 751000 5 3 11 7501000 10 3 18 7501000 50 3 78 75010000 5 4 12 750010000 10 4 19 750010000 50 4 79 7500______________________________________
From a more abstract point-of-view, the difficulty with this example is that there is actually more information which the conventional database representation does not take into account. StartDate and EndDate are in fact two different facets of a single data item which is the contained span of time. Put in spatial terms, the StartDate and EndDate fields define two positions on a Time-Line, with size defined by the difference between those positions. For even simple one-dimensional data, conventional database management is unable to optimize queries based on both position and size.
Introduction to two-dimensional Spatial Data
Spatial databases have a particularly demanding need for efficient database management due to the huge number of objects involved. A comprehensive street map for a moderate sized community may consist of tens to hundreds of thousands of individual street blocks; wide area maps of Los Angeles, Calif. or New York, N.Y. may contain more than a million street blocks. Similarly, the designs for modern integrated circuits also contain millions of components.
FIG. 1 illustrates a coordinate plane with X- and Y-axes. For the purpose of the following example, the size of the plane is chosen to be 200 �200 coordinate units, with the minimum and maximum coordinates values of -100 and 100 respectively for both X and Y. However, it should be noted that the principles discussed for the following example can be applied to any bounded two-dimensional coordinate system of any size, including, but not limited to planer, cylindrical surface and spherical surface coordinate systems. The latitude/longitude coordinate system for the earth's surface, with minimum and maximum latitude values of -90 degrees and +90 degrees, and minimum and maximum longitude values of -180 degrees and +180 degrees, is an example of one such spherical coordinate system.
FIG. 2 illustrates a distribution of points on the FIG. 1 plane. Ad discussed above, points are the simplest type of spatial data object. Their spatial description consists of coordinate position information only. An example of non-spatial description commonly associated with point objects might include the name and type of a business at that location, e.g., "Leon's BBQ", or "restaurant".
FIG. 3 illustrates a distribution of linear and polygonal spatial data objects representing a map (note that the text strings "Hwy 1" and "Hwy 2" are not themselves spatial data objects, but rather labels placed in close proximity to their corresponding objects). The spatial descriptions of linear and polygonal data objects are more complex because they include size and shape information in addition to solely their position in the coordinate system. An example of non-spatial description commonly associated with linear map objects might include the names and address ranges of the streets which the lines represent, e.g., "100-199 Main Street". An example non-spatial description commonly associated with polygonal map objects are the name and type of the polygon object, e.g., "Lake Michigan", "a great lake".
FIG. 4 illustrates the Minimum Bounding Rectangles (MBRs) of various of linear and polygonal spatial data objects. The Minimum Bounding Rectangle of a spatial data object is the smallest rectangle orthogonal to the coordinate axis which completely contains the object. Minimum Bounding Rectangles are typically very easy to compute by simple inspection for the minimum and maximum coordinate values appearing in the spatial description. In spatial data storage and retrieval methods, Minimum Bounding Rectangles are often used represent the approximate position and size of objects because the simple content (two pairs of coordinates) lends itself to very efficient processing.
Storing two-dimensional Spatial Data in a Conventional Database Management System
DATABASE TABLE 3 shows how some of the points from FIG. 2 might be represented in a regular database table. The points in DATABASE TABLE 3 correspond to the subset of the points shown in FIG. 2 indicated by the * markers. EXAMPLE QUERY 3 shows a SQL query which fetches all points within a rectangular window. A rectangular window query is among the simplest of the commonly used geometric query types. Inspection reveals that "Emily's Bookstore" is the only record from DATABASE TABLE 3 which will be selected by this query. FIG. 5 shows the rectangular window corresponding to EXAMPLE QUERY 3 superimposed on the points shown in FIG. 2.
______________________________________DATABASE TABLE 3A conventional database table containing some business locations.X Y Name Type______________________________________-42 25 Leon's BBQ Restaurant9 -34 Super Saver Grocery Store17 21 Emily's Books Book Store68 -19 Super Sleeper Motel-84 7 Bill's Garage Gas Station______________________________________
SQL to find all businesses in a window.
select Name, Type
from BusinessLocation
where X≧10 and X≦35
and Y≧15 and Y≦40
The principle problem illustrated by this example is that the traditional query optimization method of building a simple index doesn't work well enough to be useful. Consider building an index based on the X field value. Use of this index to satisfy EXAMPLE QUERY 3 will result in an over-sampling of the database table illustrated by the two thick vertical bars shown in FIG. 6. When the query is performed, the records for all point objects which are between those two bars will need to be examined to find the much smaller subset which actually fits within the shaded window. The "Super Saver" record of DATABASE TABLE 3 is an example of a record which would be needlessly examined.
While the work required to start the query is logarithmic, the expected number of point objects which are over-sampled is a linear function of the number of point objects in the database, as is shown by FORMULA 3. This means that the performance of this query will tend to degrade linearly as the number of objects in the database increases. When data volumes become large, this linear behavior will becomes much worse than the preferred O(log(N)), effectively making this style of solution ineffective. The same problem occurs with an index based on Y. The root cause of this problem is the fact that two-dimensional spatial coordinates consist of two values (X and Y) which are independent, but which are also equally important for most spatial queries. Conventional database management techniques are poorly suited to handling two-dimensional data.
Average cost of performing a two-dimensional rectangular window query using conventional database indexing methods, assuming a mostly even distribution in X.
O(log(N)+(K�N�C.sub.X /W.sub.X))
N=number of records in the table,
K=constant extra cost of reading records through the index.
CX =width of the coordinate space,
WX =width of the rectangle.
Description of Related two-dimensional Spatial Data Structures
The problems which conventional database management methods have with spatial data have led to the development of a variety of special purpose data storage and retrieval methods called Spatial Data Structures. The Design and Analysis of Spatia Data Structures by Hanan Samet includes a review of many of these methods. Many of the commonly used spatial data structures rely on the concept of tile based hierarchical trees.
FIG. 7 shows a rectangular recursive decomposition of space while FIG. 8 shows how the tiles formed by that decomposition can be organized to form a "tree" (a hierarchical data structure designed for searching). Data structures of this type are called Quad-Trees. FIG. 9 shows the points from FIG. 2 distributed into the "leaf-nodes" of this Quad-Tree.
FIG. 10 shows the subset of the Quad-Tree which is contacted by the Rectangular Window Retrieval of EXAMPLE QUERY 3. Note the contrast between the two bottom level nodes which must be inspected in the Quad-Tree, versus the long stripe which must be inspected using conventional database indexing as shown in FIG. 6. All of the inspected points from the two nodes in FIG. 10 are at least in the neighborhood of the rectangle, whereas some points inside the stripe in FIG. 6 are literally at the far edge (bottom) of the coordinate system. While the difference in number of inspected points is not great due to the simplicity of this example, the performance contrast is dramatic when the number of point objects is very large. The Quad-Tree is much better suited to storing position based data because it simultaneously indexes along both axis of the coordinate system.
In the most basic implementation of Quad-Trees, each tile in the hierarchy corresponds to a "record" containing information which pertains to that tile. If the tile is at the root or at a branch level, the corresponding record will contain the coordinates of, and pointers to, the records for each child tile. If the tile is at the leaf level, the corresponding record contains the subset of the spatial data objects (point, line or polygon objects and their attributes) which are geometrically contained within the tile's perimeter. The Quad-Tree database "records" are stored in a disk file in breadth first or depth first order, with the root at the head of the file. There are also variations which keep some spatial data objects at higher levels of the hierarchy, and which don't actually create records for leaves and branches which are either mostly or completely empty. For instance, leaves 133 and 144 in FIG. 9 are both empty.
An advantage of the Quad-Tree data structure is that it exhibits O(log(N)) cost when the spatial density of data is fairly uniform, therefore resulting in a well balanced tree. The balance is driven by the construction algorithms which control the amount of branching. The amount of branching (and therefore the maximum depth) in a Quad-Tree is driven by an interaction between the local density of spatial data objects and the maximum number of such objects which can be accommodated in a leaf level record. Specifically, when the data storage in a leaf record fills up, the leaf is split into four children with its spatial data objects redistributed accordingly by geometric containment. Each time this happens, the local height of the tree increases by one. As a result of this algorithmic behavior, however, very high local data densities can cause Quad-Tree performance to degrade toward O(N) cost due to exaggerated tree depth.
There are also a wide variety of non-hierarchical uses of hard edged tiles within a coordinate system. One such method uses space filling curves to sequence the tiles. FIG. 11 shows such a sequencing of a 4�4 tiling using the Peano-Hilbert curve. The resulting tiles are 50 units on a side. The tiles thus sequenced can be stored in records similar to the leaves in a Quad-Tree, where the data stored in each record corresponds to the subset contained within the tile's perimeter. The records can be simply indexed by a table which converts tile number to record location.
The tiles can also be used as a simple computational framework for assigning tile membership. DATABASE TABLE 4 shows the business location database table enhanced with corresponding tile number field from FIG. 11. The tile number is determined by computing the binary representations of the X and Y column and row numbers of the tile containing the point, and then applying the well known Peano-Hilbert bit-interleaving algorithm to compute the tile number in the sequence. Building an index on the tile number field allows the records to be efficiently searched with geometric queries, even though they are stored in a conventional database. For instance, it is possible to compute the fact that the rectangular window SQL query shown in EXAMPLE QUERY 3 can be satisfied by inspecting only those records which are marked with tile numbers 8 or 9.
______________________________________DATABASE TABLE 4The BusinessLocations database table enhance with a Tile field.Tile X Y Name Type______________________________________8 -42 25 Leon's BBQ Restaurant14 9 -34 Super Saver Grocery Store9 17 21 Emily's Books Book Store13 68 -19 Super Sleeper Motel4 -84 7 Bill's Garage Gas Station______________________________________
Analysis of the expected cost of this system shows the importance of tile granularity which this and all similar systems share. Extrapolating from the Order function for database queries given in FORMULA 1, the order function for this method is given by FORMULA 4. For a fixed sized window retrieval rectangle, the expected number of tiles is given by FORMULA 5, (the 1 is added within each parentheses to account for the possibility of the window retrieval crossing at least one tile boundary). For a given average size window retrieval, the value of A in FORMULA 4 is therefore an inverse geometric function of the granularity of the tiling which can be minimized by increasing the granularity of the tiling. The expected number of points per tile is given by FORMULA 6. For a given average data density, the value of B in FORMULA 4 is therefore roughly a quadratic function of the granularity of the tiling which can be minimized by decreasing the granularity of the tiling. For a given average retrieval window size and average data density, the expected value of FORMULA 4 can therefore be minimized by adjusting the granularity of the tiling to find the point where the competing trends of A and B yield the best minimum behavior of the system.
Expected cost of window retrieval using tile numbers embedded in a database table.
A=expected number of tiles needed to satisfy the query,
B=expected number of objects assigned to each tile.
Expected number of tiles per retrieval.
A=round.sub.-- up(W.sub.X /T.sub.X +1)�round.sub.-- up(W.sub.Y /T.sub.Y +1)
WX =width of the rectangle,
TX =width of a tile,
WY =height of the rectangle,
TY =height of a tile.
Expected number points per tile.
B=T.sub.X �T.sub.Y �D
TX =width of a tile,
TY =height of a tile,
D=average density of points.
While this technique still over-samples the database, the expected number of records which will be sampled is a function of the average number of records in a tile multiplied by the average number of tiles needed to satisfy the query. By adjusting the tile size, it is possible to control the behavior of this method so that it retains the O(log(N)) characteristics of the database indexing scheme, unlike a simple index based only on X or Y coordinate. Oracle Corporation's implementation of two-dimensional "HHCODES" is an example of this type of scheme.
The problem which all tile based schemes suffer is that higher dimension objects (segments, polylines, polygons) don't fit as neatly into the scheme as do points as FIGS. 12 and 13 illustrate. FIG. 12 shows how the linear and polygonal data objects from FIG. 3 naturally fall into the various nodes of the example Quad-Tree. Note how many objects reside at higher levels of the Quad-Tree. Specifically, any object which crosses one of the lower level tiles boundaries must be retained at the next higher level in the tree, because that tile is the smallest tile which completely covers the object. This is the only way that the Quad-Tree tile hierarchy has of accommodating the object which might cross a boundary as a single entity.
FIG. 13 shows the dramatic impact which the data that is moved up the hierarchical tree has on the example rectangular window retrieval. Since linear and polygonal data has size in addition to position, some substantial subset will always straddle the tile boundaries. As the number of objects in the database grows, the number of objects which reside in the upper nodes of the quad-tree will also grow, leading to a breakdown of the performance benefit of using the structure. This problem is shared by all hard tile-boundaried methods (Quad-Trees, K-D Trees, Grid-Cells and others).
There are three principle ways used to get around the problem of managing objects that straddle tile boundaries: 1) break up any objects which cross tile boundaries into multiple fragments, thereby forcing the data objects to fit, 2) duplicate the objects once for each extra tile that the object touches, and 3) indirectly referencing each object, once for each tile that it touches. Fragmentation in particular is most often used in read-only map data applications. While each of these methods has its respective strengths, a weakness shared by all of them is the great increase in implementation complexity, particularly when the content of the spatial database must be edited dynamically. Note also that these techniques need to be applied to each of the offending objects, which, as the object population in the middle and upper level nodes of FIG. 13 shows, is likely to be a substantial fraction of the database.
The R-Tree (or Range-Tree) is a data structure which has evolved specifically to accommodate the complexities of linear and polygonal data. Like Quad-Trees, R-Trees are a hierarchical search structure consisting of a root and multiple branch levels leading to leaves which contain the actual spatial data. Unlike Quad-Trees which are built from a top-down regular partitioning of the plane, R-Trees are built bottom-up to fit the irregularities of the spatial data objects. Leaf-level records are formed by collecting together data objects which have similar size and locality. For each record, a minimum bounding rectangle is computed which defines the minimum and maximum coordinate values for the set objects in the record. Leaf records which have similar size and locality are in turn collected into twig-level records which consist of a list of the minimum bounding rectangles of and pointers to each of the child records, and an additional minimum bounding rectangle encompassing the entire collection. These twig records are in turn collected together to form the next level of branches, iterating until the tree converges to a single root record. Well balanced R-Trees exhibit O(log(N)) efficiency.
The difficulty with R-Trees is that, since there definition is dependent on how the data content "fits" together to build the tree, the algorithms for building and maintaining R-Trees tend to be complicated and highly sensitive to that data content. Static applications of R-Trees, where the data content does not change, are the easiest to implement. Dynamic applications, where the data is constantly being modified, are much more difficult. This is in part because the edit operations which modify the geometric descriptions of the spatial data, by implication have the potential to change the minimum bounding rectangle of the containing record, which in turn can effect the minimum bounding rectangle of the parent twig record, and so on up to the root. Any operation therefore has the potential to cause significant reorganization of the tree structure, which must be kept well balanced to maintain O(log(N)) efficiency.
In summary, a variety of special purpose data structures have evolved to meet the particular requirements of multi-dimensional spatial data storage. While these techniques effectively solve some of the problems associated with two-dimensional spatial data, they also share the same inherent weakness which one-dimensional methods have when dealing with data which represents a continuous range of values. In the one-dimensional case, the problem data object types are closed intervals of a single variable, for example, intervals of time. In the two-dimensional case, the problem data object types such as lines, circles and polygons are described by closed intervals of two variables.
Description of three-dimensional and Higher Dimension Spatial Data Structures
Spatial data which describe a three-dimensional surface has similar requirements for efficient organization. The added complexity is that three-dimensional spatial data consists of 3 independent variables (X, Y and Z) which have equal weight. three-dimensional geometric descriptions of lines, surfaces and volumes are also more complicated than two-dimensional lines and polygons, which make the data somewhat bulkier.
However, the basic database organizational problems in three-dimensional are fundamentally the same as those in two-dimensional space, and are therefore amenable to very similar solutions. There is a three-dimensional equivalent to Quad-Tree which uses a regular cubic partitioning of three-dimensional space. Oracle Corporation has also implemented a three-dimensional version of its "HHCODE" technology for storing point objects. There is also a three-dimensional equivalent to R-Trees which uses three-dimensional minimum bounding boxes to define the coordinate extent of leaves and branches. These techniques also share the same limitations as one-dimensional and two-dimensional techniques when handling data representing continuous three-dimensional intervals.
The same principles also apply to organizing higher dimension data. In particular, Oracle Corporation has extended its "HHCODE" technology to accommodate point objects of up to 11 dimensions.
As described above, there are several problems associated with efficiently organizing and indexing multi-dimensional spatial data within a database. For this reason, an improved method for staring spatial data would be advantageous. This advantage is provided by the system of the present invention.
As discussed above, databases of information can comprise hundreds of megabytes of data, thereby being very difficult to efficiently search. However, multidimensional data that is stored with the method and system of the present invention can be retrieved with far fewer processor cycles and disk seeks than in prior systems.
In the past, one way of organizing large quantities of spatial data was to first overlay a coordinate system onto the spatial data. Each object within the spatial database would be assigned X and Y coordinates. Larger objects, such as lines, polygons and other shapes would be assigned a single location point within the coordinate system that would act like an anchor to hold the object to its position. For example, a line might have a location point that corresponds to one of its ends, and the rest of the object would contain information about the other ends'0 X and Y coordinates, the line's thickness, color, or other features. In this manner, each object within the spatial database would have a single location point, no matter how large the object was in the database.
By separating the larger coordinate system into sub-regions, each location point could be assigned to a particular sub-region. These sub-regions are known as tiles because they resemble a series of tiles once superimposed over a coordinate system that included a set of spatial data. Each tile would, therefore, hold a particular set of spatial data. Thus, a user that knew which tiles held the desired information only needed to search those specific tiles. Once the computer user identified spatial data in a desired region of the spatial database, the system read those few tiles from memory and began the process of gathering objects from those tiles. This method thereby prevented the system from analyzing every object in the entire database for every computer user's request.
While this system of assigning a title number to data objects worked well for data comprising only points, it was very slow when larger data objects were involved. Larger data objects could be lines, circles or polygons within the spatial database. Many problems related to organizing spatial data objects had to do with the difficulty of assigning these objects to only one tile, when the object traversed across many tiles. For example, a long line that crosses over three tiles can pose many problems. Since no particular tile is assigned to the long line, the line might be assigned to either the wrong tile or a series of tiles. Assigning an object, such as a line, to multiple tiles leads to a tremendous computer overhead since all of these associations must be maintained in the computer system.
The one embodiment reduces these previous problems by providing a series of overlaps between every tile in a spatial database. These overlapping tiles, termed herein "shingles", represent tiles that overlap their nearest four neighbors. The area of overlap for any shingle can be pre-determined to provide the maximum efficiency. For example, a spatial database holding map data might be programmed to have a shingle size of 10 square miles with each single overlap comprising 5 square miles. Thus, every shingle would have an overlap with its nearest four neighbors that is equal to the size of the neighboring shingles. The shingle overlap allows more data objects in the spatial database to be assigned to only one shingle and not split between multiple hard edged tiles. As discussed above, dividing an object across multiple tiles is very disadvantageous because it requires the system to track every tile that is assigned to a particular object.
Thus, the purpose of the tiered shingle structure is to provide a logical framework for resolving Spatial Queries into the database in a timely and efficient manner. The spatial data structure is conceptual structure that provides the organization for indexing objects within a spatial data set. The tiered shingle structure does not have to be embodied in a specific computer data structure to be useful and effective. The Tiered Shingle Structure is part of a computational tool for organizing a set of spatial data objects, such as lines, squares and polygons into subsets based on their similar position and size in space. In addition, the tiered shingle structure can provide a mechanism for identifying those subsets of the database which contain the necessary and sufficient spatial data objects required by a specific spatial query into the database.
The system and method of the present invention alleviates the problems found in prior systems of small objects which cross title boundaries being moved to higher levels in the tree. In one embodiment the layers of sub-regions are generated, the tiles are calculated to have areas which overlap. Therefore, no hard edges exist between tiles or an object might reside in two tiles simultaneously. These overlapping sub-regions are termed shingles. Because a shingle might overlap with, for example, one half of its closest neighbors, objects which fit into the large shingle region will remain at the lowest possible level. Another advantage of the present invention is that it improves the efficiency of individual databases because the shingle overlap size in each layer can be pre-programmed to provide the fastest access to the spatial database.
A database with numerous small objects, such as streets, can be programmed with a smaller shingle overlap size than databases that have numerous large objects, such as freeways. Tailoring the size of the shingles and overlap areas to the size of the average data object keeps more data objects at a single, lower level within the database architecture of the present invention. However, any data object that cannot fit within one shingle can be stored in the next higher level of shingling.
For example, the first level of shingling might have a shingle size of 5 square miles and divide the map database into 10,000 shingles. However, the second level of shingling might have a shingle size of 10 square miles and divide the map database into 2500 shingles. This will be discussed more specifically below in reference to FIG. 12.
One embodiment of the invention is a method of organizing spatial data objects in a map database, including referencing data objects as location points in a region to a coordinate system; separating the region into multiple sub-regions and assigning the data objects whose location point falls within a sub-region to the sub-region so long as no part of the object extends outside the sub-region by a predetermined amount.
Another embodiment of the present invention is a method of storing spatial data objects to a computer memory, comprising the steps of (1) determining the size of each data object within a coordinate system; (2) assigning each spatial data object to a location point in the coordinate system; (3) calculating the boundaries of a first tier of overlapping sub-regions of the coordinate system so that each point in the coordinate system is assigned to at least one sub-region; (4) referencing each spatial data object that is smaller than the size of said sub-regions in the first tier to a specific sub-region of the coordinate system based on the location point of each spatial data object; and (5) storing the spatial data objects along with its reference to a specific sub-region to the computer memory.
FIG. 1 is a diagram illustrating a coordinate plane in two-dimensional space.
FIG. 2 is a diagram of a computer database depicting a distribution of point spatial data objects on the coordinate plane of FIG. 1.
FIG. 3 is a diagram of a computer database showing a distribution of linear and polygonal spatial data objects representing a map on the coordinate plane of FIG. 1.
FIG. 4 is an illustration of the minimum bounding rectangles corresponding to a line segment, a polyline and a polygon in a computer database.
FIG. 5 is an illustration of a rectangular window retrieval on the coordinate plane of FIG. 1.
FIG. 6 is a depiction of the coordinate system of FIG. 1, wherein a conventional computer database indexing scheme has been applied to search for spatially distributed data within the coordinate plane.
FIG. 7 is an illustration of a regular quadrant-based decomposition of the coordinate plane of FIG. 1.
FIG. 8 is a diagram of a tree that depicts how the quadrants and sub quadrants of the coordinate plane decomposition of FIG. 7 can be organized to form a Quad Tree-type spatial data structure for a computer database.
FIG. 9 is an illustration of a distribution of point data objects into Quad-Tree nodes in a spatial data structure of a computer database.
FIG. 10 is a diagram of a rectangular window retrieval applied to a Quad-Tree-based data structure of a computer database that illustrates the effectiveness of this data structure for managing two-dimensional point data.
FIG. 11 is an illustration of how a computer database uses a regular, quadrant-based tiling scheme for organizing two-dimensional data by calculating the Peano-Hilbert space filling curve.
FIG. 12 is a depiction of how linear and polygonal spatial data objects fit into a two-dimensional data structure of a computer database that is organized as a Quad-Tree.
FIG. 13 is an illustration of a rectangular window retrieval applied to a computer database that is organized as a Quad-Tree and contains linear and polygonal data. This illustration demonstrates the ineffectiveness of organizing two-dimensional data into this type of data structure and managing spatial data which has an inherent size.
FIG. 14 is an illustration of the organization of a computer database having a three level tiered shingle structure applied to the coordinate plane.
FIG. 15 is an illustration of linear and polygonal map data elements distributed into a computer database that is organized using the Tiered Shingle Structure of the present invention.
FIG. 16 is an illustration of a rectangular window retrieval for a computer database applied to the Tiered Shingle Structure of the present invention and showing the effectiveness of this data structure for managing spatial data which has size.
FIG. 17 is an illustration of a worst case scenario.
Reference is now made to the drawings wherein like numerals refer to like parts throughout. For convenience, the following description will be organized into the following principle sections: Overview, Functional Description, Example Implementation within a Database Table, Empirical Analysis, Mathematical Analysis and Conclusion.
1. Overview
The present invention is a method and system for organizing large quantities of data. Although the examples used to illustrate the embodiment of this invention are for organizing map data, the techniques can be applied to other types of data. Other applicable data types include engineering and architectural drawings, animation and virtual reality databases, and databases of raster bit-maps.
Additionally, although the figures describe an embodiment of the invention that could be used to organize data representing an object of two dimensions, the present invention is applicable to organizing data for objects of three or more dimensions.
Thus, as discussed above, the purpose of the tiered shingle structure is to provide a logical framework for resolving spatial queries into a computer database in a timely and efficient manner. The tiered shingle structure does not have to be embodied in a specific computer data structure to be useful and effective. The tiered shingle structure is part of a computational tool for organizing a set of spatial data objects, such as lines, squares and polygons into subsets based on their similar position and size in space. In addition, the tiered shingle structure provides a mechanism for identifying those subsets of the database which contain the necessary and sufficient spatial data objects required by a specific spatial query into the database. In addition, the tiered shingle structure can run on an Intel� processor based computer system in one preferred embodiment. However, other computer systems, such as those sold by Apple�, DEC� or IBM� are also anticipated to function within the present invention.
FIG. 14 is an illustration of a three level tiered shingle structure as it would be applied to the example coordinate plane shown in FIG. 1. This Tiered Shingle Structure is similar to the regular quadrant-based decomposition of the coordinate plane shown in FIG. 7. However, rather than each level data structure being organized with discrete, hard-edged tiles, each level consists of overlapping shingles. The overlap between adjacent shingles will be discussed in more detail below, but is indicated by the shaded bands 22 in FIG. 14. Note that shingles 1-18 formed by regular overlapping squares or rectangles which are normal to the coordinate axis are the easiest to understand and implement, though other configurations are possible.
The finest level in a Tiered Shingle Structure (shingles 1-16 in FIG. 14) is designed to serve as the indexing medium for the vast majority of the spatial data. Thus, it is desirable for the majority of data objects to be assigned to shingles in this level of the data structure. Thus, the spatial objects which extend beyond the edge of the central portion of the shingle by more than a predetermined amount (e.g., its overlap will be assigned to the next higher tier in the hierarchy). The granularity (size of shingle and amount of overlap) of that finest level can be tuned to balance between the competing trends of maximizing the number of spatial data objects which "fit" in that level of shingling (accomplished by increasing the size of the shingles), versus maximizing the degree of partitioning (accomplished by decreasing the size of the shingles). The coarser levels of shingles (a single level in FIG. 14 consisting of shingles 17-20) serve as an alternative indexing medium for those objects which do not fit in the finest level (i.e., any object which is spatially too large to fit within a particular tile), including its shingled overlap with its nearest neighbors. Note that the absolute size of the overlap increases as the tile size increases in each successively coarser level. Finally, there is the top-level shingle 21 (FIG. 14) which is used to assign those few objects which are too large to fit within other tiles of the data structure.
FIG. 15 is an illustration of how each of the linear and polygonal objects depicted in the FIG. 3 are organized within the Tiered Shingle Structure data structure of the present invention. As will be explained below, each shingle contains a subset of the objects having a similar position and size. The benefit of regular overlapping tiles provided by the data structure of the present invention can be seen by comparing the present invention data structure organization of FIG. 15 with the data structure organization of FIG. 12. This shingled overlap system allows the small data objects which were located on the arbitrary tile boundaries of the prior art data structures (the bulk of the population in tiles 100, 110, 120, 130 and 140 in FIG. 12) to remain within the lowest level in the Tiered Shingle Structure. Specifically, any object which is smaller than the size of the overlap at any given level is guaranteed to fit into some shingle at or below that level. In addition, many objects which are larger than the shingle overlap may also fit within a lower level. For example, shingles 1, 6 and 9 in FIG. 15 are mostly populated by such objects. Note the position of those same objects in FIG. 12. DATA TABLE 2 provides a numerical comparison of the data object partitioning in FIG. 15 versus FIG. 12.
Contrasting FIG. 16 to FIG. 13 shows why the improved partitioning scheme provided by the Tiered Shingle Structure translates into improved rectangular window query performance over an equivalent structure based on prior art. While the number of tiles which need to be inspected during a data query has slightly increased from five in FIG. 13 to seven in FIG. 16, the number of data objects which must be inspected has dropped by nearly half (sixteen versus thirty-one). This drop is directly due to the fact that many more objects can be fit into the finer partition levels with only a slight increase in the size of each partition. As discussed above, a spatial data query must inspect every object within each tile that meets the parameters of the query. Thus, for FIG. 13, each of the data objects within the top-level tile 100 must be inspected to determine whether it meets the parameters of the spatial data query. Because so many more data objects are able to reside in the smaller tile structures when organized by the method of the present invention, there are many fewer data objects to inspect during a spatial data query. For this reason, computer databases that are organized by the system of the present invention can be searched more rapidly than prior art systems.
Note that in practice, the equivalent structure based on prior art shown in FIGS. 12 and 13 is seldom actually implemented. This is because the number of objects which are stuck in the upper levels is too great of a burden to allow reasonable performance. Instead, hard boundaried methods resort to alternative strategies, including fragmenting individual data objects at the tile boundaries, duplicating objects once for each tile which they touch, or indirectly referencing the objects once for each tile which they touch.
______________________________________DATA TABLE 2Numerical comparison of the distributions of map objectsin the Tiered Shingle Structure depicted FIG. 12 the versusQuad-Tree depicted in FIG. 10. Parts of Tiered ShglLevel Structure Structure Avg/Shingle Quad-Tree Avg/Node______________________________________top 1 1 1 14 14middle 4 3 1 17 4bottom 16 60 4 33 2______________________________________
2. Functional Description
The preferred embodiment of the present invention provides two principle classes of functions. The first class, Shingle Assignment Functions, convert the spatial description of a spatial data object into a "Shingle-Key". A Shingle-Key is a number which uniquely represents a specific shingle in a Tiered Shingle Structure. The second class, Query Control Functions, convert the query specification of certain common geometric queries into a list of the necessary and sufficient Shingle-Keys which "contain" the data needed to satisfy the query.
Appendix A contains a preferred embodiment of the invention written in the C programming language. There is one Shingle Assignment Function, KeyForBox (beginning on line 0507), which computes a Shingle-Key given a predetermined Minimum Bounding Rectangle and one Query Control Function Set, KeyRectCreate (line 0703), KeyRectRange (line 1030) and KeyRectDestroy (line 1125), which together compute and return of all Shingle-Keys which are needed to solve a Rectangular Window Query. The KeyForBox and KeyRectCreate function calls both expect their corresponding spatial description parameters to be expressed in Longitude (X1 and X2) and Latitude (Y1 and Y2) coordinates with decimal fractions. Those functions also both take two additional parameters: nLevelMask which controls which levels are to be included in the Tiered Shingle Structure, and nLevelLap which controls the amount of overlap between adjacent shingles. The in-line documentation included within Appendix A describes the parameter usage in greater detail.
Note that in both KeyForBox and KeyRectCreate, the double precision Longitude/Latitude coordinates are immediately translated to a fixed point integer representation, where 360 degrees of Longitude are represented in 28 bits of the integer X coordinates, and 180 degrees of Latitude are represented in 27 bits of the integer Y coordinates. The resolution of this representation is precise to roughly the nearest half-foot on the ground. This translation from double precision to fixed-point allows the use of highly efficient modular binary arithmetic for computing both shingle containment and Peano-Hilbert shingle sequencing.
For convenience, the remainder of this section is divided into the following three sub-sections: Shingle Assignment Functions, Query Control Functions and Implementation within a Conventional Database.
2.1 Shingle Assignment Functions
The Shingle-Keys generated by a Shingle Assignment Function are used to partition the members of a set of spatial data into subsets where all members of a subset have the same Shingle-Key. This means that each member of a subset can be "fit" onto the same shingle (eg: the size of the minimum bounding box that contains the object is not larger than the tile). This further means that all members of a subset have a similar spatial size and position. Indexing and clustering the data in the storage mechanism (common database management practices intended to improve efficiency) by Shingle-Key are therefore very effective, since spatial queries usually select objects which, as a group, have similar position and size.
PROCEDURE TABLE 1 shows a set of computational steps that will derive the Shingle-Key corresponding to a particular spatial data object. The steps in this table correspond to lines 0536 through 0652 of the KeyForBox function in Appendix A. The details of some of these steps are expanded upon in subsequent paragraphs.
PROCEDURE TABLE 1______________________________________Sequence of computational steps required to convert a SpatialDescriptioninto the corresponding Shingle-Key within a Tiered Shingle Structurebased on regular overlapping squares or rectangles.______________________________________Step 1 Compute the Minimum Bounding Rectangle (MBR) of the Spatial Description.Step 2 Repeat Steps 3-6 for each sequential level in the structure, starting with the finest:Step 3 At the current level, determine which Shingle's minimum corner is "closest-to" but also "less-then-or-equal-to" the minirnum corner of the MBR.Step 4 Determine the maximum comer of this Shingle.Step 5 If the maximum corner of this Shingle is "greater-than" the maximum corner of the MBR, then have found the smallest containing shingle. Goto Step 7.Step 6 Couldn't find smaller shingle, therefore assign object to the top-level shingle.Step 7 Determine the Shingle-Key for the current Shingle.______________________________________
Step 1 given in PROCEDURE TABLE 1 is computing the Minimum Bounding Rectangle of the Spatial Data Object. The Minimum Bounding Rectangle of a spatial data object is the smallest rectangle which is normal to the coordinate axes and completely contains the object. The typical method of representing a Minimum Bounding Rectangle is with two points: the minimum point (lower-left corner in conventional coordinate systems) and the maximum point (upper-right corner). FIG. 4 illustrates the minimum bounding rectangles of a few common types of spatial objects. PROCEDURE TABLE 2 describes how minimum bounding rectangles can be computed for a variety of common types of spatial data objects. In some cases, a slight over-estimate of the Minimum Bounding Rectangle may be used when the precise computation is too expensive.
PROCEDURE TABLE 2______________________________________Descriptions of how Minimum Bounding Rectangles can bederived for some common types of Spatial Data Objects______________________________________Point The minimum and maximum points are the same as the Point itself.Seg- The minimum point consists of the lesser x-coordinate andment lesser y-coordinate of the two end points; the maximum point consists of the greater x-coordinate and greater y-coordinate of the two end points.Polyline The minimum point consists of the least x-coordinate and least y-coordinate found in the list of points for the Polyline; the maxinium point consists of the greatest x-coordinate and greatest y-coordinate found in the list of points for the Polyline.Polygon The minimum point consists of the least x-coordinate and least y-coordinate found in the list of points for the Polygon; the maxinium point consists of the greatest x-coordinate and greatest y-coordinate found in the list of points for the Polygon.Circle The minimum point is found by subtracting the radius of the Circle from each coordinate of the center of the Circle; the maximum point is found by adding the radius of the Circle to each coordinate of the center of the CircleB- The minimum point can be estimated by selecting the least x-Spline coordinate and least y-coordinate found in the set of four point used to construct the B-Spline; the maximum point can be estimated by selecting the greatest x-coordinate and greatest y- coordinate found in the set of four point used to construct the B-Spline. A B-spline is constructed from two end-points and two control-points.______________________________________
In Step 3 of PROCEDURE TABLE 1 a determination is made whether the Shingle in the current level who's minimum point (lower-right corner) is both closest-to and less-than-or-equal-to the Minimum Bounding Rectangle of the spatial object. If the Tiered Shingle Structure is based on a regular rectangular or square tiling of the coordinate plane (as illustrated in FIG. 14 and described in Appendix A) then the candidate shingle is the one corresponding to the tile which contains the minimum point of the Minimum Bounding Rectangle. In the KeyForBox function of Appendix A, lines 0590 and 0591, the coordinates of the minimum point of the Shingle are computed directly using binary modular arithmetic (the tile containment is implied).
In Step 4 of PROCEDURE TABLE 1, the maximum point (upper right corner) of the candidate shingle is calculated. That point can be determined directly from the minimum point of the shingle by adding the standard shingle width for the current level to the x-coordinate and adding the standard shingle height for the current level to the y-coordinate. In Appendix A, this calculation is performed in lines 0598 through 0601 of the KeyForBox function. Since the Tiered Shingle Structure used in Appendix A is based on overlapping squares, the same value is added to each coordinate.
In Step 5 of PROCEDURE TABLE 1, the maximum corner of the shingle is compared to the maximum corner of the Minimum Bounding Rectangle (MBR). This is accomplished through a piece-wise comparison of the maximum x-coordinate of the shingle to the maximum x-coordinate of the MBR and the maximum y-coordinate of the shingle to the maximum y-coordinate of the MBR. If each coordinate value of the shingle is greater than the corresponding value for the MBR, then the maximum corner of the shingle is said to be greater than the maximum corner of the MBR. In Appendix A, this calculation is performed on lines 0609 and 0610 of the KeyForBox function.
Step 6 of PROCEDURE TABLE 1 is performed if, and only if, the repeat loop of Steps 2-5 is exhausted without finding a shingle which fits the Minimum Bounding Rectangle. The spatial object which is represented by the Minimum Bounding Rectangle therefore does not fit within any of the lower levels (eg: tiers) of the shingle structure. It therefore by definition must fit within the top-level shingle. In Appendix A, this step is performed on lines 0651 and 0652 of the KeyForBox function.
Step 7 given in PROCEDURE TABLE 1 determines the Shingle-Key for the shingle which was found to "best-fit" the data object. In Appendix A, the Peano-Hilbert space filling curve is used to assign Shingle-Key numbers via the KeyGenerator function call shown in lines 0623-0625 of the KeyForBox function. The KeyGenerator function is implemented in lines 0043-0485 of Appendix A. The parameters given to the KeyGenerator function include the coordinates of the minimum point of the Shingle, and the corresponding level in the Tiered Shingle Structure. Note that the uniqueness of Shingle-Key numbers across different levels is guaranteed by the statement on line 0482 of Appendix A.
2.2 Query Control Functions
The second class of functions are used for controlling spatial queries into the computer database. Functions of this class convert the query specification for certain common geometric queries into a list of the necessary and sufficient shingle keys which contain the data needed to satisfy the query. The list of shingle-keys may be expressed either as an exhaustive list of each individual key, or as a list of key ranges (implying that all keys between and including the minimum and the maximum values of the range are needed).
The most common types of spatial queries are those which find all objects which overlap a region defined by a chosen perimeter. Examples include the Rectangular Window Query and the Polygon Overlap Query. PROCEDURE TABLE 3 shows the general usage of this type of Query Control Function.
PROCEDURE TABLE 3______________________________________Steps in the general usage of region overlap Query Control______________________________________Functions.Step 1 Identify the set of shingles which overlap the region being queriedStep 2 Repeat Steps 3-5 for each identified shingleStep 3 Retrieve from the computer database the subset of spatial data which has been assigned the identified shingle-keysStep 4 Repeat Step 5 for each object in the subsetStep 5 Test the object for overlap with the region being queried; Retain each object which passes the test______________________________________
For queries that overlap several regions (eg: tiles) of the database, the set of shingles which overlap the queried region is the union of the shingles from each hierarchical level which overlap the region. The shingles for a given level can be found by first identifying all the shingles which touch the perimeter of the region, and then filling in with any shingles missing from the middle section. One method of finding all the shingles which touch the perimeter of the query is to computationally trace the path of each component through the arrangement of shingles, taking care to eliminate redundant occurrences. A method of filling in the shingles missing from the middle section is to computationally scan bottom-to-top and left-to-right between the Shingles found on the perimeter.
The software program in Appendix A implements one Query Control Function Set in lines 0655-1135. This set of functions identifies all shingles which overlap the given Longitude/Latitude rectangle. PROCEDURE TABLE 4 shows the algorithmic usage of this function set.
The internal function KeyRectGenerator implemented in lines 0792-1020 of the software code in Appendix A is used to compute the set of shingles for the current level. Similar to the method outlined above, this function traces through the shingles along each edge of the rectangle. However, since the Peano-Hilbert space-filling curve is used to sequence the shingles and the Peano-Hilbert curve by its nature is guaranteed to be continuous, it is sufficient to simply note whether the curve is headed into or out of the rectangle at each shingle on the edge and sort the resulting lists to find the minimum and maximum of each implied range, letting the curve fill in the middle. FIG. 17 illustrates how the Peano-Hilbert space-filling curve winds its way contiguously through each tile in one level of a spatial database.
PROCEDURE TABLE 4______________________________________Algorithmic usage of the KeyRectcreate, KeyRectRange,KeyRectDestroy function set.______________________________________Step 1 Create a KeyRect structure for the rectangle using KeyRectCreateStep 2 For each Shingle-Key range (MinKey, MaxKey) returned by KeyRectRange, repeat steps 3-5Step 3 Select all Objects where ObjectKey ≧ MinKey and ObjectKey ≦ MaxKeyStep 4 For each selected Object, repeat step 5Step 5 If ObjectSpatialData is overlaps the rectangle, process the ObjectStep 6 Destroy the KeyRect structure using KeyRectDestroy______________________________________
It is possible to extend the same method to perform a general polygonal retrieval instead of a rectangular retrieval. A general polygonal retrieval is similar to a rectangular window retrieval in that the purpose of the query is to fetch all database objects which are inside or which touch the boundary of an arbitrary polygon. However, do to the limitations of the System Query Language (SQL), it is not possible to express a general polygonal query in a form equivalent to EXAMPLE QUERY 3.
To extend the algorithm of PROCEDURE TABLE 4 to perform a general polygonal query, care must be used to trace the path of the polygon though the perimeter shingles while simultaneously keeping track of which shingles correspond to entry and exit points, and which, if any are redundant. Note, however, that once the boundary shingles are identified, the same minimum and maximum range organization will work. In general, this method will work for finding all the shingles which overlap any closed region.
2.3 Implementation within a Conventional Database
DATABASE TABLE 5 illustrates a sample database table containing data objects representing a portion of the street segments from FIG. 3. The Shingle column contains the assigned Shingle-Keys from FIG. 15. The X1/Y1 and X2/Y2 columns contain the coordinates of the minimum bounding rectangle for each object within the chosen shingle.
EXAMPLE QUERY 4 shows how DATABASE TABLE 5 can be queried to find a portion of each data object with a minimum bounding rectangle that overlaps a the rectangular query window, assuming a functional interface similar to Appendix A existed for this tiered shingle structure. This query corresponds to Steps 3-5 in PROCEDURE TABLE 4. As such, this query would have to be repeated once for each key range in order to find all segments which overlap the rectangle.
As shown in FIG. 16, the key ranges which correspond to EXAMPLE QUERY 4 window are 8-9, 17-20 and 21-21. Note how running this query using these key ranges on DATABASE TABLE 5 will result in selecting the single overlapping segment assigned to Shingle 9. Other objects from FIG. 3 not listed in DATABASE TABLE 5 also overlap the window.
______________________________________DATABASE TABLE 5A conventional database table containing Street Segments.These objects correspond to the individual segments the highlightedhighways HWY 1 and HWY 2 in FIG. 3 as distributed into theTiered Shingle Structure represented in FIG. 15.Shingle X1 Y1 X2 Y2 StreetName______________________________________1 -95 -65 -45 -65 Hwy 12 -45 -65 -25 -65 Hwy 12 -25 -65 -5 -65 Hwy 12 -5 -65 10 -65 Hwy 12 -25 -90 -25 -65 Hwy 22 -25 -65 -25 -40 Hwy 23 -25 -40 -25 -15 Hwy 23 -25 -15 -25 10 Hwy 28 -25 10 -5 10 Hwy 28 -5 10 10 10 Hwy 29 10 10 55 30 Hwy 211 55 75 95 75 Hwy 212 55 30 55 45 Hwy 215 10 -65 25 -65 Hwy 116 75 -65 95 -65 Hwy 119 55 45 55 75 Hwy 220 25 -65 75 -65 Hwy 1______________________________________
PROCEDURE TABLE 5______________________________________Recommended Procedures for building and maintain and conventionaldatabase implementation, using functions similar to those in Appendix______________________________________A.Database LoadStep 1 Prior to load: Pre-assign Shingle-Keys to records using KeyForBox function.Step 2 Prior to load: Sort records by Shingle-Key.Step 3 Prior to load: Include Shingle field in database table schema design.Step 4 Bulk load records into database table.Step 5 Create index on Shingle Field. Implement clustering, if possibleRecord InsertStep 1 Prior to Insert: Compute Shingle-Key using KeyForBox on the Minimum Bounding Rectangle of the Spatial Data.Step 2 Insert record into database, including Shingle- Key.Record UpdateStep 1 Prior to Update: Compute Shingle-Key using KeyForBox on the Minimum Bounding Rectangle of the new Spatial Data.Step 2 If new Shingle-Key is different then old Shingle-Key, include the new Shingie-Key in the update.Record For each selected Object, repeat step 5.DeleteDatabase Destroy the KeyRect structure usingUnload KeyRectDestroy.______________________________________
SQL to find all segments in a window, given a key range MinKey to MaxKey.
select StreetName, X1, Y1, X2, Y2
from StreetSegments
where Shingle≧MinKey
and Shingle≦MaxKey
and X1≧-10 and X1≦35
and X2≧-10 and X2≦35
and Y1≧15 and Y1≦40
and Y2≧15 and Y2≦40
3. Empirical Analysis
The improved partitioning identified in the earlier comparison of FIGS. 12 and 15 can be validated by measuring how the present invention behaves when given a large quantity of real map data. DATA TABLE 3 shows the results of one such measurement. The data used to perform these measurements is an extract of street segments from a U.S. Census Bureau Topographically Integrated Geographic Encoding and Referencing (TIGER) database file of Los Angeles County, Calif. Census TIGER files comprise the defacto industry standard street map data source. Los Angeles County is a good representative choice because of its large size (426367 segments in this extract) and diverse coverage (dense urbanized core, sprawling suburbia and sparsely populated mountain and desert regions).
DATA TABLE 3 compares the natural distribution of the TIGER street segments into both a Tiered Shingle Structure having a 25% overlap and an equivalent hard boundaried tiling such as that found in the prior art. These statistics were generated by feeding each segment to the KeyForBox function from the software program given in Appendix A. To generate the Shingles with 25% Overlap statistics, a value of 2 was used for the nLevelLap parameter (shingle-- overlap=tile-- size * 1/2nLevelLap). To generate the Hard Boundaried Tiles statistics, a value of 32 was used for the nLevelLap parameter in order to force the overlap amount to zero.
In DATA TABLE 3, the Lev column indicates the level of the tile/shingle structure, 0 being the finest partitioning, 14 being the most coarse, 15 being the top-level compartment. The Size column indicates the size (both width and height) of the resulting quadrant partitioning in Latitude/Longitude degrees (=180/2.sup.(15-Lev)). The size of the Shingles is in fact 25% larger than the value given in the Size column. Note that the software program in Appendix A implements shingles as squares in Latitudinal/Longitudinal space. The Segs column accumulates the total number of TIGER street segments which naturally fit at this level (i.e., do not cross tile/shingle boundaries--returned through the pnLevel parameter of the KeyForBox function). The Shing and Tiles columns accumulate the total number of unique Key values returned by the KeyForBox function. The Av column computes the average number of segments per unique tile/shingle. The Mx column shows the maximum number of segments which were associated with any one tile/shingle.
DATA TABLE 3______________________________________A comparison of the distribution of 428367 TIGER street segmentsfor Los Angeles County, CA. into a Hard Tile decomposition of theentire Earth's Surface, vs. the equivalent Shingle structure having25% overlap at each level. The first level of tiling (level 0)is 180 degrees/2.sup.15 in each direction, or a littleless than 0.4 miles North/South. ShinglesLe Size with 25 % Overlap Hard Boundaried Tilesv (deg.) Segs. Shing Av Mx Segs. Tiles Av Mx______________________________________15 -- 0 014 90.0� 0 013 45.0� 0 012 22.5� 0 89 1 89 8911 11.3� 0 440 2 220 43910 5.63� 0 09 2.82� 0 08 1.41� 0 131 2 65 987 0.704� 0 1038 8 120 5496 0.352� 0 1366 16 85 4605 0.176� 2 2 1 1 2919 49 60 2814 0.088� 33 21 2 5 5866 157 37 1753 0.044� 380 160 2 15 11642 557 21 982 0.022� 2507 888 3 12 22415 1885 12 571 0.011� 14859 3833 4 26 41848 5781 7 410 .0055� 410586 19792 21 255 340613 18875 18 245______________________________________
The Shingles-with-25%-Overlap columns in DATA TABLE 3 shows how efficiently the tiered shingle structure organizes this set of data. Note the shallow distribution of segments into the lower levels of the structure: over 95% of the segments have settled into the lowest level of the data structure. Note how few additional levels are needed, and also the low average and maximum number of segments per shingle in those levels.
Now contrast the Shingles-with-25%-Overlap statistics with the corresponding Hard-Tile-Boundaries statistics in DATA TABLE 3. This serves as a rough model for how a Quad-Tree data structure would behave under this load of street segment data (the correspondence is not precise, however, do to the structural dependency on storage space per Quad-Tree node). Observe the overall trend which increases the fraction of segments cut by the new boundaries introduced at each finer level. Specifically, for levels 6 down through 1, Segs doubles with each step down in level. This doubling occurs because each finer level doubles the total length of the hard tile boundaries, therefore doubling the likelihood that a given segment will cross one (note that the trend fades above level 6 because the granularity of the partitioning begins to exceed the spatial extent of LA County.) Furthermore, note how there are over 10,000 segments located at level 4 and above. If these segments were stored in a quad-Tree in this state, they would substantially clutter up the main branches of the quad-tree, substantially impeding performance. For instance, if there was a one hundred fold increase in the amount of data being stored, there would be a corresponding one hundred fold increase in the number of tile boundary crossing segments (500K at level 4, 250K at level 5, 125K at level 6, etc.) completely overloading the upper level branches.
The poor statistics of Hard-Tile-Boundaries columns show why Quad-Trees cannot be used to store this type of map data in this form. Instead, strategies such as data fragmentation, duplication or multiple indirect referencing have been used in the past to get around this type of problem. DATA TABLE 4 summarizes the number of objects which must be handled in one of these special case ways for the various tile sizes. The statistics in that table clearly show the trade-off between minimizing the number of segments per tile, versus limiting the number of segments which must be managed though a special case.
______________________________________DATA TABLE 4For the same set of 428367 TIGER street segments, the accumulatednumber of segments which cross boundaries between tiles.Tile Size(degrees) Est. Segs/Tile Crossing Segs. % of Total______________________________________0.0055� 25 87754 20.50.011� 95 45906 10.70.022� 180 23491 5.50.044� 350 11849 2.80.088� 640 5983 1.40.176� 1250 3064 0.7______________________________________
4. Mathematical Analysis
The statistical trends identified in the Empirical Analysis result in very predictable logarithmic cost for spatial retrieval which can be seen through FORMULAS 7 and 8. These formulas are based on the assumption that a regular database table/index is used as the storage/retrieval mechanism for the spatial data, where the index is based on Shingle-Keys. FORMULA 7 is derived from FORMULA 4 which established the behavior of a tile-based method for storing points in a database table. The primary refinement in FORMULA 7 is that a sum must be accumulated to account for the spread of objects across multiple levels. FORMULA 11 is derived from FORMULA 5, primarily by changing the offset factor from 1 to 2 to account for the fact that the overlap will tend to increase the number of tiles touched by the query window. TABLE 13 shows the plug-in values for AL and BL for a 0.016� Longitude�0.0145� Latitude rectangular window (a roughly 1 mile square at Los Angeles, Calif.'s Latitude).
The modest size of the values which appear in TABLE 13 compared to the huge population size is the factor which allows the O(log(N)) performance behavior. For instance, if the entire set of TIGER files for all US Counties were to be used instead of only LA County, the roughly hundred fold increase in population size should only increase by two the logarithmic component of FORMULA 7 (log10 (400,000)=6.6; log10 (40,000,000)=8.6). All other components of the formula would stay roughly the same. Furthermore, if the rectangular window retrieval size should dramatically change, causing the behavior to become unbalanced, the shingle size can be adjusted up or down to compensate. The software program given in Appendix A was tuned for handling highly detailed street map data.
Note that FORMULA 7 represents a worst case which can be greatly improved in practice. Specifically, the value of AL in the portion of the formula AL �log(N) can substantially be reduced by using the Peano-Hilbert space filling curve to sequence the shingles as they are stored in the computer database, as is done in the software implementation given in Appendix A. Use of that curve guarantees that many adjacent shingles will be numbered consecutively. For instance, in any arbitrary 3�3 grouping of adjacent shingles in a field sequenced with the Peano-Hilbert curve, there can be at most 4 consecutive sequences (refer to FIGS. 8 and 17).
Expected cost of window retrieval using the shingle numbers of the invention in a database table.
O(Σ(A.sub.L �(log(N)+K�B.sub.L)))
AL =expected number of tiles needed to satisfy the query at each level,
BL =expected number of objects assigned to each tile at each level.
Expected number of shingles per retrieval by level.
A.sub.L =round.sub.-- up(W.sub.X /T.sub.XL +2)�round.sub.-- up (W.sub.Y /T.sub.YL +2)
WX =width of the rectangle,
TXL =width of shingle for level,
WY =height of the rectangle,
TYL =height of shingle for level.
TABLE 13______________________________________Computed values for A.sub.L for an arbitrary 1 square milerectangular window around Los Angeles County, CA. Measure valuesfor B.sub.L mile from TABLE 7.Level A.sub.L B.sub.L - Avg B.sub.L - Max______________________________________0 5 � 5 = 25 21 2551 4 � 4 = 16 4 262 3 � 3 = 9 3 123 3 � 3 = 9 2 154 3 � 3 = 9 2 55 3 � 3 = 9 1 1______________________________________
The present invention provides an efficient method and system for organizing large quantities of data. As discussed above, databases of information can comprise hundreds of megabytes of data, thereby being very difficult to efficiently search. However, multidimensional data that is stored with the method and system of the present invention can be retrieved with far fewer processor cycles and disk seeks than in prior systems.
By separating the larger coordinate system into sub-regions, each spatial object is assigned to a particular sub-region. These sub-regions are known as tiles because they resemble a series of tiles once superimposed over a set of spatial data. Each tile would, therefore, hold a particular set of spatial data. Thus, a user that knew which tiles held the desired information only needed to search those specific tiles. Once the computer user identifies spatial data located in a desired region of the spatial database, the system can read those few tiles from memory and begin the process of gathering objects from those tiles. This method thereby prevents the system from analyzing every object in the entire database for every computer user's request.
The present invention provides a series of overlaps between every tile in a spatial database. These overlapping tiles, termed herein "shingles", represent tiles that overlap their nearest neighbors. The area of overlap for any shingle is pre-determined to provide the maximum efficiency. The shingle overlap allows more data objects in the spatial database to be assigned to only one shingle and not split between multiple hard edged tiles, as was done in prior systems. As discussed above, dividing an object across multiple tiles is very disadvantageous because it requires the system to track every tile that is assigned to a particular object.
The system and method of the present invention alleviates the problem of small objects which cross title boundaries being moved to higher levels. In the present invention, as the layers of sub-regions are generated, they are calculated to have areas of overlap. The present invention improves the efficiency of individual databases because the shingle overlap size in each layer can be programmed to provide the fastest access to the spatial database.
A database with numerous small objects, such as streets, can be programmed with a smaller shingle size than databases that have numerous large objects, such as freeways. Tailoring the size of the tiles and shingles to the size of the average data object keeps more data objects at a single, lower level within the database architecture of the present invention. Thus, any data object that cannot fit within a single shingle can be stored in the next higher level of shingling.
APPENDIX A______________________________________0001 /*/////////////////////////////////////////////*/0002 /*0003 // Start of keygen.c0004 //0005 // Copyright (c) 1995 Brian Smartt0006 // Copyright (c) 1996 Telcontar0007 // Telcontar Proprietary0008 // All Rights Reserved0009 //0010 */00110012 /*/////////////////////////////////////////////*0013 /*0014 // Typedef defining spatial key storage class0015 //0016 */00170018 typedef unsigned long KEY;00190020 /*/////////////////////////////////////////////*/0021 /*0022 // Symbols defining conversion from Latitude/0023 // Longitude coordinates to Spatial Key Space.0024 // The granularity of the Spatial Key space0025 // is 360.0 degrees /( 2 28 ), or approximately0026 */ 1/2 foot.0027 */00280029 #define X.sub.-- CIRCLE (0x10000000L)0030 #define X.sub.-- MIN COORD (0xF8000000L)0031 #define X.sub.-- MAX COORD (0x07FFFFFFL)0032 #define X.sub.-- LONGITUDE (360.0)0033 #define LON.sub.-- TO.sub.-- X(lon) ((long)((double)(lon) \0034 *X.sub.-- CIRCLE/X.sub.-- LONGI- TUDE))00350036 #define Y.sub.-- HALF.sub.-- CIRCLE (0x08000000L)0037 #define Y.sub.-- MIN.sub.-- COORD (0xFC000000L)0038 #define Y.sub.-- MAX.sub.-- COORD (0x03FFFFFFL)0039 #define Y.sub.-- LATITUDE (180.0)0040 #define LAT.sub.-- TO.sub.-- Y(lat) ((long)((double)(lat) \0041 *Y.sub.-- HALF.sub.-- CIRCLE/ Y.sub.-- LATITUDE))00420043 /*/////////////////////////////////////////////*/0044 /*0045 // Seed values of Peano-Hilbert Space Filling0046 // Curve Function.0047 */00480049 #define X.sub.-- DIVIDE (0x00000000L)0050 #define X.sub.-- MIDDLE (0x04000000L)0051 #define Y.sub.-- MIDDLE (0x00000000L)0052 #define Z.sub.-- EXTENT (0x02000000L)0053 #define Z.sub.-- ITERATE (15)00540055 #define Z.sub.-- PRIMARY.sub.-- BITS (0xFFFFF000L)0056 #define Z.sub.-- BOTTOM.sub.-- BIT (0x0000l000L)00570058 /*/////////////////////////////////////////////*/0059 /*0060 // Special key value for the oversize "catch-0061 // all" shingle.0062 //0063 */00640065 #define K.sub.-- OVERSIZE (0xFFFFFFFCL)0066 #define K.sub.-- MIN.sub.-- EXCEPTION (0xFFFFFFFCL)0067 #define K.sub.-- MAX.sub.-- EXCEPTION (0xFFFFFFFCL)00680069 /*/////////////////////////////////////////////*0070 /*0071 // Symbols for nLevelMask parameter to KeyForBox0072 // and KeyRectCreate functions. The parameter0073 // is used to control which levels appear in0074 // the structure.0075 //0076 // The .sub.-- ALL symbol shows bits turned on for all0077 // levels in the structure, from the FINEST0078 // to the MOST.sub.-- COARSE, including the EXCEPTION0079 // (ovesized "catch-all") level. The0080 // .sub.-- MOST.sub.-- COARSE level has a base granularity0081 // of latitude/longitude "square" tiles which0082 // are 90.0 degrees high and wide. The .sub.-- FINEST0083 // level has a base granularity of 90.0/2 140084 // degrees, which is roughly 0.0055 degrees, or0085 // a little less than 0.4 mile in the latitude0086 // direction. The corresponding distance in the0087 // longitude direction depends on distance from0088 // the equator (multiply by cos(latitude)).0089 //0090 // The.sub.-- ONLY.sub.-- symbols show how to specify0091 // shingle structures which include only0092 // a specific set of base granularities. Masks0093 // of these types may be useful when all or0094 // nearly all of the data has a predictable0095 // range of sizes. Each of these masks specifies0096 // five continuous levels, in addition to the0097 // .sub.-- EXCEPTION level. Objects which are too big for0098 // the most coarse level of the five are assigned0099 // to K.sub.-- OVERSIZE. Object which are smaller than0100 // the finest of the five are assigned to the0101 // appropriate shingle in the finest level.0102 //0103 // The .sub.-- STEP symbol shows how to specify a0104 // shingle structure which skips every other0105 // level. Thus, the fan out between levels is0106 // sixteen rather than four.0107 */01080109 #define LEVEL.sub.-- MASK(level) (0x1<<(level))01100111 #define LEVEL.sub.-- MASK.sub.-- ALL (0xFFFF)01120113 #define LEVEL.sub.-- MASK.sub.-- FINEST (0x0001)0114 #define LEVEL.sub.-- MASK.sub.-- MOST.sub.-- COARSE (0x4000)0115 #define LEVEL.sub.-- MASK.sub.-- EXCEPTION (0x8000)01160117 #define LEVEL.sub.-- MASK.sub.-- ONLY.sub.-- FINE (0x801F)0118 #define LEVEL.sub.-- MASK.sub.-- ONLY.sub.-- MEDIUM (0x83EO)0119 #define LEVEL.sub.-- MASK.sub.-- ONLY.sub.-- COARSE (0xFC00)01200121 #define LEVEL.sub.-- MASK.sub.-- STEP (0xD555)01220123 /*/////////////////////////////////0124 /*0125 // Symbols for nLevelLap parameter to KeyForBox0126 // and KeyRectCreate functions. The parameter0127 // is used to control the amount of overlap0128 // between adjacent shingles in the structure.0129 // The amount of overlap is as a fraction of0130 // the base granularity specified by:0131 //0132 // 1/(2 nLevelLap)0133 */01340135 #define LEVEL.sub.-- LAP.sub.-- WHOLE (O)0136 #define LEVEL.sub.-- LAP.sub.-- HALF (1)0137 #define LEVEL.sub.-- LAP.sub.-- QUARTER (2)0138 #define LEVEL.sub.-- LAP.sub.-- EIGHTH (3)0139 #define LEVEL.sub.-- LAP.sub.-- SIXTEENTH (4)0140 #define LEVEL.sub.-- LAP.sub.-- NONE (32)01410142 /*/////////////////////////////////////////////*/0143 /*0144 // The following tables are used to generate a0145 // Peano-Hilbert sequence number for a point0146 // along the curve. Each level in the structure0147 // has its own curve, though each finer curve is0148 // derived from the previous coarser curve.0149 //0150 // The values in the tables are based on the0151 // curve building conventions illustrated by0152 // the following crude pictographs. Other0153 // curve configurations (rotated, flipped) are0154 // also possible.0155 //0156 // Quadrant Numbering Convention:0157 //0158 159 160// // // 1 #STR1##0161 //0162 // Peano-Hilbert Curve Evolution Steps:0163 //0164 0165 0166 0167 0168 0169 0170// // // // // // // 2 #STR2##0171 //0172 //0173 0174 0175 0176 0177 0178 0179// // // // // // // 3 #STR3##0180 //0181 //0182 0183 0184 0185 0186 0187 0188// // // // // // // 4 #STR4##0189 //0190 //0191 0192 0193 0194 0195 0196 0197// // // // // // // 5 #STR5##0198 //0199 // Peano-Hilbert Curve Evolution Sequence:0200 //0201 0202 0203 0204 0205 0206 0207 0208 0209// // // // // // // // // // 6 #STR6##0210 //0211 0212 0213 0214 0215 0216 0217 0218 0219 0220 0221 0222// // // // // // // // // // // // // 7 #STR7##0224 //0225 0226 0227 0228 0229 0230 0231 0232 0233 0234 0235 0236 0237 02380239 // // // // // // // // // // // // // // // 8 #STR8##0240 //0241 // 11: ...0242 */02430244 /*/////////////////////////////////////////////*/0245 /*0246 // Symbols defining which way the curve faces0247 */02480249 #define DOWN (0)0250 #define LEFT (1)0251 #define RIGHT (2)0252 #define UP (3)02530254 /*/////////////////////////////////////////////*0255 /*0256 // Given which quadrant and the current curve0257 // facing, what is the peano-hilbert partial0258 // ordering:0259 */02600261 static const int iKeys 4! 4!=0262 {0263 /* QUAD 0, 1, 2, 3, */0264 /* DOWN */ 2, 1, 3, 0,0265 /* LEFT */ 2, 3, 1, 0,0266 /* RIGHT */ 0, 1, 3, 2,0267 /* UP */ 0, 3, 1, 20268 };02690270 /*/////////////////////////////////////////////*/0271 /*0272 // Given which quadrant and the current curve0273 // facing, which i3 the next curve facing:0274 */02750276 static const int iCurves 4! 4!=02770278 // QUAD 0, 1, 2, 3, */0279 /* DOWN */ DOWN, DOWN, RIGHT, LEFT,0280 /* LEFT */ LEFT, UP, LEFT, DOWN,0281 /* RIGHT */ UP, RIGHT, DOWN, RIGHT,0282 /* UP */ RIGHT, LEFT, UP, UP0283 };02840285 /*/////////////////////////////////////////////*0286 /*0287 // Symbols defining the local shape of the curve:0288 */02890290 #define CSAME (0)0291 #define CDOWN (1)0292 #define CLEFT (2)0293 #define CRIGHT (3)0294 #define CUP (4)02950296 /*/////////////////////////////////////////////*/0297 /*0298 // Given which quadrant and the current curve0299 // facing, in which direction is the previous0300 // point on the curve:0301 */03020303 static const int iPrev 4! 4!=0304 {0305 // QUAD 0, 1, 2, 3, */0306 /* DOWN */ CLEFT, CDOWN, CUP, CSAME,0307 /* LEFT */ CDOWN, CRIGHT, CLEFT, CSAME,0308 /* RIGHT */ CSAME, CRIGHT, CLEFT, CUP,0309 /* UP */ CSAME, CDOWN, CUP, CRIGHT0310 };03110312 /*/////////////////////////////////////////////*/0313 /*0314 // Given which quadrant and the current curve0315 // facing, in which direction is the next0316 // point on the curve:0317 */03180319 static const int iNext 4! 4!=0320 {0321 /* QUAD 0, 1, 2, 3, */0322 /* DOWN */ CDOWN, CRIGHT, CSAME, CUP,0323 /* LEFT */ CLEFT, CSAME, CUP, CRIGHT,0324 /* RIGHT */ CLEFT, CDOWN, CSAME, CRIGHT,0325 /* UP */ CDOWN, CSAME, CLEFT, CUP0326 };03270328 /*///////////////////////////////////0329 /*0330 // Markers used to differentiate keys from0331 // different levels of the structure;0332 */03330334 static const KEY lMarks Z.sub.-- ITERATE!=0335 {0336 0,0337 0x80000000,0338 0xC0000000,0339 0xE0000000,0340 0xF0000000,0341 0xF8000000,0342 0xFC000000,0343 0xFE000000,0344 0xFF000000,0345 0xFF800000,0346 0xFFC00000,0347 0xFFE00000,0348 0xFFF00000,0349 0xFFF80000,0350 0xFFFC00000351 {;03520353 /*////////////////////////////////////////////////*/0354 /*0355 // This function generates the sequence number0356 // (key) for the given point along the Peano-0357 // Hilbert curve. The nLevel argument is used to0358 // control the coarseness of the partitioning,0359 // 0 == finest, 4 == most coarse.0360 //0361 // Note that as implemented, the curve fills0362 // twice as much space along the X axis as along0363 // the Y axis to mirror the equivalent imbalance0364 // in the latitude/longitude coordinate system.0365 // This is done by stringing together two0366 // curves: one filling all the space where0367 // X < 0, the other filling all space where0368 // X > 0. This behavior is controlled by the0369 // X.sub.-- DIVIDE symbol.0370 //0371 // This function uses coordinates already0372 // converted into Spatial Key Space.0373 //0374 */03750376 static KEY KeyGenerator0377 (0378 long lX,0379 long lY,0380 int nLevel,0381 int *pnPrev,0382 int *pnNext0383 )0384 {0385 long lKey = 0;0386 long lMiddleX = X.sub.-- MIDDLE;0387 long lMiddleY = Y.sub.-- MIDDLE;0388 long lExtentZ = Z.sub.-- EXTENT;0389 int nCurve = DOWN, nQuad;0390 int nIter, nTotalIter=Z.sub.-- ITERATE-nLevel;03910392 *pnPrev =CLEFT;0393 *pnNext =CRIGHT;03940395 #ifdef X.sub.-- DIVIDE0396 if( lX < X.sub.-- DIVIDE )0397 {0398 lMiddleX =-X.sub.-- MIDDLE;0399 }0400 else0401 {0402 lKey = 1;0403 }0404 #endif04050406 for( nIter = 0; nIter < nTotalIter; ++nIter )04070408 /*/////////////////0409 /*0410 // determine quadrant relative0411 // to (lMiddleX, lMiddleY)0412 */04130414 if( lX < lMiddleX )0415 {0416 nQuad = 1;0417 lMiddleX -= lExtentZ;0418 }0419 else0420 {0421 nQuad = 0;0422 lMiddleX += lExtentZ;0423 }04240425 if( lY < lMiddleY )0426 {0427 nQuad += 2;0428 lMiddleY -= lExtentZ;0429 }0430 else0431 {0432 // nQuad += 0;0433 lMiddleY += lExtentZ;0434 }04350436 /*////////////////////////////*/0437 /*0438 // Fold in the next partial key0439 */04400441 lKey = (lKey << 2) .linevert split. iKeys nCurve! nQuad!;04420443 /*////////////////////////////*/0444 /*0445 // Maintain prev/next point0446 // positions0447 */04480449 if( iPrev nCurve ! nQuad ! )0450 {0451 *pnPrev =iPrev nCurve ! nQuad !;0452 }04530454 if( iNext nCurve ! nQuad ! )0455 {0456 *pnNext =iNext nCurve ! nQuad !;0457 }04580459 /*////////////////////////////*/0460 /*0461 // Evolve to next0462 */04630464 nCurve =iCurves nCurve ! nQuad !;04650466 /*////////////////////////////*/0467 /*0468 // Divide by two to get next0469 // get next quadrant size0470 */04710472 lExtentZ >>= 1;04730474 }0475 /*////////////////////////////*/0476 /*0477 // Fold in marker to0478 // differentiate keys from0479 // different levels:0480 */04810482 lKey .linevert split.= lMarks nLevel!;04830484 return lKey;0485 }04860487 /*////////////////////////////////////////////////*/0488 /*0489 // Generate the key for the smallest shingle0490 // containing the given box (dX1,dY1)-(dX2,dY2)0491 // in the shingle structure defined by nLevelLap0492 // and nLevelMask. Returns the shingle key as the0493 // function return value, and returns the level in0494 // the structure through the pointer pnLevel.0495 //0496 // The box is given in the latitude (Y) and0497 // longitude (X) coordinate system. dX1 and dX20498 // are expected to be in the range -180.0 to 180.0,0499 // and dY1 and dY2 are expected to be in the range0500 // -90.0 to 90.0.0501 //0502 // The shingle structure is defined by nLevelMask0503 // and nLevelLap parameters. See discussions of0504 // LEVEL.sub.-- MASK.sub.-- ??? and LEVEL.sub.-- LAP.sub.-- ???symbols.0505 */05060507 KEY KeyForBox0508 (0509 double dX1,0510 double dY1,0511 double dX2,0512 double dY2,0513 int nLevelMask,0514 int nLevelLap,0515 int *pnLevel0516 )0517 {0518 long lX1, lY1, lX2, lY2;0519 long lMinMBRX, lMinMBRY, lMaxMBRX, lMaxMBRY;0520 long lMinShingleX, lMinShingleY;0521 long lMaxShingleX, lMaxShingleY;0522 long lPrimary, lBottom, lLap;0523 int nLevelBit;0524 int nLevel;0525 int nPrev, nNext;05260527 /*//////////////////////////////0528 // Convert box to key space0529 */05300531 lX1 =LON.sub.-- TO.sub.-- X(dX1);0532 lY1 =LAT.sub.-- TO.sub.-- Y(dY1);0533 lX2 =LON.sub.-- TO.sub.-- X(dX2);0534 lY2 =LAT.sub.-- TO.sub.-- Y(dY2);05350536 /*//////////////////////////////0537 // Find min and max of box0538 */05390540 if( lX1 < lX2 )0541 {0542 lMinMBRX = lX1;0543 lMaxMBRX = lX2;0544 }0545 else0546 {0547 lMinMBRX = lX2;0548 lMaxMBRX = lX1;0549 }05500551 if( lY1 < lY2 )0552 {0553 lMinMBRY =lY1;0554 lMaxMBRY =lY2;0555 }0556 else0557 {0558 lMinMBRY =lY2;0559 lMaxMBRY =lY1;0560 }05610562 /*//////////////////////////////0563 // Starting at the finest0564 // partitioning, iterate up until0565 // we find a shingle which0566 // contains the box0567 */05680569 lPrimary = Z.sub.-- PRIMARY.sub.-- BITS;0570 lBottom = Z BOTTOM.sub.-- BIT;0571 lLap = lBottom >> nLevelLap;0572 nLevelBit = 1;05730574 for( nLevel= 0; nLevel < Z.sub.-- ITERATE; ++nLevel )0575 {0576 /*//////////////////////////////0577 // Check the level.sub.-- MASK.sub.-- to see0578 // if this level is included in0579 // the structure.0580 */05810582 if( nLevelBit & nLevelMask )0583 {0584 /*//////////////////////////////0585 // Compute the shingle base of0586 // the lower right corner of the0587 // box0588 */05890590 lMinShingleX = lMinMBRX & lPrimary;0591 lMinShingleY = lMinMBRY & lPrimary;05920593 /*//////////////////////////////0594 // Compute the upper right0595 // corner of the shingle0596 */05970598 lMaxShingleX = lMinShingleX + lBottom0599 + lLap;0600 lMaxShingleY = lMinShingleY ++lBottom0601 + lLap;06020603 /*//////////////////////////////0604 // Check if the upper left0605 // corner of the box fits on0606 // the shingle0607 */06080609 if(( lMaxMBRX < lMaxShingleX )0610 &&( lMaxMBRY > lMaxShingleY ))0611 {0612 /*/////////////////////////////0613 // Found a shingle that0614 // contains the box|0615 //0616 // Compute and return the0617 // shingle number in the0618 // Peano-Hilbert sequence0619 // for this level0620 */06210622 *pnLevel = nLevel;0623 return KeyGenerator( lMinShingleX,0624 lMinShingleY, nLevel,0625 &nPrev, &nNext );0626 }0627 }06280629 /*/////////////////////////////0630 // Containing shingle does not0631 // exist at this level|0632 //0633 // Advance shingle constructors0634 // to next higher level.0635 */06360637 lPrimary <<= 1;0638 lBottom <<= 1;0639 lLap <<= 1;0640 nLevelBit <<= 1;0641 }06420643 /*/////////////////////////////0644 // Containing shingle does not0645 // exist within any level|0646 //0647 // Return oversize "catch-all"0648 // key value.0649 */06500651 *pnLevel = Z.sub.-- ITERATE;0652 return K.sub.-- OVERSIZE;0653 }06540655 /*////////////////////////////////////////////////*/0656 /*0657 // Rectangular retrieval key generator structure.0658 */06590660 #define N.sub.-- RANGES (100)06610662 typedef struct0663 {0664 /* retrieval rectangle */0665 long lMinRectX, lMinRectY;0666 long lMaxRectX, lMaxRectY;06670668 /* shingle structure description */0669 int nLevelMask;0670 int nLevelLap;06710672 /* progress through structure */0673 int nLevel;0674 int nLevelBit;06750676 /* list of key ranges for current level */0677 int nRangeCount;0678 int nRangeIndex;06790680 KEY MinKey N.sub.-- RANGES!;0681 KEY MaxKey N.sub.-- RANGES!;0682 }0683 KeyRect;06840685 /*////////////////////////////////////////////////*/0686 /*0687 // Create a KeyRect generator structure for the0688 // specified rectangle (dX1,dY1) - (dX2,dY2), using0689 // the shingle structure defined by nLevelMask and0690 // nLevelLap.0691 //0692 // The rectangle is given in the latitude (Y) and0693 // longitude (X) coordinate system. dXl and dX20694 // are expected to be in the range -180.0 to 180.0,0695 // and dY1 and dY2 are expected to be in the range0696 // -90.0 to 90.0.0697 //0698 // The shingle structure is defined by nLevelMask0699 // and nLevelLap parameters. See discussions of0700 // LEVEL.sub.-- MASK.sub.-- ??? and LEVEL.sub.-- LAP.sub.-- ???symbols.0701 */07020703 KeyRect *KeyRectCreate0704 (0705 double dX1,0706 double dYl,0707 double dX2,0708 double dY2,0709 int nLevelMask,0710 int nLevelLap0711 )0712 {0713 KeyRect *kr;0714 extern void *AllocateMemory( int size );0715 long lX1, lY1, lX2, lY2;07160717 /*//////////////////////////////0718 // allocate memory to maintain0719 // retrieval state0720 */07210722 if(kr=(KeyRect*)AllocateMemory(sizeof(KeyRect)))0723 }0724 /*//////////////////////////////0725 // Convert search rectangle to0726 // key space0727 */07280729 lX1 = LON.sub.-- TO.sub.-- X(dX1);0730 lY1 = LAT.sub.-- TO.sub.-- Y(dY1);0731 lX2 = LON.sub.-- TO.sub.-- X(dX2);0732 lY2 = LAT.sub.-- TO.sub.-- Y(dY2);07330734 /*//////////////////////////////0735 // Find min and max of rectangle0736 */07370738 if( lX1 < lX2 )0739 {0740 kr->lMinRectX = lX1;0741 kr->lMaxRectX = lX2;0742 }0743 else0744 {0745 kr->lMinRectX = lX2;0746 kr->lMaxRectX = lX1;0747 }07480749 if( lY1 > lY2 )0750 {0751 kr->lMinRectY = lY1;0752 kr->lMaxRectY = lY2;0753 }0754 else0755 {0756 kr->lMinRectY = lY2;0757 kr->lMaxRectY = lY1;0758 }07590760 /*//////////////////////////////0761 // Initialize retrieval state,0762 // bottom level, no more keys0763 */07640765 kr->nLevelMask = nLevelMask;0766 kr->nLevelLap = nLevelLap;07670768 kr->nLevel = 0;0769 kr->nLevelBit = 1;07700771 kr->nRangeCount = 0;0772 kr->nRangeIndex = 0;0773 }07740775 return kr;0776 }07770778 /*////////////////////////////////////////////////*/0779 /*0780 // Function which generates all keys for current0781 // level in the structure. Because the size of the0782 // rangelist has a hard limit(N.sub.-- RANGES), a fallback0783 // strategy may needed to reduce the number of0784 // ranges. This strategy is implemented by the0785 // "goto TRY.sub.-- AGAIN"!and "nTries" mechanism, which0786 // doubles the sampling granularity with each0787 // extra try, forcing down (on average, dividing by0788 // two for each new try) the number of ranges0789 // required to search, at the cost of oversampling.0790 */07910792 static int KeyRectGenerator0793 (0794 KeyRect *kr0795 )0796 {0797 long lPrimaryBits, lBottomBit, lLap;0798 long lMinX, lMinY, lMaxX, lMaxY;0799 long lSideX, lSideY;0800 int nTries, nCount, i;0801 int nRangeMin, nRangeMax;0802 int nPrev, nNext;0803 KEY Key;08040805 /*//////////////////////////////0806 // initialize level granularity0807 // and tries counter0808 */08090810 lPrimaryBits = Z.sub.-- PRIMARY.sub.-- BITS << kr->nLevel;0811 lBottomBit = Z.sub.-- BOTTOM.sub.-- BIT << kr->nLevel;0812 lLap = lBottomBit >> kr->nLevelLap;0813 nTries = 0;08140815 /*//////////////////////////////0816 // Granularize the rectangle,0817 // guarding against coordinate0818 // over/under flow.0819 */08200821 lMinX = ( kr->lMinRectX - lLap ) & lPrimaryBits;0822 if( lMinX = X.sub.-- MIN.sub.-- COORD )0823 {0824 lMinX = X MIN COORD & lPrimaryBits;0825 }08260827 lMinY = ( kr->lMinRectY - lLap ) & lPrimaryBits;0828 if( lMinY > Y.sub.-- MIN.sub.-- COORD )0829 {0830 lMinY = Y.sub.-- MIN.sub.-- COORD & lPrimaryBits;0831 }08320833 lMaxX = kr->lMaxRectX & lPrimaryBits;0834 if( lMaxX > X.sub.-- MAX.sub.-- COORD )0835 {0836 lMaxX = X.sub.-- MAX.sub.-- COORD & lPrimaryBits;0837 }08380839 lMaxY = kr->lMaxRectY & lPrimaryBits;0840 if( lMaxY > Y.sub.-- MAX.sub.-- COORD )0841 {0842 lMaxY = Y.sub.-- MAX.sub.-- COORD & lPrimaryBits;0843 }08440845 TRY.sub.-- AGAIN:0846 /*//////////////////////////////0847 // Compute all keys along left0848 // and right sides of rectangle0849 */08500851 nRangeMin = 0;0852 nRangeMax = 0;08530854 if( ++nTries > 1 )0855 {0856 /*/////////////////////0857 // If ran out of space in the0858 // min/max list, increase sample0859 // granularity to reduce the0860 // number of transitions.0861 */08620863 lMinX <<= 1;0864 lMinY <<= 1;0865 lMaxX = ( lMaxX << lBottomBit;0866 lMaxY = ( lMaxY << lBottomBit;0867 }08680869 /*//////////////////////////////0870 // Compute all keys along left0871 // and right sides of rectangle.0872 //0873 // Find the keys where the curve0874 // moves in(nPrev) or out(nNext)0875 // of the rectangle.0876 */08770878 for( lSideY = lMinY;0879 lSideY <= lMaxY;0880 lSideY += lBottomBit )0881 {0882 /*//////////////////////////////0883 // Each key along the left0884 */08850886 Key = KeyGenerator( lMinX, lSideY,0887 kr->nLevel, &nPrev, &nNext );08880889 if( nPrev == CLEFT )0890 {0891 if(nRangeMin >= N.sub.-- RANGES)goto TRY.sub.-- AGAIN;08920893 kr->MinKey nRangeMin++! = Key;0894 }08950896 if( nNext == CLEFT )0897 {0898 if(nRangeMax >= N RANGES)goto TRY.sub.-- AGAIN;0899O900 kr->MaxKey nRangeMax++! = Key;0901 }09020903 /*//////////////////////////////0904 // Each key along the right0905 */09060907 Key = KeyGenerator( lMaxX, lSideY,0908 kr->nLevel, &nPrev, &nNext );09090910 if( nPrev == CRIGHT )0911 {0912 if(nRangeMin >= N.sub.-- RANGES)goto TRY.sub.-- AGAIN;09130914 kr->MinKey nRangeMin++! = Key;0915 }09160917 if( nNext == CRIGHT )0918 {0919 if(nRangeMax >= N.sub.-- RANGES)goto TRY.sub.-- AGAIN;09200921 kr->MaxKey nRangeMax++! = Key;0922 }0923 }09240925 /*//////////////////////////////0926 // Compute all keys along top0927 // and bottom sides of rectangle0928 //0929 // Find the keys where the curve0930 // moves in(nPrev) or out(nNext)0931 // of the rectangle.0932 */09330934 for( lSideX = lMinX;0935 lSideX <= lMaxX;0936 lSideX += lBottomBit )0937 {0938 /*//////////////////////////////0939 // Each key along the bottom0940 */09410942 Key = KeyGenerator( lSideX, lMinY,0943 kr->nLevel, &nPrev, &nNext );09440945 if( nPrev == CDOWN )0946 {0947 if(nRangeMin >= N.sub.-- RANGES)goto TRY.sub.-- AGAIN;09480949 kr->MinKey nRangeMin++! = Key;0950 }09510952 if( nNext == CDOWN )0953 {0954 if(nRangeMax >= N.sub.-- RANGES)goto TRY.sub.-- AGAIN;09550956 kr->MaxKey nRangeMax++! = Key;0957 }09580959 /*//////////////////////////////0960 // Each key along the top0961 */09620963 Key = KeyGenerator( lSideX, lMaxY,0964 kr->nlevel, &nPrev, &nNext );09650966 if( nPrev == CUP )0967 {0968 if(nRangeMin >= N.sub.-- RANGES)goto TRY.sub.-- AGAIN;09690970 kr->MinKey nRangeMin++! = Key;0971 }09720973 if( nNext == CUP )0974 {0975 if(nRangeMax >= N.sub.-- RANGES)goto TRY.sub.-- AGAIN;09760977 kr->MaxKey nRangeMax++! = Key;0978 }0979 }09800981 /*///////////////////////////0982 // Sort Min and Max Keys. Note0983 // that nRangeMin == nRangeMax0984 // by implication (since curve0985 // is continuous).0986 */09870988 do0989 {0990 nCount = 0;09910992 for( i= 1; i<nRangeMin; ++i )0993 }0994 if( kr->MinKey i-1! = kr->MinKey i! )09950996 Key = kr->MinKey i-1!;0997 kr->MinKey i-1! = kr->MinKey i!;0998 kr->MinKey i! = Key;0999 ++nCount;1000 }10011002 if( kr->MaxKey i-1! > kr->MaxKey i! )1003 {1004 Key = kr->MaxKey i-1!;1005 kr->MaxKey i-1! = kr->MaxKey i!;1006 kr->MaxKey i! = Key;1007 ++nCount;1008 }1009 }1010 }1011 while( nCount );10121013 /*//////////////////////////////1014 // Initialize list traversal.1015 // return true if list not empty.1016 */10171018 kr->nRangeIndex = 0;1019 return( kr->nRangeCount = nRangeMin );1020 }10211022 /*////////////////////////////////////////////////*/1023 /*1024 // Function to fetch the next key range for the1025 // search rectangle. Returns TRUE if the key range1026 // was returned. Returns FALSE if all keys are1027 // exhausted.1028 */10291030 int KeyRectRange1031 (1032 KeyRect *kr,1033 KEY *pMinKey,1034 KEY *pMaxKey1035 )1036 {1037 /*//////////////////////////////1038 // if out of keys for previous1039 // level (or this is the first)1040 */10411042 if( kr->nRangeIndex >= kr->nRangeCount )1043 {1044 /*//////////////////////////////1045 // ratchet up through each level,1046 // skipping any which are not1047 // marked in the mask.1048 //1049 // note that ratchet always stops1050 // with nLevel pointing to the1051 // next level.1052 */10531054 int ratchet;10551056 for( ratchet= 1;1057 ratchet;1058 ++(kr->nLevel), kr->nLevelBit <<= 1 )1059 {1060 if( kr->nLevel > Z.sub.-- ITERATE )1061 {1062 if( kr->nLevelBit & kr->nLevelMask )1063 {1064 /*//////////////////////////////1065 // generate keys for this level1066 */10671068 if( KeyRectGenerator( kr ))1069 {1070 ratchet = 0;1071 }1072 }1073 }10741075 else if( kr->nLevel == Z.sub.-- ITERATE )1076 {1077 if( kr->nLevelBit & kr->nLevelMask )1078 {1079 /*//////////////////////////////1080 // All done? set up return of1081 // over6ize "catch-all" key.1082 */10831084 kr->MinKey 0! = K.sub.-- MIN.sub.-- EXCEPTION;1085 kr->MaxKey 0! = K.sub.-- MAX.sub.-- EXCEPTION;1086 kr->nRangeIndex = 0;1087 kr->nRangeCount = 1;1088 ratchet = 0;1089 }1090 }10911092 else1093 {1094 /*//////////////////////////////1095 // Return FALSE to indicate all1096 // keys are exhausted.1097 */1098l099 return 0;1100 }1101 }1102 }11031104 /*//////////////////////////////1105 // Copy next range from list.1106 */11071108 *pMinKey = kr->MinKey kr->nRangeIndex!;1109 *pMaxKey = kr->MaxKey kr->nRangeIndex!;1110 ++(kr->nRangeIndex);11111112 /*//////////////////////////////1113 // Return TRUE to indicate1114 // continue searching.1115 */11161117 return 1;1118 }11191120 /*////////////////////////////////////////////////*/1121 /*1122 // Destroy KeyRect generator structure.1123 */11241125 void KeyRectDestroy( KeyRect *kr )1126 {1127 extern void FreeMemory( void *mem );11281129 FreeMemory( (void*)kr );1130 }11311132 /*1133 // End of keygen.c1134 */1135 /*////////////////////////////////////////////////*/______________________________________
|Cited Patent
|Filing date
|Publication date
|May 6, 1991
|Oct 4, 1994
|Apple Computer, Inc.
|Method apparatus for transitioning between sequences of images
|Feb 21, 1992
|Oct 25, 1994
|Apple Computer, Inc.
|Method and apparatus for transitioning between sequences of digital information
|Mar 29, 1993
|Aug 20, 1996
|Xerox Corporation
|Editing text in an image
|May 16, 1994
|Oct 15, 1996
|Trout; Ray C.
|Complementary concurrent cooperative multi-processing multi-tasking processing system using shared memories with a minimum of four complementary processors
|Jun 7, 1995
|Oct 22, 1996
|Hitachi America, Ltd.
|Method and apparatus for improved video display of progressively refreshed coded video
|Citing Patent
|Filing date
|Publication date
|Jan 22, 1999
|Jan 16, 2001
|Ori Software Development, Ltd.
|Layered index with a basic unbalanced partitioned index that allows a balanced structure of blocks
|Jul 22, 1999
|Mar 27, 2001
|Ori Software Development Ltd.
|Method for organizing directories
|Jun 30, 1998
|Apr 24, 2001
|Oracle Corporation
|Dynamic data organization
|Mar 24, 1998
|May 29, 2001
|Ori Software Development Ltd.
|Database apparatus
|Feb 8, 1999
|Nov 27, 2001
|Silicon Graphics, Inc.
|System and method for rendering an image
|Mar 7, 2000
|Nov 27, 2001
|Navigation Technologies Corporation
|Method and system for representing restricted driving maneuvers
|May 11, 1999
|Mar 5, 2002
|Lucent Technologies Inc
|Selectivity estimation in spatial databases
|Apr 14, 1998
|Apr 9, 2002
|Fuji Xerox Co., Ltd.
|Method and apparatus for displaying references to a user's document browsing history within the context of a new document
|Sep 29, 1999
|Apr 16, 2002
|Lockheed Martin Corporation
|Natural-language information processor with association searches limited within blocks
|Jan 22, 1999
|May 14, 2002
|Interlego Ag
|Virtual reality modelling
|Jul 15, 1999
|Jun 4, 2002
|American Management Systems, Inc.
|System for database creation, maintenance and access using event marking and two-dimensional partitioning
|May 10, 2000
|Oct 8, 2002
|Autodesk, Inc.
|Spatial index compression through spatial subdivision encoding
|Sep 25, 2000
|Feb 4, 2003
|American Calcar, Inc.
|Personal communication and positioning system
|Oct 21, 1999
|Feb 25, 2003
|American Calcar, Inc.
|Positional camera and GPS data interchange device
|Sep 25, 2000
|Mar 4, 2003
|American Calcar, Inc.
|Personal communication system for communicating voice data positioning information
|Jul 28, 2000
|Jul 8, 2003
|Navigation Technologies Corporation
|Method for organizing map data
|Dec 30, 1999
|Jan 6, 2004
|Ori Software Development Ltd.
|Database apparatus
|Dec 24, 1998
|Apr 13, 2004
|Sony Corporation
|Techniques for spatial representation of data and browsing based on similarity
|Mar 26, 2001
|May 4, 2004
|Ncr Corporation
|Spatial join method and apparatus
|Sep 3, 1998
|May 4, 2004
|Geojet Information Solutions Inc.
|System and method for processing and display of geographical data
|May 30, 2003
|Jun 15, 2004
|Navigation Technologies Corp.
|Method for organizing map data
|Nov 16, 1999
|Aug 3, 2004
|Cycore Ab
|Data administration method
|Nov 26, 2002
|Aug 24, 2004
|Navteq North America, Llc
|Method for organizing map data
|Feb 27, 2003
|Mar 15, 2005
|American Calcar, Inc.
|Personal communication system for communicating voice data positioning information
|Dec 19, 2001
|Mar 29, 2005
|Visteon Software Technologies
|Method and system of vectorial cartography
|Jun 29, 2001
|Apr 12, 2005
|Oracle International Corporation
|Nearest neighbor query processing in a linear quadtree spatial index
|Oct 30, 2001
|Jul 19, 2005
|Hewlett-Packard Development Company, L.P.
|Apparatus and method for distributing representative images in partitioned areas of a three-dimensional graphical environment
|Oct 30, 2001
|Jan 10, 2006
|Hewlett-Packard Development Company, L.P.
|Layout design apparatus and method for three-dimensional graphical environments
|Jul 27, 2004
|Jun 6, 2006
|Navteq North America, Llc
|Method for organizing map data
|Aug 17, 2005
|Jun 13, 2006
|Navteq North America, Llc
|Method for organizing map data
|Jun 22, 2001
|Jul 18, 2006
|Oracle International Corporation
|Query pruning using interior rectangles in an R-tree index
|Apr 29, 2003
|Aug 29, 2006
|Navteq North America, Llc
|Method and system for forming, updating, and using a geographic database
|May 10, 2002
|Nov 28, 2006
|International Business Machines Corporation
|Systems, methods, and computer program products to reduce computer processing in grid cell size determination for indexing of multidimensional databases
|May 1, 2002
|Dec 19, 2006
|Sun Microsystems, Inc.
|Shape-based geometric database and methods and systems for construction and use thereof
|May 7, 2002
|Jan 23, 2007
|Jonathan Keir Lawder
|Method of storing and retrieving multi-dimensional data using the hilbert curve
|Mar 27, 2003
|Feb 20, 2007
|Oracle International Corporation
|Delayed distance computations for nearest-neighbor queries in an R-tree index
|Mar 27, 2003
|Feb 27, 2007
|Oracle International Corporation
|Query pruning using interior circles for geodetic data in an R-tree index
|May 10, 2004
|May 15, 2007
|Oracle International Corporation
|Query prunning using exterior tiles in an R-tree index
|Mar 5, 2003
|Oct 23, 2007
|Ori Software Development, Ltd.
|Efficient traversals over hierarchical data and indexing semistructured data
|Oct 21, 2005
|Dec 4, 2007
|Microsoft Corporation
|System and process for identifying objects and/or points nearby a given object or point
|Apr 11, 2001
|Mar 11, 2008
|American Calcar Inc.
|GPS publication application server
|May 10, 2002
|May 13, 2008
|International Business Machines Corporation
|Reducing index size for multi-level grid indexes
|May 5, 2005
|May 27, 2008
|Oracle International Corporation
|Pruning of spatial queries on geodetic data when query window has holes
|Oct 20, 2005
|May 27, 2008
|International Business Machines Corporation
|Reducing index size for multi-level grid indexes
|May 10, 2002
|Jun 3, 2008
|International Business Machines Corporation
|Methods to improve indexing of multidimensional databases
|Dec 7, 2004
|Jun 17, 2008
|International Business Machines Corporation
|Method for determining an optimal grid index specification for multidimensional data
|Oct 20, 2005
|Oct 14, 2008
|International Business Machines Corporation
|Systems, methods, and computer program products to reduce computer processing in grid cell size determination for indexing of multidimensional databases
|Oct 27, 2000
|Jan 6, 2009
|American Calcar, Inc.
|System and method for user navigation
|Dec 11, 2003
|Feb 24, 2009
|Sony Corporation
|Techniques for spatial representation of data and browsing based on similarity
|May 29, 2001
|Aug 25, 2009
|Oracle International Corporation
|Quadtree center tile/boundary tile optimization
|Jan 8, 2008
|Jan 19, 2010
|American Calcar Inc.
|Technique for effective navigation based on user preferences
|Oct 21, 2005
|Mar 16, 2010
|Microsoft Corporation
|System and process for identifying objects and/or points nearby a given object or point
|Jan 8, 2007
|Apr 20, 2010
|American Calcar, Inc.
|Personal communication system to send and receive voice data positioning information
|Jan 11, 2008
|Jun 8, 2010
|Spacecurve, Inc.
|Spatial Sieve Tree
|Aug 3, 2007
|Jun 15, 2010
|American Calcar, Inc.
|Technique for effective navigation based on user preferences
|Feb 24, 2003
|Jun 29, 2010
|American Calcar, Inc.
|Positional camera and GPS data interchange device
|Jan 28, 2008
|Aug 3, 2010
|International Business Machines Corporation
|System and computer program products to improve indexing of multidimensional databases
|Oct 31, 2007
|Aug 17, 2010
|International Business Machines Corporation
|Reducing index size for multi-level grid indexes
|Dec 20, 2004
|Oct 12, 2010
|Decarta Inc.
|Geocoding locations near a specified city
|Sep 29, 2003
|Nov 16, 2010
|International Business Machines Corporation
|Method and structure for monitoring moving objects
|Jan 25, 2008
|Nov 16, 2010
|International Business Machines Corporation
|Reducing index size for multi-level grid indexes
|May 21, 2007
|Dec 14, 2010
|Amazon Technologies, Inc.
|System and method for providing export services to merchants
|Oct 20, 2005
|Dec 28, 2010
|International Business Machines Corporation
|Reducing index size for multi-level grid indexes
|Feb 15, 2007
|Jan 25, 2011
|Smith Iii Julius O
|Method and apparatus for facilitating use of hypertext links on the world wide web
|Dec 11, 2001
|Mar 8, 2011
|British Telecommunications Public Limited Company
|Method of indexing entities
|Oct 30, 2007
|Mar 15, 2011
|Nokia Corporation
|Query method involving more than one corpus of documents
|Oct 2, 2006
|Mar 29, 2011
|Metacarta, Inc.
|Geotext searching and displaying results
|Jun 7, 2005
|May 31, 2011
|Nokia Corporation
|Searching by using spatial document and spatial keyword document indexes
|Apr 25, 2005
|Aug 2, 2011
|Hewlett Packard Development Company, L.P.
|Method and apparatus for populating an index table
|Jun 12, 2007
|Sep 6, 2011
|Nokia Corporation
|System and methods for providing statstically interesting geographical information based on queries to a geographic search engine
|Oct 12, 2007
|Nov 22, 2011
|Ori Software Development Ltd.
|Encoding semi-structured data for efficient search and browsing
|Jul 30, 2010
|Feb 21, 2012
|Sap Ag
|Compression scheme for improving cache behavior in database systems
|Jul 19, 2001
|Feb 28, 2012
|Silver State Intellectual Technologies, Inc.
|Technique for effective organization and communication of information
|Jun 28, 2006
|Jun 12, 2012
|Nokia Corporation
|User interface for geographic search
|May 3, 2010
|Aug 28, 2012
|Real Estate Portal Usa, Llc
|Networked computer system providing an integrated suite of web services and a geographic information system (GIS) for real property and land parcels
|Dec 20, 2010
|Jan 8, 2013
|Nokia Corporation
|Methods, apparatuses and computer program products for converting a geographical database into a map tile database
|Sep 27, 2011
|Mar 19, 2013
|Decarta Inc.
|Point of interest search along a route with return
|Dec 13, 2007
|Apr 23, 2013
|Oracle International Corporation
|Partial key indexes
|Jan 8, 2008
|Jun 18, 2013
|Silver State Intellectual Technologies, Inc.
|Technique for effective navigation based on user preferences
|Apr 1, 2009
|Jul 16, 2013
|Decarta Inc.
|Retrieval of vehicular traffic information optimized for wireless mobile environments
|Sep 1, 2004
|Jul 16, 2013
|Ori Software Development Ltd.
|Encoding semi-structured data for efficient search and browsing
|Jan 27, 2012
|Nov 19, 2013
|Sap Ag
|Compression scheme for improving cache behavior in database systems
|Sep 3, 2012
|Apr 22, 2014
|Decarta Inc.
|Transmission of routes between client and server using route IDs
|Aug 29, 2012
|Jun 10, 2014
|Bentley Systems, Incorporated
|Efficient range unions in SQL
|May 21, 2010
|Oct 7, 2014
|Silver State Intellectual Technologies, Inc.
|Positional camera and GPS data interchange device
|Mar 10, 2008
|Nov 18, 2014
|Silver State Intellectual Technologies, Inc.
|GPS publication application server
|Oct 4, 2007
|Jan 27, 2015
|Gefemer Research Acquisitions, Llc
|Method and apparatus for integrated cross platform multimedia broadband search and selection user interface communication
|Sep 14, 2012
|Feb 24, 2015
|Bentley Systems, Incorporated
|Efficiently finding spatially scored best entities
|Sep 29, 2003
|Mar 3, 2015
|International Business Machines Corporaton
|System and method for monitoring events against continual range queries
|Nov 18, 2013
|Jun 30, 2015
|Sap Se
|Compression scheme for improving cache behavior in database systems
|Jun 1, 2012
|Sep 29, 2015
|Texas Instruments Incorporated
|Optimized algorithm for construction of composite video from a set of discrete video sources
|Feb 27, 2012
|Nov 10, 2015
|Silver State Intellectual Technologies, Inc.
|Technique for effective organization and communication of information
|Oct 30, 2007
|Dec 1, 2015
|Nokia Technologies Oy
|Spatial indexing of documents
|Jun 4, 2014
|Jan 26, 2016
|Silver State Intellectual Technologies, Inc.
|Positional camera and GPS data interchange device
|Dec 21, 2007
|Mar 15, 2016
|Nokia Technologies Oy
|Methods of systems using geographic meta-metadata in information retrieval and document displays
|Apr 1, 2009
|Apr 5, 2016
|Uber Technologies, Inc
|Point of interest search along a route
|Feb 12, 2007
|Aug 9, 2016
|Nokia Technologies Oy
|Systems and methods for spatial thumbnails and companion maps for media objects
|Sep 14, 2010
|Sep 27, 2016
|Uber Technologies, Inc.
|Geocoding locations near a specified city
|Sep 4, 2015
|Nov 8, 2016
|Uber Technologies, Inc.
|Point of interest search along a route with return
|Dec 23, 2013
|Feb 28, 2017
|X One, Inc.
|Rendez vous management using mobile phones or other mobile devices
|Jan 25, 2016
|Mar 7, 2017
|Silver State Intellectual Technologies, Inc.
|Positional camera and GPS data interchange device
|Nov 3, 2014
|Apr 4, 2017
|X One, Inc.
|Methods for identifying location of individuals who are in proximity to a user of a network tracking system
|Jul 22, 2015
|Apr 4, 2017
|X One, Inc.
|Techniques for communication within closed groups of mobile devices
|Sep 20, 2016
|May 16, 2017
|X One, Inc.
|Techniques for sharing position data between first and second devices
|Aug 2, 2016
|Jun 20, 2017
|Nokia Technologies Oy
|Systems and methods for spatial thumbnails and companion maps for media objects
|Aug 6, 2007
|Aug 1, 2017
|Nokia Technologies Oy
|Systems and methods for obtaining and using information from map images
|Jul 16, 2015
|Aug 15, 2017
|X One, Inc.
|Techniques for sharing relative position between mobile devices
|Jan 12, 2017
|Aug 29, 2017
|X One, Inc.
|Rendez vous management using mobile phones or other mobile devices
|Mar 28, 2016
|Oct 3, 2017
|Uber Technologies, Inc.
|Point of interest search along a route
|Oct 6, 2016
|Oct 17, 2017
|Uber Technologies, Inc.
|Point of interest search along a route with return
|Dec 2, 2016
|Nov 7, 2017
|Hisense Mobile Communications Technology Co., Ltd.
|Geo-fencing based location detection method and electronic device
|Feb 9, 2017
|Dec 26, 2017
|X One, Inc.
|Ad hoc location sharing group between first and second cellular wireless devices
|Jan 27, 2017
|Dec 26, 2017
|X One, Inc.
|Formation of wireless device location sharing group
|Apr 11, 2001
|Apr 18, 2002
|Obradovich Michael L.
|GPS publication application server
|May 7, 2002
|Jan 2, 2003
|Lawder Jonathan Keir
|Method of storing and retrieving multi-dimensional data using the hilbert curve
|Dec 19, 2001
|Feb 27, 2003
|Lascar Popovici
|Method and system of vectorial cartography
|Oct 30, 2001
|May 1, 2003
|Chang Nelson Liang An
|Apparatus and method for distributing representative images in partitioned areas of a three-dimensional graphical environment
|Feb 24, 2003
|Aug 21, 2003
|American Calcar, Inc.
|Positional camera and GPS data interchange device
|May 1, 2002
|Nov 6, 2003
|Sun Microsystems, Inc.
|Shape-based geometric database and methods and systems for construction and use thereof
|May 10, 2002
|Nov 13, 2003
|International Business Machines Corporation
|Systems, methods, and computer program products to reduce computer processing in grid cell size determination for indexing of multidimensional databases
|May 10, 2002
|Nov 13, 2003
|International Business Machines Corporation
|Systems, methods and computer program products to improve indexing of multidimensional databases
|Dec 11, 2001
|Feb 26, 2004
|Crabtree Ian B.
|Method of indexing entities
|Dec 11, 2003
|Jul 15, 2004
|Rising Hawley K.
|Techniques for spatial representation of data and browsing based on similarity
|Mar 14, 2003
|Sep 16, 2004
|Mayo Bryan Edward
|System and method for an OLAP engine having dynamic disaggregation
|Mar 27, 2003
|Sep 30, 2004
|Kothuri Ravi Kanth V.
|Delayed distance computations for nearest-neighbor queries in an R-tree index
|May 10, 2004
|Oct 28, 2004
|Kothuri Ravi Kanth V.
|Query prunning using exterior tiles in an R-tree index
|Apr 29, 2003
|Nov 4, 2004
|Mcdonough William
|Method and system for forming, updating, and using a geographic database
|Jul 27, 2004
|Feb 3, 2005
|Mcdonough William G.
|Method for organizing map data
|Sep 1, 2004
|Feb 10, 2005
|Ori Software Development Ltd.
|Encoding semi-structured data for efficient search and browsing
|Sep 29, 2003
|Mar 31, 2005
|International Business Machines Corporation
|Method and structure for monitoring moving objects
|Sep 29, 2003
|Mar 31, 2005
|International Business Machines Corporation
|System and method for monitoring events against continual range queries
|Dec 20, 2004
|Aug 4, 2005
|Smartt Brian E.
|Geocoding locations near a specified city
|Mar 2, 2004
|Sep 8, 2005
|Adler David W.
|Index exploitation for spatial data
|May 5, 2005
|Sep 15, 2005
|Oracle International Corporation
|Pruning of spatial queries on geodetic data when query window has holes
|Aug 17, 2005
|Jan 5, 2006
|Mcdonough William G
|Method for organizing map data
|Oct 21, 2005
|Feb 16, 2006
|Microsoft Corporation
|System and process for identifying objects and/or points nearby a given object or point
|Oct 21, 2005
|Feb 16, 2006
|Microsoft Corporation
|System and process for identifying objects and/or points nearby a given object or point
|Oct 20, 2005
|Feb 23, 2006
|International Business Machines Corporation
|Reducing index size for multi-level grid indexes
|Oct 20, 2005
|May 18, 2006
|International Business Machines Corporation
|Systems, methods, and computer program products to reduce computer processing in grid cell size determination for indexing of multidimensional databases
|Dec 7, 2004
|Jun 15, 2006
|International Business Machines Corporation
|System and method for determining an optimal grid index specification for multidimensional data
|May 20, 2005
|Nov 23, 2006
|International Business Machines Corporation
|Methods and apparatus for information integration in accordance with web services
|Nov 2, 2006
|Jun 14, 2007
|Canon Kabushiki Kaisha
|Sortable Collection Browser
|Feb 15, 2007
|Jul 5, 2007
|Smith Julius O Iii
|Method and apparatus for facilitating use of hypertext links on the World Wide Web
|Feb 5, 2007
|Aug 16, 2007
|Benq Corporation
|Image capturing method and image-capturing device thereof
|Feb 10, 2006
|Aug 16, 2007
|Taylor Thomas B
|Computer-implemented registration for providing inventory fulfillment services to merchants
|Jun 12, 2007
|Jan 10, 2008
|Metacarta, Inc.
|System and methods for providing statstically interesting geographical information based on queries to a geographic search engine
|Jun 12, 2007
|Jan 10, 2008
|Metacarta, Inc.
|Systems and methods for hierarchical organization and presentation of geographic search results
|Oct 31, 2007
|Feb 28, 2008
|International Business Machines Corporation
|Reducing index size for multi-level grid indexes
|Oct 12, 2007
|Mar 13, 2008
|Ori Software Development Ltd.
|Encoding semi-structured data for efficient search and browsing
|Oct 2, 2007
|Mar 20, 2008
|Ori Software Development Ltd.
|Efficient traversals over hierarchical data and indexing semistructured data
|Oct 20, 2006
|Apr 24, 2008
|Microsoft Corporation
|Ranged lookups
|Jan 25, 2008
|Jun 5, 2008
|International Business Machines Corporation
|Reducing index size for multi-level grid indexes
|Mar 18, 2008
|Jul 3, 2008
|International Business Machines Corporation
|Determining an optimal grid index specification for multidimensional data
|Oct 4, 2007
|Apr 9, 2009
|Fein Gene S
|Method and Apparatus for Integrated Cross Platform Multimedia Broadband Search and Selection User Interface Communication
|Dec 9, 2008
|Jun 11, 2009
|Canon Kabushiki Kaisha
|Document processing apparatus and search method
|Dec 13, 2007
|Jun 18, 2009
|Oracle International Corporation
|Partial key indexes
|Jan 11, 2008
|Jul 16, 2009
|Rogers J Andrew
|Spatial Sieve Tree
|Apr 1, 2009
|Oct 8, 2009
|Hendrey Geoffrey R
|Retrieval Of Vehicular Traffic Information Optimized For Wireless Mobile Environments
|Jan 21, 2009
|Jul 22, 2010
|Rising Iii Hawley K
|Techniques for spatial representation of data and browsing based on similarity
|Jul 30, 2010
|Nov 11, 2010
|Sap Ag
|Compression scheme for improving cache behavior in database systems
|May 3, 2010
|Nov 11, 2010
|Real Estate Portal Usa, Llc
|Networked computer system providing an integrated suite of web services and a geographic information system (gis) for real property and land parcels
|Sep 14, 2010
|Jan 6, 2011
|Smartt Brian E
|Geocoding Locations Near A Specified City
|Oct 29, 2010
|Feb 24, 2011
|Smith Iii Julius O
|Method and apparatus for facilitating use of hypertext links on the World Wide Web
|Apr 1, 2009
|May 5, 2011
|Decarta Inc.
|Point of interest search along a route
|Jan 28, 2011
|Jul 28, 2011
|Adsensa Ltd.
|Document authentication data embedding method and apparatus
|Jun 1, 2012
|Dec 5, 2013
|Texas Instruments Incorporated
|Optimized algorithm for construction of composite video from a set of discrete video sources
|Sep 9, 2014
|Mar 10, 2016
|Adobe Systems Incorporated
|Spatial visualization of metrics
|Dec 2, 2016
|Mar 23, 2017
|Linhu ZHAO
|Geo-fencing based location detection method and electronic device
|Dec 11, 2001
|Jun 20, 2002
|British Telecommunications Public Limited Company
|Method of retrieving entities
|Dec 11, 2001
|Jun 20, 2002
|British Telecommunications Public Limited Company
|Method of indexing entities
|Mar 12, 2002
|Sep 19, 2002
|Visteon Holdings France
|Method for searching an object in a space, vectorial mapping method and system integrating said vectorial mapping method and electronic device carrying out said vectorial mapping method
|Dec 20, 2004
|Jul 14, 2005
|Telcontar, Inc.
|Geocoding locations near a specified city
|Apr 1, 2009
|Dec 3, 2009
|Decarta Inc.
|Transmission of routes between client and server using route ids
|U.S. Classification
|International Classification
|Cooperative Classification
|European Classification
|Jun 23, 1997
Owner name: TELCONTAR, CALIFORNIA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:SMARTT, BRIAN E.;REEL/FRAME:008578/0166
Effective date: 19970521
|Oct 29, 2002
|Fee payment
Year of fee payment: 4
|Apr 5, 2007
|Fee payment
Year of fee payment: 8
|Apr 5, 2011
|Fee payment
Year of fee payment: 12
|Apr 21, 2015
Owner name: DECARTA INC., CALIFORNIA
Free format text: MERGER;ASSIGNOR:DECARTA INC.;REEL/FRAME:035462/0301
Effective date: 20150305
|Apr 29, 2015
Owner name: DECARTA INC., CALIFORNIA
Free format text: MERGER AND CHANGE OF NAME;ASSIGNORS:MAGELLAN MERGER SUB CORP.;DECARTA INC.;REEL/FRAME:035530/0942
Effective date: 20150305
|May 6, 2015
Owner name: DECARTA LLC, CALIFORNIA
Free format text: MERGER AND CHANGE OF NAME;ASSIGNORS:DECARTA INC.;DECARTA LLC;REEL/FRAME:035581/0194
Effective date: 20150305
|May 12, 2015
Owner name: UBER TECHNOLOGIES, INC., CALIFORNIA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:DECARTA LLC;REEL/FRAME:035622/0242
Effective date: 20150421
|Jul 14, 2016
Owner name: MORGAN STANLEY SENIOR FUNDING, INC., AS ADMINISTRA
Free format text: PATENT SECURITY AGREEMENT (TERM LOAN);ASSIGNOR:UBER TECHNOLOGIES, INC.;REEL/FRAME:039341/0008
Effective date: 20160713
Owner name: MORGAN STANLEY SENIOR FUNDING, INC., AS ADMINISTRA
Free format text: PATENT SECURITY AGREEMENT (REVOLVER);ASSIGNOR:UBER TECHNOLOGIES, INC.;REEL/FRAME:039341/0064
Effective date: 20160713