METHOD AND APPARATUS FOR STORING A DIGITAL DATA BASE DIVIDED INTO PARCELS

Abstract: A database is stored in a mass memory. For this purpose, it is first divided into main cells and then into base cells according to a predetermined regular division pattern. Each base cell is then checked to see whether its data content is sufficient to occupy substantially completely a storage parcel having a predetermined capaci­ ty. If this is the case, the base cell is thus accommodated in a storage parcel; if this is not the case, adjacent base cells are grouped until a storage parcel is occupied substantially completely. The operation of addressing a storage parcel is effected by the use of a main cell table in which address pointers are stored, each of which points to a base cell table. In the base cell table, an index is given for each base cell and this index indicates in which storage parcel the relevant base cell is accommodated. Each of these indices indicates a location in a data parcel list at which an address indicator is present, which in­ dicates the location at which the relevant parcel is stored in the mass memory.

Description: The invention relates to a method for storing a digital data base in a mass memory whose capacity is divided into a number of storage parcels each having a predetermined storage capacity, said method comprising the following steps: dividing the data base into a number of main cells according to a predetermined regular division pattern; dividing each main cell into a further number of data parcels whereby each data parcel covers a respective part of the main cell, which part has a data content occupying substantially completely the storage capacity of a storage parcel; setting up an identifier table comprising: a) a first identifier identifying said predetermined pattern; b) a second identifier identifying said division into data parcels; c) for each main cell a data parcel list which comprises for each data parcel of that main cell an addresspointer indicating at which memory location the respective data parcel is stored; loading into said mass memory the data content of each data parcel at the address indicated by its address pointer and loading said identifier table. Such a method is known from the article "A file organization for Geographic information systems based on Spatial Proximity" of T.Matsuyama, Le Viet Hao, and M. Nagus and published in Computer Vision, Graphics and Image Processing June 26, 1984, No. 3 (New-York, USA) page 303-318. In the known method the digital data base, which is formed by geographic information, is first divided into a number of main cells according to a regular division pattern, such as for example a quad tree. Using that division pattern the digital data base is partitioned into four rectangular regions. The available storage capacity of the mass memory is divided into a number of storage parcels each having a predetermined storage capacity. In order to use efficiently the available storage capacity there is checked for each main cell if the data content thereof fits into one storage parcel. If this is the case, the data content of that main cell forms a data parcel and is stored into a storage parcel. However, if the data content of a main cell exceeds the storage capacity of a storage parcel, that main cell is further divided into a further number of data parcels, such that each data parcel occupies substantially completely the storage capacity of a storage parcel. By that division into data parcels the data content is taken into account and so much data is grouped together until a storage parcel is substantially completely occupied. In order to access the storage data an identifier table is set up, which comprises a first identifier identifying the division into main cells, and a second identifier identifying the division into parcels. Further a parcel list is set up in order to indicate at which memory location the different data parcels are stored in the mass memory. After accomplishing that division of the data base, the identifier table and the different data parcels are stored at respective addresses in the mass memory. A disadvantage of the known method is that the division of the main cells into data parcels is realized according to an arbitrary division pattern wherein only the data content is taken into account. The efficient use of the available storage capacity thus obtained is overridden by the need of storing a complicated second identifier which identifies the arbitrary division pattern used for the parcel division. Such a complicated second identifier not only requires much storage capacity but also renders the search of a particular parcel rather difficult and complicated. U.S. Patent 3,597,745 discloses a method for arrangement of data wherein portions of data are stored in a plurality of blocks of data storage locations, each block comprising n storage units of fixed size. The portions of data are located by two levels of indices. For an efficient use of the storage units of fixed size for storing a data base, the division of the data base again is irregular because only the data content is taken into account. This again has the drawback of the need to store a complicated arbitrary division pattern for the parcel division. The invention has for its object to provide a method for storing a digital data base in a mass memory, which method makes use of a less complicated division into parcels, which division can also be represented by a simpler second identifier which can be stored by using less storage capacity. For this purpose, a method according to the invention is characterized in that main cells which comprise more than one data parcel are divided according to a further predetermined regular division pattern into such a number of base cells that the data content of each base cell is storable into a storage parcel and whereby, said parcels being formed by combining each time one or more adjacent base cells of a same main cell, each base cell only belongs to one and the same data parcel, and whereby said identifier table is set up by: a) compiling a main cell table comprising said first identifier and further for each main cell divided into base cells a further address pointer indicating a mass memory location at which a base cell table for that main cell is stored; b) forming for each main cell divided into base cells said second identifier by forming a number of indices, each index indicating a respective data parcel of its appertaining main cell; c) assigning to each base cell the index of the respective data parcel in which it is accommodated; d) compiling for each main cell divided into base cells a base cell table comprising a base cell identifier and a list of the base cells with their assigned index; and whereby each base cell table is loaded at its respective address indicated by its respective further address pointer. By using a further predetermined regular division pattern for dividing main cells into base cells, identification of the base cells is easy to realize, and the storage of an identifier identifying the division into base cells does not require much storage capacity. Because data parcels are now formed by combining base cells, a data parcel can easily be forwarded by recognizing which base cell is accommodated in that parcel. Recognizing a base cell is also easy because base cells are formed by using a regular division pattern. Further the second identifier can now simply be formed by a number of indices, and the link between a base cell and the parcel in which it is accommodated is formed by assigning to each base cell the index of the respective data parcel in which it is accommodated. The division of main cells into base cells according to a regular division pattern and the grouping of the base cells into data parcels thus offers a less complicated division into parcels, and requires less storage capacity for storing the second identifier. The invention further relates to a method of addressing for retrieval a data parcel in a mass memory , in which a database is stored parcelwise using the above method, the data parcel to be addressed being identified by a virtual address constituted by a data word belonging to the data content of that data parcel. The method of addressing for retrieval a data parcel in a mass memory according to the invention is characterized in that it comprises the following steps: a. fetching the main cell table from the mass memory; b. determining in what main cell the virtual address supplied is located by use of the first identifier and selecting that main cell; c. determining by using the further address pointer of the selected main cell the address at which the base cell table associated with the selected main cell is stored in the mass memory; d. fetching the selected base cell table stored at the determined address; e. determining in which base cell the virtual address supplied is located by use of the base cell identifier from the selected base cell table and selecting this base cell; f. fetching from the base cell table the index assigned to the selected base cell; g. selecting the data parcel indicated by the fetched index from the parcel list associated with the selected main cell; h. determining from the address pointer of the selected parcel a storage address for addressing a data parcel in the mass memory; i. fetching the data contact of the selected parcel. By using the first identifier from the main cell table and the base cell identifier from the base cell table, it is possible to trace in a simple and rapid manner in which main cell and base cell, respectively, the virtual address is located. Once the searched-for base cell has been traced, the index assigned to the searched-for base cell indicates the data parcel in which the searched-for base cell is located. This index indicates a position in the data parcel list in which an address pointer is stored, which indicates the location in the mass memory at which the data within the selected data parcel are stored. A first preferred embodiment of a method according to the invention is characterized in that the base cells of a same main cell are represented in the base cell table by indicators, which are arranged according to a predetermined order, and that the indices assigned to each base cell indicate a position in the data parcel list. By ordering the base cells in the base cell table, searching for a data parcel is simplified and a structure is provided for the storage of the data. It is favourable that each parcel list is stored in the mass memory at an address which has a given offset from the storage address of its associated base cell table. As a result, it is possible to form the address of the associated data parcel list simultaneously with the formation of the address at which the base cell table is stored as a result of which the base cell table and the data parcel list can be fetched in the same reading operation. It is favourable that the capacity of a storage parcel has a byte length which lies between 2K bytes and 32K bytes. 2K bytes corresponds to the capacity of a sector on an optical or a magnetic disc. 32K bytes can still be fetched from the mass memory within a reasonable time. When the database is a roadmap, it is favourable that when the database is divided into main cells which cover equal surface areas, according to the predetermined regular division pattern and that when each main cell is divided into base cells covering equal surface areas, according to the further predetermined regular division pattern, the number of base cells in each main cell is an even power of 2. Thus, a simple division , such as for example a quad tree , of the data base can be obtained. It is favourable that the main cells and the base cells each represent a square segment of the road-map, and that the first identifier and the base cell identifier indicate the lengths of the squares represented by the main cell and the base cell respectively. Searching in the database is thus simplified because coordinates of the road-map can now be used directly in calculation. A further preferred embodiment of a method according to the invention is characterized in that the order assigned to the main cells and the base cells is determined using a Peano-N key. The use of a Peano-N key provides an efficient method of tracing a data parcel for storing and searching road-maps stored in the mass memory. It is favourable that a further virtual address is formed by adding to the virtual address a predetermined value and that the data parcel in which the further virtual address is located is also fetched. In the case of road-maps as a data base, information is thus fetched ready for the next part of the journey. The invention also relates to apparatus for carrying out the above methods. The invention is particularly useful in vehicle navigation systems. In this case, it is of great importance to store road-map data as efficiently as possible and to address them as efficiently as possible. The invention will be described more fully with reference to the drawings, in which: Fig. 1 shows an embodiment of a road-map comprising the map of a town divided into main cells; Fig. 2 shows a division of main cells into base cells; Fig. 3 shows the grouping of base cells into parcels; Fig. 4 shows an embodiment of a Peano-N key drawn on the map; Fig. 5 shows a main cell table; Fig. 6 shows a base cell table; Fig. 7 shows a parcel list; Fig. 8 shows the main elements of an embodiment of a land vehicle navigation device; Fig. 9 is a flow diagram of a method according to which a parcel is fetched from the mass memory in response to a virtual address. The content of a data base is determined either by nature, such as, for example, a map of the courses of the rivers in Europe or a map in which the various mountains of the Alps are indicated, or by a map of systems formed by man over the years, such as, for example, a road system, an encyclopaedia, a dictionary or a telephone-book. Such a database has, when it is divided systematically, for example into blocks having the same surface area for a road-map or alphabetically for a dictionary or a telephone-book, an unequal degree of occupation for the various parts. For example, a dictionary of the Netherlands language includes only a few words with the initial letter q, x or y, whereas the words with, for example, the initial letter d, or v occupy numerous pages. The same problem arises with maps of towns or with road-maps. Fig. 1 shows the map of a town. It is clear from this Figure that, for example, the degree of occupation of the blocks CIV and CIII is considerably higher than that of the blocks AI and BI. This unequal degree of occupation causes a problem when such a database is digitized and is stored bitwise in a mass memory, such as, for example, an optical disc (CD-ROM) or a magnetic disc. In fact, if the same amount of storage space were to be taken for each block, the amount of storage space would be determined by the block having the highest degree of occupation and this would lead to an inefficient use of the storage space available. Nor is it efficient to store the data base continously without previously having carried out a systematic division, because searching for a given datum in this data base would then become too complicated and too time-consuming. Furthermore, when storing the data, the mutual relationship between the various blocks on the one hand and between the data within the same block on the other hand has also to be taken into account. For example, in the case of the map of Fig. 1, the relation between the roads of the block CI and the data with which the block CII is stored in the mass storage as well as the relation between the block CII and the adjacent blocks must be clear. In the case of a translation dictionary, the words which have the same meaning in the different languages must be stored at adjacent locations; otherwise, too much time is lost when addressing the storage locations. The need to make an efficient use of the available storage space, whilst taking into account the mutual relationship between data and further whilst providing for efficient and rapid searching for a given datum in the mass storage leads to stringent requirements with respect to the division of the database and to the storage thereof in the mass memory. The invention will now be described with reference to an embodiment, in which a road-map is chosen as the database. The invention is not limited at all to this embodiment, however, and can be used for any database which can be divided into blocks having different occupation degrees. Starting from the map shown in Fig. 1, this map is divided according to a predetermined regular division pattern into sixteen blocks having the same dimensions. Each of these blocks designated as main cells, represents the same surface area. After the division into main cells it is determined for each main cell whether the data content in the main cell fits into a storage parcel of the mass memory. A storage parcel is a unit of space in the mass memory having a predetermined capacity, for example one or more successive sectors of a disc memory. For an optical memory, such as a CD-ROM or CD-Interactive case, a storage parcel will contain at least 2K bytes, i.e. the storage capacity of at least one sector on a CD-ROM. An upper limit for the capacity of a storage parcel is, for example, 32K bytes, which represents a quantity of bytes which still can be read out comparatively rapidly (about 0.2 sec for a CD-ROM) and can be stored in a working memory, for example a RAM. Preferably, a capacity of 10K byte is chosen for a storage parcel. As a result, a quantity of information is fetched within a very short time (about 0.07 sec for a CD-ROM), which quantity is sufficient on the one hand to display an image on a display unit and on the other hand to build up a supply of information. If the information comprises a road-map, 10K byte of information is sufficient to tune, in a navigation system, the information supply to the speed at which the vehicle is moving so that the actual position of the vehicle as well as data about the roads to be used by further travelling can be displayed continously on a display screen. The use of storage parcels having a capacity of 10K byte further offers the ability to fetch, if appropriate, several parcels in the same reading operation and to store them in the working memory. The main cells for which the data fit into one storage parcel, such as, for example, the main cell AI, are not subdivided any further. Conversely the main cells for which the data will not fit into one storage parcel, such as, for example, CII, CIII, BII, BIII are divided further according to a further predetermined regular division pattern into smaller blocks, those within the same main cell having the same dimensions. Fig. 2 shows such a division into smaller blocks of the map shown in Fig. 1. The main cells AIII, BII,III,IV and CII III and IV, and DII III and IV are now each divided into four equal parts (so-called region quad tree division): AIIIa1, AIIIa2, AIIIb1, AIIIb2, BIIa1, BIIa2, BIIb1, BIIb2 etc., whereupon it is again determined whether the data content of each of these parts fits into a storage parcel of the mass memory. If it is now assumed that the data content of each of these parts can be stored in one storage parcel, it is not necessary to subdivide it further. If the data content of such a part should not fit into the same storage parcel, it would be further divided into four parts (quad tree division) having equal dimensions and this process would be repeated until the data content of each part thus obtained fits into a storage parcel. The number of parts thus obtained within the same main cell is then always an even power of 2 and each part is square. Such a part, of which the data content fits into a storage parcel, is designated as a base cell for that main cell. A main cell can therefore be divided into a number of base cells, which all have the same dimensions. In contrast, the dimensions of the base cells of different main cells are allowed to differ from each other. However, the division of main cells into base cells may result in the degree of occupation of a number of these base cells being insufficient to occupy a storage parcel substantially completely. In order that this does not cause an inefficient use of the capacity of the mass memory, it is now determined for each base cell thus defined whether the data content thereof is sufficient to occupy a storage parcel substantially completely. For this purpose, it is checked, for example, whether the data content (number of K bytes) of such a base cell is sufficient to occupy at least 75% of the capacity of a storage parcel.If such a base cell comprises an insufficient quantity of data to so occupy substantially completely a storage parcel, the adjacent base cells are checked and it is determined how far one or more adjacent base cells can be grouped together to collect a sufficient quantity of data to substantially completely occupy a storage parcel in the memory. It is found by inspection of the data content of the base cells BIVa1 and a2 can be combined into one data parcel. The base cells BIIIa1 and a2, AIIIa1 and a2 and BIII b1 and b2, CIVb1 and b2, CIIa1 and a2, DIIb1 and b2, DIIIa1 and b1, DIVa1 and b1, DIVa2 and b2 can also be grouped into single dataparcels as shown in Fig. 3. In this manner, a division of the database is thus obtained which leads to an efficient use of the storage space available. The requirements imposed on this grouping of base celles are that each data parcel can only contain base cells from one main cell, and that a same base cell can only belong to one and the same data parcel. This method of dividing a data base can be used not only for road-maps and plans, but also for other databases. For example: in a dictionary, a main cell could be assigned to each letter, and this main cell would then be divided into data parcels; or in a telephone-book, each data parcel could represent one or more underground distribution chambers. Once the database has been divided into data parcels, it has been rendered suitable for storage parcelwise in a mass memory. The problem of efficiently storing the database is thus solved. Besides storing the database parcelwise in a mass memory, it must also be possible to retrieve in an efficient manner a datum from this stored database. Moreover, since a user is accustomed to addressing a database by content, the apparatus for accessing the data of the database in the mass memory must also be capable of addressing this database by content. This requirement means that the mass memory must consequently be addressable by means of virtual addresses. These virtual addresses must then be translated into physical addresses in order to fetch data from the mass memory. The division of the memory content into storage parcels now ensures that such a translation of a virtual address into a physical address can be realized in a simple manner. If there is any mutual relationship between adjacent main cells and/or base cells, as is the case, for example, with road-maps, it is preferable to arrange these main cells according to a predetermined order. The cells are preferably arranged by using a Peano-N key (named after the nineteenth-century Italian mathematician Guiseppe Peano). Fig. 4 shows an example of a Peano-N key which is drawn for the map of Fig. 1. The main cells are enumerated as indicated in Fig. 4. The number 0 is assigned to the main cell at the bottom on the lefthand side (AI), while the number 1 is assigned to the main cell AII, and so on, until the main cell DIV at the top, righthand side, is assigned the number 15. The Peano-N key now defines in what order the main cells are arranged. For example, the main cell to which the number 0 is assigned is the first one in the order, followed by the main cells 1, 4, 5, 2...11, 14, 15. This arrangement affords the advantage that adjacent main cells, such as, for example, 0, 1, 4 and 5, are stored close to one another so that at the transition from reading one to reading the other main cell the access time is reduced, because the displacement of the reading head, when using a disc-shaped memory, remains small. At a predetermined location in the mass memory, a main cell table is now stored, which serves as a reference index for the various main cells. Fig. 5 shows an example of such a main cell table. The table is composed of several parts. Part A comprises an identification of the whole data content of the mass memory. For example, it is stated here that the memory contains a road-map of a given country or a dictionary of a given language. Part B comprises information about the extent of the stored data base; for example in the case of a road-map, the geographic coordinates of the point (XL,YL) situated at the lower corner on the lefthand side and of the point (X,Y) situated at the upper corner on the righthand side of the map are indicated in part B. In the case of a telephone-book, for example the districts over which the database extends are stored in part B by means of numerical codes. A first identifier representing the division pattern is stored in part C. This first identifier denotes, for example for a road-map,the actual surface area or the actual length (LM) of a main cell. In the example of a dictionary, the first identifier indicates, for example, the number of different initial letters per main cell. Part D comprises an ordered list with an address pointer (ADD) for each main cell, each address pointer indicating a storage location at which further information in the relevant main cell is stored. Morever, beside each address pointer (ADD) the storage capacity occupied by the relevant main cell is indicated in sectors or bytes. By means of this table, it is therefore possible to select a given main cell from the database and by use of the address pointer to fetch further information from the selected main cell stored in the mass memory. If, as shown in Fig. 4, use is made of a Peano-N key for ordering the various main cells, the various address pointers as stored in the part D of the main cell table are also arranged in an order obtained by the use of a Peano-N key. The numbers indicated in Fig. 5 correspond to the numbers of the main cells, ordered as shown in Fig. 4. Each address indicator present in the main cell table indicates a storage location at which for the relevant main cell a base cell table as shown in Fig. 6 is stored. As already described, a main cell may be composed of a number of base cells. In this base cell table a base cell identifier (CL) is stored, such as for example, the surface area or the length of a base cell, in the case of a roadmap. The base cell table further comprises a collection of indices (IKL(0)....,IKL(n), with n+ equal to the number of base cells of that main cell), the index IKL(i) (0 ≦ i ≦ n) indicating in which data parcel the base cell i is accommodated. The base cells are preferably also arranged in accordance with a Peano-N key. An index IKL(i) in the base cell table indicates a location in a data parcel list as shown in Fig. 7. The data parcel list comprises a further address pointer for each parcel which forms part of the relevant main cell. The further address pointer indicates the initial address (K.ADD) in the mass memory at which the data of the parcel are stored. The data parcel list also comprises a parcel length (L) in numbers of sectors or bytes for the relevant data parcel. Preferably, the data parcel list is stored at an address in the mass storage which has a predetermined offset from the address at which the associated base cell table is stored such that the data parcel list is stored in the immediate proximity of the base cell table. For each main cell only one data parcel list is available. When using a CD-ROM as the mass memory, this has the advantage that the access time for access to the base cell table and the data parcel list is reduced because no large displacement of the reading head is necessary in this operation. The storage main cell tables and their respective base cell table, together with a data parcel list requires only a small amount of storage space. As an illustration of this fact, a practical example will now be considered, namely a map covering a surface area of 256 × 256 km². This surface area is divided into main cells each covering a surface area of 8 × 8 km² Each main cell is divided again into base cells covering a surface area of 0,5 × 0.5 km² If each main cell covers a surface area of 8 × 8 km², the whole database is divided into 2¹⁰ = 1024 main cells (256 × 256 = (2⁵ . 8).(2⁵ . 8) = 2¹⁰ . 8 . 8). The main cell table consequently comprises 1024 address pointers with associated length of the main cell. In order to store these data, a storage capacity of about 8K bytes is required for the main cell table. Since the base cells cover a surface area of 0.5 × 0.5 km², there are 256 base cells per main cell (8 . 8 = 2⁴ . (0.5). 2⁴ . (0.5)= 2⁸((0.5).(0.5))= 256 .((0.5). (0.5))). The base cell table consequently comprises 256 indices IKL, which corresponds to 256 bytes if one byte is chosen for each index. If it is now assumed that a parcel covers on an average a surface area of 1 . 1 km², there are different parcels per main cell. If a capacity of 10 bytes per storage parcel is chosen for the data from the parcel list, the data parcel list occupies an overall capacity of 64 × 10 = 640 bytes. If it is assumed that during a reading operation four main cells are fetched, it is necessary then to fetch a quantity of data representing the main cell table, four base cell tables and four data parcel lists, amounting to 8K bytes + 4X (640 + 256) bytes ≃ 12K bytes. The operation of fetching 12K bytes from a CD-ROM takes less than 0.1 sec and consequently does not form a large overhead for the system. The operation of addressing a location in the mass memory will now be described with reference to an example, in which it is assumed again that the database stored in a CD-ROM or CD-I represents a road-map of a given country or of a part thereof. It is further assumed that the main cells and the base cells are ordered by using a Peano-N key. The CD-ROM disc is loaded into a reading device forming part of a vehicle navigation system. Figure 8 shows the main elements of an embodiment of a land vehicle navigation system. The system comprises a bus 50 to which a data processing unit 51, for example a microprocessor, is connected even as a working memory (RAM,52) and the mass memory 53. The mass memory is preferably formed by an optical disc (CD-ROM) and its appertaining reading device. Road-map data, navigation data and other control data are stored in the mass memory. To the bus, there are further connected a First 54 and a second 58 input-output interface. An electromagnetic compass 56, wheel sensors 57 and an odometer 55 are connected to the first interface. All these elements 55, 56 and 57 serve to collect data in order to determine the actual position of the vehicle. The determination of the vehicle position is for example described in the article "EVA-Ortungs-und Navigationssystem für Landfahrzeuge" of E.P. Neukirchner, O. Pilsak and D. Schlögl, published in Nachrichtenzeitschrift Bd 36 (1983) Heft 4, pages 214-218. To the second interface 58 there are connected a keyboard 59 and a reproduction unit 60. Further details of how the vehicle position is determined, how the progression of the vehicle is monitored and represented on the reproduction unit are for example described in the international patent application PCT WO 86/02764. After the CD-ROM has been loaded into the reading device, the user inputs via the keyboard 59 its departure point and its destination. This takes place according to a known method, for example by giving the street-names of the departure point the destination. When a street-name is given, the system translates it into coordinates of the road-map. A set of coordinates of the departure point and a set of coordinates of the destination form in themselves two virtual addresses for addressing the CD-ROM. Fig. 9 is a flow diagram of a method in which by means of a virtual address a storage parcel is fetched from the mass memory. This method is carried out under the control of the data-processing unit 31. After the start (STRT, 10) of the program, the virtual address offered (VA = XP,YP,11) is stored in a first register which forms part of its data processing unit and the main cell table is fetched from the mass memory and written into the working memory 52. The information about the extent of the database is now fetched from the main cell table (12). In the example of the road-map, this information comprises the coordinates (XL,YL; XH,YH) as well as the first identifier (LM). This information is stored in a second register. Subsequently, it is checked (13) that this virtual address has a value lying between the limit values indicated in the main cell table. In the example of the road-map, it is then checked whether If the virtual address is not located within these limit values, an error indication is given [ER, 14] . If on the contrary the virtual address is located within these limit values, it is determined in what main cell the virtual address is located. When the main cells are enumerated as indicated in Fig. 4 and are moreover arranged according to a Peano-N key, the number of the main cell within which the virtual address is located and the order of this main cell in the main cell table are determined in a manner as shown below with reference to an example. Let it be assumed that XL = 0, YL = 0 and that XP = 155, YP = 230 and LM = 100. Now consider the main cells as shown in Fig. 4 as elements of a matrix, i.e . arranged in rows and columns. For a given virtual address, the column is first determined (15) by means of the following expression: where [ ] represents the mathematical function INTEGER. In the given example, this becomes The row is then determined in an analogous manner (16). The virtual address is therefore located in the second column (K = 2) and the third row (R = 3). This datum (K = 2, R = 3) is now translated (17) into a main cell number (K = 2, R = 3)→6. In fact, a number is assigned to each combination (K,R) when the main cells are enumerated as indicated in Fig. 3. The main cell having the number 6 is the seventh in the series if an arrangement according to a Peano-N key is used. Consequently, in order to select the main cell in which the virtual address supplied is located, the seventh location in the part D of the main cell table is addressed and the address pointer with associated length stored there is read (18). By using the selected address pointer, an address is not formed by means of an address generator which is part of its microprocessor and which address indicates a location in a mass memory at which the base cell table for the selected main cell is stored (19). The base cell table present at the address formed is now fetched (20) and is written into the working memory. The base cell identifier (CL) is now fetched from this base cell table and further the initial coordinates (XL′, YL′) of the origin of the selected main cell are determined (21). The initial coordinates of the origin of the selected main cell are determined by using the calculated values K and R. XL′ = XL + (K-1)LM YL′ = YL + (R-1)LM In the example given this yields: XL′ = 0 + (2-1)LM ; YL′ = 0 + (3-1)LM ==> XL′ = 100 YL′ = 200 The values for XL′, YL′ and CL are stored in a further register. Subsequently, in the same manner as for the main cells there is determined within which base cell the virtual address is located. For this purpose, the following calculations are carried out. in which K′ and R′ represent the column and the row, respectively, within which the base cell is located. In the example given, this yields, when CL is chosen to be equal to 25: This value (K′,R′) is then translated (24) into a base cell number ((K′,R′)→ 9), which is then converted into a location (9→10) within the base cell table. An index IKL is present at this selected location within the base cell table and this index indicates in what data parcel the selected base cell is accommodated. On the basis of this index, an address is now formed (25), which indicates a location within the data parcel list. The address indicated at this selected location within the parcel list is now fetched (26) and this address is then applied to the mass memory and the content is fetched (27) and loaded into the working memory. Thus, the working memory now contains the information of the data parcel within which the virtual address offered is located. The method is thus completed (28). Preferably, when fetching the base cell table (step 20), the data parcel list is also fetched. For each main cell divided into base cells there is always one base cell table and one parcel list, which are stored, preferably in the proximity of each other, in the mass memory. By simultaneously fetching the base cell table and the data parcel list, an additional access to the mass memory to fetch the data parcel list is avoided and time is saved. A further saving in the time for access to the mass memory can be obtained by fetching several storage parcels in the same reading operation. For this purpose, a predetermined value Q is added to or subtracted from the calculated values K′ and R′ depending upon the direction in which the vehicle is moving. K″ = K′ ± Q R″ = R′ ± Q with furthermore the requirement that and In the example chosen, in which K′ = 3 and R′ = 2, if Q=2, for example, this yields: K″ = 5 and R″ is 4 or K″ = 1 and R″ = 0. As a result, several base cells are selected and, if they belong to different storage parcels, also several storage parcels are selected.

