The present invention relates generally to cartographic databases, and in particular, to the representation of geographic features using polynomial splines.
Computer-based systems that display graphical maps of geographic areas use cartographic databases that contain data that represent the geographic features in the areas. The geographic features represented by data in cartographic databases may include roads, intersections, points-of-interest, lakes, railroad tracks, buildings, airports, stadiums, parks, mountain ranges, bridges, and so on. To permit these features to be displayed, a cartographic database includes data that represent the geometry (e.g., size, shape and position) and character of these various geographic features.
In order to represent roads (as well as other geographic features on a computer), it is necessary to use some form of discretization. In some cartographic databases, each road is represented in terms of one or more discrete road segments. Each road segment is represented by a separate data entity contained in the cartographic database. Thus, each road segment data entity represents a portion of a roadway in a particular geographic region.
In some cartographic databases, the geometry of each represented geographic feature is represented using one or more discrete data points wherein each data point consists of coordinate pairs (longitude, latitude) or coordinate triples (longitude, latitude, altitude). A point feature, such as a point of interest or intersection of roads, is represented using a single data point, while continuous features, such as road segments, lake boundaries, and so on, are represented as a sequence of data points. The end points of the sequence of data points used to represent a continuous geographic feature are referred to as nodes, while data points between the end points are referred to as shape points. Using nodes and shape points, the true shape of a continuous geographic feature can be approximated. The shape points and nodes can be stored in a shape point database, which may be part of a larger cartographic database.
To display the geographic features on a computer display device, piecewise linear interpolation is used between the shape points to draw straight lines connecting the points. This is illustrated in
While using data points and linear interpolation to represent the shape of geographic features has the advantage that it is conceptually relatively simple to work with in database development, compilation, access and display software, there is opportunity for improvement. For example, with linear interpolation, to achieve a high level of accuracy and detail, it is sometimes necessary to store a relatively large number of data points for a given feature. This increases the storage requirements of the cartographic database, as well as the database read time.
Accordingly, there is a need for a method and system of representing and storing geographic features, such as road geometry, that reduces the storage requirements while providing a high level of accuracy in representing the features. Further, it is desired that the increases in resolution and accuracy in the cartographic database do not negatively impact the database read time.
Another way to represent the geometry of continuous geographic features in a cartographic database is disclosed in U.S. Pat. No. 6,029,173. The '173 patent describes a navigation system having a cartographic database that stores data points and Bezier control points that represent road geometry. Although the approach disclosed in the '173 patent provides an advantage over prior methods for representing geographic features, there continues to be room for improvement.
The present invention provides a polynomial spline based method for representing geographic features in cartographic databases. The use of polynomial splines reduces the amount of data needed to accurately represent geographic features in cartographic databases. This results in smaller database sizes and shorter database read times, while maintaining or enhancing the accuracy with which geographic features are depicted in the database.
Turning now to the drawings, and in particular to
A polynomial spline consists of piecewise polynomial functions which are joined end to end with some continuity condition imposed at the join points. A polynomial spline is determined completely by a set of control points CP(0)-CP(N), and in some cases, additional parameters (e.g., knots and/or control point weights).
Splines can be broadly classified as interpolating and noninterpolating. For both types of splines, the control points can be computed so that a spline accurately represents a corresponding geographic feature.
A polynomial spline refers to any composite curve formed with piecewise polynomial functions representing curve sections and satisfying specified conditions at the boundaries of the sections. There are many types of spline curves.
I. Database Conversion
The shape point database 14 stores a plurality of shape points and nodes representing one or more geographic features that can be displayed by a computer-based system, such as a navigation system, as part of a digital map. Shape points and nodes represent geographic locations within a map. In the embodiments disclosed herein, the shape points and nodes can consist of coordinate triples (longitude, latitude, altitude) or coordinate pairs (longitude, latitude), which represents specific locations along geographic features. Nodes are special cases of shape points, representing, for example, intersections between road segments and end points of geographic features. The shape points can be part of a cartographic database used for map display. The cartographic database itself may be part of a larger geographic database, which may include other kinds of databases used for functions such as route calculation, maneuver generation, and other navigational functions.
Data stored in the shape point database 14 can be organized on a per geographic feature basis, i.e., each geographic feature is represented as sequence of nodes and shape points. Although the database 14 can store a number of geographic feature entities 17, three entities SEG0, SEG1, SEG2 are shown for illustration purposes. A pair of nodes 23 and zero or more shape point entries 25 can be associated with each entity. For entities representing straight or substantially straight geographic features, the nodes 23 are sufficient to accurately represent the feature; and therefore, for straight geographic features, the nodes alone can be stored without shape points.
In the example shown, the entities 17 correspond to geographic features (e.g., roadways) displayable on a map 15. A first geographic feature SEG0 is represented by shape points SP0(0)-SP0(i), where i is an integer, and nodes EN0(0)-EN0(1); a second feature SEG1 is represented by shape points SP1(0)-SP1(j), where j is an integer, and nodes EN1(0)-EN1(1); and a third feature SEG2 is represented by shape points SP2(1)-SP2(k), where k is an integer, and nodes EN2(0)-EN2(1).
The processor 12 can be any computing device for performing the steps shown in the flow chart 20 of
Generally, for each geographic feature entity in the shape point database 14, the processor 12 generates a corresponding set of control points and other parameters 19 that define the spline; these parameters are stored in the spline database 16. These control points and other parameters can be used to compute the spline function, which can represent the geographic feature in a displayable map 21.
In the example shown, the first geographic feature SEG0 is represented by control points CP0(0)-CP0(1), where 1 is an integer; the second geographic feature SEG1 is represented by control points CP1(0)-CP1(m), where m is an integer; and the third geographic feature SEG2 is represented by shape points CP2(0)-CP2(n), where n is an integer.
Next, in step 24, the number of spline control points to be generated for each segment is determined. Generally, the number of control points per segment is set to be less than the number of shape points per segment. This results in smaller database storage requirements. The number of control points per segment can be set to a predetermined value or fraction of the number of shape points, or alternatively, the number can be selected by a user or be dynamically computed on a per segment basis depending on the desired level of representational accuracy. The user interface 11 can be used to select the number of control points either globally, for all geographic features being processed, or individually for each of the geographic features. Other parameters which are dependent on the type of spline being computed are also determined, either globally or on a per geographic feature basis.
In step 26, a least squares approximating polynomial spline is fitted to each of the geographic features. The polynomial spline can be any type of spline, for example, a uniform or nonuniform nonrational B-spline, NURBS, or a uniform or nonuniform Catmull-Rom spline. The application of each of these types of splines is described in further detail below.
The spline is fit to the shape points and nodes representing each geographic feature by applying a least squares approximation to the shape points and other parameters that define the geographic feature to generate the selected number of spline control points for each segment.
As will be discussed in further detail below, regularization techniques can be employed to make the least squares approximation better conditioned. In addition, “bearing values” and selective weighting can be included in the least squares approximation to improve the continuity of spline curves between geographic features that meet at a point.
In step 28, the spline control points for the geographic features are then stored in the spline database 16 (step 28).
II. Generalized Approach to Computing Least Squares Approximating Polynomial Splines
Although the present invention is not limited to any particular method of performing a least squares approximation, this section describes a least squares methodology in accordance with one embodiment of the invention. The least squares methodology described in this section can be used with any type of spline function, including uniform B-splines, non-uniform B-splines, or Catmull-Rom splines.
To fully appreciate the least squares method described herein, it is appropriate to first provide a general mathematical description of a polynomial spline and its representation in parametric form.
A polynomial spline space curve of any type can be represented in parametric form as a set of polynomial functions of an independent parameter t as follows:
where
and x, y and z represent longitude, latitude and altitude, respectively. The set of functions Ni(t) are called spline basis functions, and the weights Pix, Piy and Piz on these basis functions are the control points of the spline. The basis functions vary for different types of splines. In the case of uniform splines, e.g., uniform B-spline and uniform Catmull-Rom spline, the set of basis functions is obtained by shifting a single basis function over the length of the geographic feature. In the case of nonuniform splines, e.g., nonuniform B-splines, the set of basis functions is controlled by the knot locations. For NURBS, the most general form of B-splines, the shape of the approximating functions is controlled by the knot locations, as well as by weights. The knot locations can be selected by a user for each geographic feature via the user interface 11.
Each geographic feature is specified by a set of shape points and nodes, where each point is specified as a (longitude, latitude, altitude) coordinate triple. Accordingly, for each geographic feature there is a list of points (x0 ,y0,z0), (x1,y1,z1), . . . , (xN−1,yN−1,zN−1) where the xi are the longitude values, the yi are the latitude values and the zi are the altitude values. The first and last coordinate triple, viz., (x0,y0 ,z0) and (xN−1,yN−1,zN−1) are the nodes, while the coordinates between these values are shape points.
In order to obtain a polynomial representation of the shape points, it is necessary to parameterize the given shape points in terms of a parameter t. This is accomplished by assigning a value ti to each triple (xi,yi,zi).
Parameterization can be accomplished in a number of different ways. Parameterization schemes can be broadly classified as uniform and nonuniform. In the first case, the assigned parameter values ti are uniformly spaced, generally with t0=0 and each succeeding value exceeding the previous value by some constant.
A particularly successful nonuniform parameterization method involves assigning t0=0 to a first shape point and incrementing the parameter value by the distance between the first shape point and the next shape point. This is called chord length parameterization.
For each geographic feature, parameterization results in a set of parameter values t0,t1, . . . , tN−1 corresponding respectively to the latitude values x0,x1, . . . , xN−1, longitude values y0,y1, . . . , yN−1 and altitude values z0,z1, . . . , zN−1. The parameter values t0 and tN−1, correspond to the nodes and the parameter values t1, . . . , tN−2 correspond to the shape points.
To reduce the error in the least squares fit polynomial spline, “bearing values” are determined for the nodes of each geographic feature. The bearing values are the first derivatives at the nodes, i.e., at t=t0 and at t=tN−1. These values indicate the direction in which the geographic feature is headed at its endpoints.
The purpose of the least square fit is to find the optimal parametric polynomial spline curves Px(t), Py(t) and Pz(t) such that the mean squared error between Px(t) and the given longitude and bearing values, Py(t) and the given latitude and bearing values and Pz(t) and the given altitude and bearing values at the parameter values t0,t1, . . . , tN−1 is minimal. It is preferable that the nodes of each geographic feature have a larger weight associated with them than the shape points so that the spline is forced closer to the nodes. This is important so that continuity between connected geographic features can be maintained in the spline representation.
Since the steps for determination of Px(t), Py(t) and Pz(t) are identical, the least squares methodology is illustrated for P(t) , where P(t) represents Px(t), Py(t) and Pz(t). This simplifies the notation somewhat for illustrative purposes.
Accordingly, the methodology defines a function τP(t) as follows
where W is the weight assigned to the nodes and P(t) is understood to represent Px(t), Py(t) and Pz(t) and v is understood to represent x, y or z.
From Equation (3), P(t) can be expressed in terms of its control points and the basis function of the spline as follows:
Substituting Equation (4) into Equation (3), yields Equation (5) below.
The least squares approximation is computed by minimizing τP(t) of Equation (5). However, the resulting minimization is not in general “well conditioned”, i.e., in solving the system of equations represented by Equation (5), the system matrix may be close to singular. There is therefore a need to use a regularization term, which will make the problem better conditioned.
Although various forms of regularization can be used in accordance with the present invention, one embodiment of the invention employs a specialized form of Tikhonov-Miller regularization, which in general involves placing a constraint on some function of P(t) and its derivatives. In particular, the third derivative of P(t) can be used, though this is only one possibility. Accordingly, the regularization modifies Equation (5) as follows:
where y is a constant which determines the degree of regularization added.
As stated above, the goal is to find the P(t) that minimizes τP(t). Since P(t) is a function of the control points P0, P1, . . . , PM−1, it is therefore the goal to find the set of control points P0, P1, . . . , PM−1, which minimizes τP(t). To accomplish this, τP(t) is differentiated with respect to P1, and the resulting derivative is set equal to zero, as shown in Equations (8)-(9).
or
Equation (9) represents one row of a system of equations which is solved for the unknown coefficients P0, P1, . . . , PM−1. Differentiating τP(t) with respect to Pl,l=0, . . . , M−1, and setting each result equal to zero, the full system matrix is obtained. Since the goal is to determine Px(t), Py(t) and Pz(t), the following systems of equations are solved of the form of Equation (6):
and
Accordingly, the polynomial spline coefficients are determined by solving Equations (10)-(12).
As described earlier, uniform or nonuniform nonrational B-splines, uniform or nonuniform Catmull-Rom splines, NURBS, and the like can be used to represent geographic features. The details specific to some of these spline types are given below.
A. Uniform Nonrational B-Spline Representation
Equations (10)-(12) are solved for the spline coefficients P0x, P1x, . . . , PM−1x, P0y, P1y, . . . , PM−1y and P0z, P1z, . . . , PM−1z. To solve these equations, the ith 4th order uniform B-spline basis function Ni(t) is substituted into Equations (10)-(12). The uniform nonrational B-spline basis function Ni(t) is defined as follows:
Therefore,
Now consider the regularization term, marked I in Equation (9)-(12). Because the third derivative of of a 4th order polynomial is a constant, the integral I can be to computed:
But Ni′″(t) has support only from i−3≦t≦i+1. Therefore,
where some of the terms may be zero, depending on the value of i. Equation (16) represents the regulation term used with the uniform B-spline.
B. Uniform Catmull-Rom Spline Representation
Like the uniform B-spline, Equations (10) and (12) are solved for the spline coefficients coefficients P0x, P1x, . . . , PM−1x, P0y, P1y, . . . , PM−1y and P0z, P1z, . . . , PM−1z. However, the ith 4th order uniform Catmull-Rom spline basis function Ni(t) is used instead of the uniform B-spline basis function. The Catmull-Rom basis function is defined as follows:
Therefore,
The regularization term I is within a constant of the corresponding regularization term for the uniform B-spline described above. However, since the basis functions for this spline are different, the system of equations to be solved will have a different system matrix and known vector.
C. Nonuniform Nonrational B-Spline Representation
The basic set of systems to be solved is Equations (10) and (12). However, the regularization term I is not necessarily required in this case. Further, the knot values can be selected by the user.
D. NURBS
Again, the basic set of systems to be solved is Equations (10) and (12). As for nonuniform nonrational B-splines, the regularization term I may not be required in this case. Further, the knot values as well as control point weights can be selected by the user, thus affording the user greater control over the shape of the basis function and the spline.
III. Polynomial Spline with Alternative Representation for Straight Road Sections
The curved sections can be represented using a best fit polynomial spline. G1 Continuity is ensured at the point where the straight section and curved sections of the segment meet by incorporating this information into the least squares approximation of the curved sections of the geographic feature. Further, the degree to which this continuity is enforced can be controlled in the least squares approximation by the configurable weight factor.
The methodology to accomplish this is similar to that described above for polynomial splines, except that each geographic feature is split into sections. At points where a spline section meets a straight line section, the bearing values, i.e., first derivatives, of the two sections are incorporated into the least squares approximation. In other words, one of the bearing values in Equations (10) and (12) is replaced by the bearing value of the straight line segment. In this manner, straight sections of a geographic feature can be represented using conventional shape points and linear interpolation, while curved sections of the same feature can be represented using polynomial spline control points.
Included in the entity 40 is an alternative representation (AR) flag 42. The AR flag 42 can indicate to a display system reading the entity 40 that the entity 40 is represented using both control points and shape points. Accordingly, display systems can appropriately perform either linear interpolation or spline calculation using the correct entries in the entity 40.
IV. Display System for Polynomial Splines and ADASs
The computer 52 includes a processor 58 and a memory 60. The processor 58 can execute a computer software program stored in the memory 60. The software program can direct the processor 58 to perform the steps shown in flow chart 80 of
The flow chart 80 illustrates the operation of the computer-based system 50 shown in
The spline database 54 can include the same data included in the spline database 16 shown in
The polynomial spline calculated by the processor 58 can be any type of spline, including a uniform or nonuniform nonrational B-spline, NURBS, and a Catmull-Rom spline. In addition, the computer 52 can be configured to display geographic feature using the alternate representation technique described above for geographic feature having both straight sections and curved sections.
The computer-based system 50 of
Advanced driver assistance systems are capable of improving the safety, comfort, efficiency, and overall satisfaction of driving. Examples of advanced driver assistance systems include adaptive headlight aiming, adaptive cruise control, and adaptive shift control. Adaptive headlight aiming adjusts the vehicle's headlights, i.e., width, rotational angle, elevation angle, and brightness, based on the curvature of the road ahead of the vehicle, tilt, elevation change, and other factors. Adaptive cruise control allows the vehicle to maintain and/or resume a set speed or safe following distance from other vehicles at slower than the set speed based on data about vehicle speed, nearby vehicles and other obstructions, type of road traveled (motorway vs. local road), road curvature, tilt, elevation, and other factors. Adaptive shift control adjusts the gearing and shifting of automatic transmissions based on sensor data about vehicle speed, engine speed, road curvature, tilt, elevation, and other factors. There are other advanced driver assistance systems in addition to these.
These advanced driver assistance systems use a variety of sensor mechanisms in the vehicle to determine the current state of the vehicle and the current state of the roadway in front of the vehicle. These sensor mechanisms may include radar and vision-oriented sensors, such as cameras. Although radar and vision-oriented sensors are important components of ADASs, these components do not always provide a completely accurate representation of driving conditions. For example, the range and/or accuracy of radar or vision-oriented sensors can be affected by certain environmental conditions, such as fog, heavy rain or snow, or snow-covered roads. Moreover, radar and vision-oriented systems do not reliably detect certain useful road attributes, such as speed limits, traffic signs, bridge crossings, etc. Further, radar and vision-oriented sensors cannot “see” around corners or other obstructions and therefore may be limited under such circumstances.
One way to improve radar and vision-oriented systems is to use digital map data, such as road geometry information, as an additional component in ADASs. Digital map data can be used in ADASs to provide information about the road ahead. Digital map data are not affected by environmental conditions, such as fog, rain or snow. In addition, digital map data can provide useful information that cannot reliably be provided by vision-oriented systems, such as speed limits, traffic and lane restrictions, or the like.
Further, road geometry information included in the digital map data can be used to determine the road ahead of the vehicle even around corners or beyond obstructions. Accordingly, digital map data, and in particular, road geometry information, can be a useful addition in ADASs.
Representing road geometry using polynomial splines, as described herein, provides an accurate and compact way of representing such information in databases suitable for use in ADASs. These databases can improve the overall performance of ADASs by increasing the accuracy of the digitized road geometry used by the ADASs, while reducing the storage space required for the digital map information.
While specific embodiments of the present invention have been shown and described, it will be apparent to those skilled in the art that the disclosed invention may be modified in numerous ways and may assume many embodiments other than those specifically set out and described above. Accordingly, the scope of the invention is indicated in the appended claims, and all changes that come within the meaning and range of equivalents are intended to be embraced therein.
Number | Name | Date | Kind |
---|---|---|---|
5438517 | Sennott et al. | Aug 1995 | A |
5470233 | Fruchterman et al. | Nov 1995 | A |
5497451 | Holmes | Mar 1996 | A |
5566288 | Koerhsen | Oct 1996 | A |
5771310 | Vannah | Jun 1998 | A |
6009394 | Bargar et al. | Dec 1999 | A |
6029173 | Meek et al. | Feb 2000 | A |
6133867 | Eberwine et al. | Oct 2000 | A |
6138084 | Mine | Oct 2000 | A |
6253164 | Rohm et al. | Jun 2001 | B1 |
6256038 | Krishnamurthy | Jul 2001 | B1 |
6345235 | Edgecombe et al. | Feb 2002 | B1 |
6639592 | Dayanand et al. | Oct 2003 | B1 |
6868175 | Yamamoto et al. | Mar 2005 | B1 |
Number | Date | Country |
---|---|---|
0 394 517 | Jun 1993 | EP |
0 807 803 | Nov 1997 | EP |
0919788 | Jun 1999 | EP |
WO 9532483 | Nov 1995 | WO |