Claims: A method for storing a digital data base in a mass memory (53) whose capacity is divided into a number of storage parcels each having a predetermined storage capacity, said method comprising the following steps: dividing the data base into a number of main cells according to a predetermined regular division pattern; dividing each main cell into a further number of data parcels whereby each data parcel covers a respective part of the main cell, which part has a data content occupying substantially completely the storage capacity of a storage parcel; setting up an identifier table comprising: a) a first identifier identifying said predetermined pattern; b) a second identifier identifying said division into data parcels; c) for each main cell a data parcel list which comprises for each data parcel of that main cell an address pointer indicating at which memory location the respective data parcel is stored; loading into said mass memory the data content of each data parcel at the address indicated by its address pointer and loading said identifier table; characterized in that main cells which comprise more than one data parcel are divided according to a further predetermined regular division pattern into such a number of base cells that the data content of each base cell is storable into a storage parcel and whereby, said parcels being formed by combining each time one or more adjacent base cells of a same main cell, each base cell only belongs to one and the same data parcel, and whereby said identifier table is set up by: a) compiling a main cell table comprising said first identifier and further for each main cell divided into base cells a further address pointer indicating a mass memory location at which a base cell table for that main cell is stored; b) forming for each main cell divided into base cells said second identifier by forming a number of indices, each index indicating a respective data parcel of its appertaining main cell; c) assigning to each base cell the index of the respective data parcel in which it is accommodated; d) compiling for each main cell divided into base cells a base cell table comprising a base cell identifier and a list of the base cells with their assigned index; and whereby each base cell table is loaded at its respective address indicated by its respective further address pointer. A method of addressing for retrieval a data parcel in a mass memory, in which a database is stored parcelwise using a method as claimed in Claim 1, the data parcel to be addressed being identified by a virtual address constituted by a data word belonging to the data content of that data parcel, characterized in that it comprises the following steps: a. fetching the main cell table from the mass memory; b. determining in what main cell the virtual address supplied is located by use of the first identifier and selecting that main cell; c. determining by using the further address pointer of the selected main cell the address at which the base cell table associated with the selected main cell is stored in the mass memory; d. fetching the selected base cell table stored at the determined address; e. determining in which base cell the virtual address supplied is located by use of the base cell identifier from the selected base cell table and selecting this base cell; f. fetching from the base cell table the index assigned to the selected base cell; g. selecting the data parcel indicated by the fetched index from the parcel list associated with the selected main cell; h. determining from the address pointer of the selected parcel a storage address for addressing a data parcel in the mass memory; i. fetching the data content of the selected parcel. A method as claimed in Claim 1, characterized in that the base cells of a same main cell are represented in the base cell table by indicators, which are arranged according to a predetermined order, and that the indices assigned to each base cell indicate a position in the data parcel list. A method as claimed in Claims 1 or 3, characterized in that each parcel list is stored in the mass memory at an address which has a given offset from the storage address of its associated base cell table. A method as claimed in Claim 2, characterized in that each data parcel list is stored at an address in the mass memory, which address has a given offset from the storage address of its associated base cell table, the selected base cell table and the associated data parcel list being fetched during the same reading operation. A method as claimed in Claim 1, characterized in that the memory is divided into storage parcels, each having a storage capacity lying in the range from 2K bytes to 32K bytes. A method as claimed in Claim 1 or 6, characterized in that, in order to determine whether the data content of a base cell or a main cell, as the case may be, is sufficient to occupy substantially completely the storage capacity of a storage parcel, it is determined whether the data content is sufficient to occupy at least 75% of the capacity of the storage parcel. A method as claimed in Claim 1, in which the database is a road-map, characterized in that when the database is divided into main cells which cover equal surface areas, according to the predetermined regular division pattern, and the main cell is divided into base cells covering equal surface areas according to the further predetermined regular division pattern, the number of base cells in each main cell is an even power of 2. A method as claimed in Claim 8, characterized in that the main cells and the base cells each represent a square segment of the road-map, and in that the first identifier and the base cell identifier indicate the lengths of the squares represented by the main cell and the base cell respectively. A method as claimed in any one of Claims 7, 8 or 9, characterized in that the order assigned to the main cells and the base cells is determined using a Peano-N key. A method as claimed in Claim 2, in which the database is a road-map, characterized in that the virtual address is formed using the geographic coordinates associated with the geographic location to be indicated. A method as claimed in any one of Claims 2, 5 or 11, in which the database is a road-map, characterized in that a further virtual address is formed by adding a predetermined value to the virtual address, and in that the storage parcel in which the further virtual address is arranged is also fetched. An optical memory comprising a stored database, the database being divided into main cells according to a regular division pattern, the main cells being divided according to a further regular division pattern into such a number of base cells that the data content of each base cell is storable into a storage parcel of the memory, adjacent base cells being combined to data parcels so that each data parcel occupies a storage parcel substantially completely, the memory further comprising an identifier table comprising: a main cell table comprising a first identifier representing the division pattern and further for each divided main cell an address pointer indicating a memory location where a base cell table for that main cell is stored; for each divided main cell a base cell table comprising a base cell identifier and a list of indices indicating the accommodating data parcel for each base cell; for each divided main cell a data parcel table comprising for each parcel a further address pointer indicating a memory location where the data parcel is stored and further a second identifier representing, by a list of further indices, the division in data parcels. An apparatus for addressing for retrieval a data parcel in a mass memory, by using the method of Claim 2, which apparatus comprises a memory for temporarily storing the virtual address and the main cell table and a first selection unit for selecting the main cell in which the virtual address supplied is located, the first selection unit being arranged to carry out the selection by the use of the identifier from the main cell table, characterized in that the apparatus further comprises: a first address generator for generating on the basis of the further address pointer of the selected main cell the address for the base cell table associated with the selected main cell; a second selection unit for selecting the base cell in which the virtual address supplied is located, this second selection unit being arranged to carry out the selection by the use of the base cell identifier, a third selection unit for selecting on the basis of the index associated with the selected base cell a data parcel from the data parcel list; and a second address generator for generating on the basis of the address pointer of the selected data parcel the address at which that storage parcel is stored. A vehicle navigation system comprising an apparatus as claimed in Claim 14.

Inventors: DRIESSEN, LEONARDUS MARIA HENDRICUS EMIEL, JANSE, CORNELIS PIETER, LAHAYHE, PAUL DOMINIQUE MARIE ETIENNE
Applicants: N.V. PHILIPS' GLOEILAMPENFABRIEKEN
Application year: 1987
Main classification: G06F15
IPC codes: G06F12, G11B27, G06F17, G01C21