CN108965361B - Map data processing method and device for electronic map - Google Patents

Map data processing method and device for electronic map Download PDF

Info

Publication number
CN108965361B
CN108965361B CN201710358765.6A CN201710358765A CN108965361B CN 108965361 B CN108965361 B CN 108965361B CN 201710358765 A CN201710358765 A CN 201710358765A CN 108965361 B CN108965361 B CN 108965361B
Authority
CN
China
Prior art keywords
map
level
sub
data
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710358765.6A
Other languages
Chinese (zh)
Other versions
CN108965361A (en
Inventor
赵洪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710358765.6A priority Critical patent/CN108965361B/en
Publication of CN108965361A publication Critical patent/CN108965361A/en
Application granted granted Critical
Publication of CN108965361B publication Critical patent/CN108965361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a map data processing method and device of an electronic map, which are applied to the technical field of information processing. In the method of this embodiment, the map data processing apparatus of the electronic map determines the second-level attributes of the objects in each of the plurality of maps of the first-level electronic map, and if the second-level attributes of the objects in the first map are the plurality of second-level attributes, the objects in the first map are divided into the objects in the plurality of sub-maps according to the second-level attributes, and then the object data of the plurality of sub-maps are stored in the corresponding second-level data packets, or the object data of the first map are directly stored in the plurality of second-level data packets, respectively. Because the object of each map sheet of the first-level electronic map is not required to be segmented or any object of each map sheet is not required to be segmented, the obtained second-level data packet data cannot be multiplied, and the calculation efficiency of the server cannot be influenced after the second-level data packet data is stored in the server.

Description

Map data processing method and device for electronic map
Technical Field
The invention relates to the technical field of information processing, in particular to a map data processing method and device of an electronic map.
Background
The existing electronic map (map for short) application terminals (such as Tencent maps and the like) can realize an off-line map function, and the off-line map function requires that the map application terminal downloads an off-line map data packet from a server in advance, so that the map application terminal cannot generate any network flow when using the off-line map data packet.
The existing off-line map data packet is generally in a province unit, each province corresponds to one off-line map data packet, each off-line map data packet contains object data of a plurality of map sheets of a provincial electronic map, each map sheet is unique, the coverage range of the map sheets is about 100 square kilometers, and the area is large.
The extraction of each city map mainly adopts the graph-width object segmentation technology, usually adopts a four-fork 2 × 2 segmentation mode to segment 1 large graph-width object of the provincial map into 4 small graph-width objects, and if the coverage area of the small graph-width is still not small enough, then continues the four-fork segmentation of each small graph-width object until the size is proper.
It can be seen that when the object of the existing map is cut, if the cut map is large, the problem that some cities are over-covered and adjacent cities are not fully covered may occur. If the cut map is small in size, the data volume is greatly increased, and the computing efficiency of the map application terminal engine is reduced.
Disclosure of Invention
The embodiment of the invention provides a map data processing method and device of an electronic map, which realize the division of an object of a first map in a plurality of maps of a first-level electronic map according to a second-level attribute.
The first aspect of the embodiments of the present invention provides a method for processing map data of an electronic map, where the method includes:
acquiring a first-level data packet to be processed, wherein the first-level data packet comprises object data of a plurality of maps of a first-level electronic map, and the first-level electronic map is an electronic map with first-level attributes;
respectively determining the second-level attribute of the object of each map sheet according to the object data of the plurality of map sheets;
if the second-level attributes of the object of the first map in the plurality of maps are the plurality of second-level attributes, storing the object data of the first map in second-level data packets corresponding to the plurality of second-level attributes respectively; alternatively, the first and second electrodes may be,
if the second-level attributes of the object of the first map sheet in the plurality of map sheets are the plurality of second-level attributes, dividing the object of the first map sheet into a plurality of objects of the sub map sheets according to the second-level attributes; and respectively storing the object data of the plurality of sub-images into second-level data packets of corresponding second-level attributes, wherein the object of one sub-image is the object of the same second-level attribute.
A second aspect of the embodiments of the present invention provides a method for processing map data of an electronic map, which is applied to a client, where the method includes:
the client acquires a second-level data packet and acquires the corresponding relation between the identification information of the map sheets and the identification information of the second-level attributes, wherein the second-level data packet comprises the object data of a plurality of map sheets of a second-level electronic map, and the object data of any map sheet comprises the identification information of the map sheets; the second-level electronic map is an electronic map with a second attribute;
if the identification information of the first map sheet corresponds to the identification information of the plurality of second-level attributes, the client determines first storage positions of object data of related sub-map sheets in corresponding second-level data packets of the plurality of second-level attributes according to the identification information of the first map sheet;
the client respectively acquires the object data of the related sub-map sheets in the plurality of second-level data packets according to the first storage positions of the object data of the related sub-map sheets in the plurality of second-level data packets;
and acquiring the object data of the first map sheet of a first-level electronic map in a first-level data packet according to the object data of the related sub-map sheets in the plurality of second-level data packets, wherein the first-level electronic map is an electronic map with first-level attributes.
The third aspect of the embodiments of the present invention provides a method for processing map data of an electronic map, which is applied to a client, where the method includes:
the client acquires a second-level data packet and the corresponding relation between the identification information of the map sheets and the identification information of the second-level attributes, wherein the second-level data packet comprises object data of a plurality of map sheets of a second-level electronic map, and the object data of any map sheet comprises the identification information of the map sheets; the second-level electronic map is an electronic map with second-level attributes;
if the identification information of the first map sheet corresponds to the identification information of a plurality of second-level attributes, the client determines a first storage position of the object data of the first map sheet in a second-level data packet of any corresponding second-level attribute according to the identification information of the first map sheet;
and the client acquires the object data of the first picture in any second-stage data packet according to the first storage position.
A fourth aspect of the present invention provides an apparatus for processing map data of an electronic map, including:
the data packet acquisition unit is used for acquiring a first-level data packet to be processed, wherein the first-level data packet comprises object data of a plurality of image frames of a first-level electronic map, and the first-level electronic map is an electronic map with first-level attributes;
the attribute determining unit is used for respectively determining the second-level attribute of the object of each map sheet according to the object data of the plurality of map sheets;
the map data processing unit is used for respectively storing the object data of a first map in a second-level data packet corresponding to a plurality of second-level attributes if the second-level attributes of the object of the first map in the plurality of maps are the plurality of second-level attributes; alternatively, the first and second electrodes may be,
the map data processing unit is used for dividing the object of the first map into a plurality of objects of sub-maps according to the second-level attributes if the second-level attributes of the object of the first map in the plurality of maps are the plurality of second-level attributes; and respectively storing the object data of the plurality of sub-images into second-level data packets of corresponding second-level attributes, wherein the object of one sub-image is the object of the same second-level attribute.
A fifth aspect of the embodiments of the present invention provides a client, including a data obtaining unit and a first map data obtaining unit, or including a data obtaining unit, a first map data obtaining unit and a second map data obtaining unit, where:
the data acquisition unit is used for acquiring a second-level data packet and the corresponding relation between the identification information of the map sheets and the identification information of the second-level attributes, the second-level data packet comprises object data of a plurality of map sheets of a second-level electronic map, and the object data of any map sheet comprises the identification information of the map sheets; the second-level electronic map is an electronic map with a second attribute;
the first map data acquisition unit is used for respectively determining a first storage position of object data of a related sub map in a second level data packet of a plurality of corresponding second level attributes according to the identification information of the first map if the identification information of the first map is determined to correspond to the identification information of the plurality of second level attributes; respectively acquiring the object data of the related sub-maps in the plurality of second-level data packets according to the first storage positions of the object data of the related sub-maps in the plurality of second-level data packets;
or, the first map data obtaining unit is configured to determine, according to the identification information of the first map, a first storage location of object data of the first map in a second-level data packet of any corresponding second-level attribute if the identification information of the first map corresponds to the identification information of multiple second-level attributes; acquiring object data of a first picture in any second-level data packet according to the first storage position;
the second map data obtaining unit is configured to, if the first map data obtaining unit obtains the object data of the relevant sub-map in the multiple second-level data packets, obtain the object data of the first map of the first-level electronic map in the first-level data packet according to the object data of the relevant sub-map in the multiple second-level data packets, where the first-level electronic map is an electronic map with first-level attributes.
A sixth aspect of the present invention provides a storage device, where the storage device includes a plurality of instructions, and the instructions are configured to be loaded by a processor and to perform the method according to the first aspect of the present invention, or to perform the method performed by the client according to the second aspect or the third aspect of the present invention.
A seventh aspect of the embodiments of the present invention further provides a terminal device, including a processor and a storage device, where the processor is configured to implement each instruction;
the storage device is configured to store a plurality of instructions for loading and executing the method according to the first aspect of the embodiment of the present invention, or executing the method according to the second or third aspect of the embodiment of the present invention by the processor.
The eighth aspect of the embodiments of the present invention further provides a server, including a processor and a storage device, where the processor is configured to implement each instruction;
the storage device is configured to store a plurality of instructions, where the instructions are configured to be loaded by the processor and to perform the method according to the first aspect of the embodiments of the present invention.
A ninth aspect of the embodiments of the present invention provides an electronic map data processing system, including a server and a client, where:
the server is a map data processing device of the electronic map according to the fourth aspect of the embodiment of the present invention, or the server according to the eighth aspect of the embodiment of the present invention; the client is the client according to the fifth aspect of the embodiment of the present invention, or the terminal device according to the seventh aspect of the embodiment of the present invention.
It can be seen that, in the method of this embodiment, because the map data processing apparatus of the electronic map may only divide the object of the first map without dividing the object of each map of the first-level electronic map, or may not divide the object of each map of the first-level electronic map at all, the second-level data packet obtained by the map data processing apparatus of the electronic map will not multiply with the division of the map objects, and the calculation efficiency of the server will not be affected after the second-level data packet is stored in the server; in the embodiment of the invention, the data packets of the electronic map with smaller coverage range, namely the second-level data packets, can be stored in the server, so that the server can send some second-level data packets to the client, and does not need to send all data in the data packets of the electronic map with larger coverage range, namely the first-level data packets, to the client, thereby saving the network flow between the server and the client; in some cases, the map data processing device of the electronic map divides the object of the first map according to the second-level attribute of the object of the first map, and the division algorithm is simple and has low requirement on technical personnel.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of an image data processing method of an electronic map according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an apparatus for processing map data of an electronic map to partition objects of a first map in accordance with an embodiment of the present invention;
fig. 3 is a schematic diagram of a map data processing apparatus of an electronic map dividing an overall object of objects of a first map in accordance with an embodiment of the present invention;
fig. 4 is a flowchart of another method for processing map data of an electronic map according to an embodiment of the present invention;
fig. 5 is a flowchart of an image data processing method of an electronic map according to another embodiment of the present invention;
fig. 6 is a flowchart of another method for processing map data of an electronic map according to another embodiment of the present invention;
FIG. 7 is a flowchart of a method for processing map data of an electronic map according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating an example of a compiler obtaining a data packet of a city map from a data packet of a provincial map according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an image data processing apparatus of an electronic map according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a client according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention provides an electronic map data processing method, and particularly relates to a method for enabling a developer to operate an electronic map data processing device to enable the electronic map data processing device to firstly acquire a first-level data packet of a first-level electronic map to be processed, wherein the first-level data packet comprises object data of a plurality of maps of the first-level electronic map, the first-level electronic map is an electronic map with first-level attributes, and then second-level attributes of objects of the maps are respectively determined according to the object data of the maps. If the second-level attributes of the objects of the first map in the plurality of maps are the plurality of second-level attributes, in one case, the map data processing device of the electronic map directly stores the object data of the first map in the second-level data packets corresponding to the plurality of second-level attributes respectively; in another case, the map data processing apparatus of the electronic map divides the object of the first map into a plurality of sub-map objects according to the second-level attributes, and stores the object data of the plurality of sub-maps into second-level data packets of corresponding second-level attributes, respectively, where the object of one sub-map is an object of the same second-level attribute, and the size of any sub-map is the same as the size of the first map.
The map data processing device of the electronic map can then apply the obtained plurality of second-level data packets to a map data processing system of the electronic map comprising the server and the client. Specifically, the map data processing apparatus of the electronic map may store the obtained plurality of second-level data packets in the server, so that the server may send each second-level data packet to the client, and the client may obtain object data of all maps of the first-level electronic map in the first-level data packet according to object data of each map of the second-level electronic map in the second-level data packet, and further process the object data according to the object data of the maps. The map data processing device of the electronic map may be a compiler, the server, or the like.
In the embodiment of the invention, the map data processing device of the electronic map does not need to divide the object of each map of the first-level electronic map, but only need to divide the object of the first map, or the map data processing device of the electronic map does not divide the object of each map of the first-level electronic map, so that the second-level data packet obtained by the map data processing device of the electronic map does not multiply increase along with the division of the object of the map, and the calculation efficiency of the server is not influenced after the second-level data packet is stored in the server; in the embodiment of the invention, the data packet of the electronic map with smaller coverage area, namely the second-level data packet, can be stored in the server, so that the server can send the second-level data packet required by a user to the client, and does not need to send all data in the data packet of the electronic map with larger coverage area, namely the first-level data packet, to the client, thereby saving the network flow between the server and the client; in some cases, the map data processing device of the electronic map divides the object of the first map according to the second-level attribute of the object of the first map, and the division algorithm is simple and has low requirement on technical personnel.
An embodiment of the present invention provides a method for processing map data of an electronic map, which is mainly a method executed by a map data processing apparatus of the electronic map, and a flowchart is shown in fig. 1, where the method includes:
step 101, a map data processing device of an electronic map acquires a first-level data packet to be processed, wherein the first-level data packet comprises object data of a plurality of maps of the first-level electronic map, and the first-level electronic map is an electronic map with first-level attributes.
Generally, a first-level data packet may include object data of a plurality of maps of an electronic map with first-level attributes (i.e., a first-level electronic map), and the coverage of the maps is large. In the embodiment of the present invention, in order to obtain data of a map with a small coverage, the map data processing apparatus of the electronic map may generate a second-level data packet of the electronic map with a second-level attribute (i.e., a second-level electronic map), and then may initiate the process of this embodiment. The first-level electronic map can comprise a plurality of second-level electronic maps.
Wherein, the map refers to a certain range, such as a rectangular area with a certain size; the map of the first-level electronic map refers to various objects included in a certain range in the first-level electronic map, such as objects of roads, greenbelts, water systems, points of Interest (OPI), and the like; the object data of the map frame of the first-level electronic map refers to information of each object included in a certain range in the first-level electronic map, such as identification information of each object, coordinates, attribute information (including second-level attributes), and the like, where the coordinates may be directional.
Step 102, the map data processing device of the electronic map determines the second-level attribute of the object of each map according to the object data of the plurality of maps acquired in the step 101.
For example, the first-level data packet is a data packet of a provincial map, and the second-level attribute is a city attribute, so that if the objects of a certain map sheet of the provincial map all belong to the objects of a certain city a, the second-level attribute of the objects of the map sheet is the city a attribute; if the object of a certain map sheet of the provincial map contains the object of the city A and the object of the city B, the second-level attributes of the object of the map sheet are the city A attribute and the city B attribute. Here, the second level attribute may be a county level attribute, or the like.
In this embodiment, if the second-level attribute of the object in the first map sheet of the plurality of map sheets is a plurality of second-level attributes, the map sheet data processing apparatus of the electronic map may perform steps 103 and 104, and if the second-level attribute of the object in the second map sheet of the plurality of map sheets is a second-level attribute, the map sheet data processing apparatus of the electronic map may perform step 105.
And 103, dividing the object of the first map into a plurality of sub map objects according to the second-level attributes by the map data processing device of the electronic map.
Specifically, the map data processing apparatus of the electronic map may only include the object with the same second-level attribute in one of the divided sub-maps according to the second-level attribute of the object of the first map, so that the object of the first map may be divided into a plurality of sub-maps, and the object of one sub-map is an object included in a certain range in one second-level electronic map (i.e., the electronic map with the second-level attribute). It should be noted that the size of each sub-frame may be the same as that of the first sub-frame, but the objects of each sub-frame are different, and only the object with the corresponding second-level attribute is included in the objects of each sub-frame.
For example, as shown in fig. 2, the objects of the first view include object 1, object 2 and object 3, the server may divide object 1 and object 2 into objects of one sub-view, divide object 3 into objects of another sub-view, and the size of the two sub-views is the same as that of the first view.
And 104, respectively storing the object data of the plurality of sub-maps into second-level data packets of corresponding second-level attributes by the map data processing device of the electronic map.
If the map data processing apparatus of the electronic map is executing the dividing of the first map object in step 103, dividing a whole object in the first map object into n sub-map objects, respectively, and the connection point between adjacent sub-objects is an object connection point, where n is an integer greater than or equal to 2; then, in executing step 104, for any two adjacent sub-maps (e.g. the first sub-map and the second sub-map) in the n sub-maps, the sub-objects of the whole object in the first sub-map and the second sub-map are the first sub-object and the second sub-object, respectively, and the object data of the first sub-map stored in the map data processing apparatus of the electronic map includes: the identification information of the object connection point between the first sub-object and the second sub-object, the second-level attribute of the second sub-object and the corresponding relation of the identification information of the second sub-object;
the object data of the second sub-frame includes: identification information of an object connection point between the first sub-object and the second sub-object, and a correspondence between the second-level attribute of the first sub-object and the identification information of the first sub-object. In this way, the sub-objects of the adjacent sub-maps can be found through the information associated with the identification information of the object connection point in the object data of one sub-map, and the position of the object of each sub-map is further determined, so as to recover the object of the first map in the first-level electronic map.
For example, as shown in fig. 3, a city road in the first map is divided into a road 1 in the sub-map of the city 1 and a road 2 in the sub-map of the city 2, and a connection point between the road 1 and the road 2 is a connection point a, so that the object data of the sub-map of the city 1 includes: the corresponding relation of the identification information of the connection point a, the identification information of the city 2 and the identification information of the road 2; the object data of the child map of city 2 includes: and the corresponding relation of the identification information of the connection point a, the identification information of the city 1 and the identification information of the road 1.
Furthermore, when storing the object data of each sub-map, the map data processing device of the electronic map also stores the identification information of the corresponding sub-map correspondingly, and the identification information of each sub-map may be the same and is the identification information of the first map. And any second-level data packet can also comprise information such as identification information of second-level attributes.
And 105, storing the object data of the second map into a second-level data packet corresponding to the second-level attribute by the map data processing device of the electronic map.
Further, after the map data processing apparatus of the electronic map performs step 104, it may further record a corresponding relationship between the identification information of the plurality of second-level attributes and the identification information of the first map, so that it can be known to which second-level data packets of the second-level attributes the object data of the sub-map into which the object of the first map is divided is stored, and further, the object data of the first map in the first-level data packets can be obtained according to the object data of the sub-map in the second-level data packets.
And after the map data processing device of the electronic map executes the step 105, the corresponding relationship between the identification information of the second-level attribute and the identification information of the second map can be recorded, so that the second-level data packet of which the second-level attribute the object data of the second map is stored in can be known, and the object data of the second map in the first-level data packet can be obtained from the second-level data packet.
The identification information of the second-level attribute may be a specific name or number of the second-level attribute, and the identification information of a certain map sheet may be a map sheet label.
It is understood that the map data processing device of the electronic map can obtain a plurality of second-level data packets of the second-level electronic map (i.e. the electronic map with the second-level attributes) through the above steps, and one second-level data packet includes the object data of a plurality of maps of the corresponding second-level electronic map. The map data processing apparatus of the electronic map may store these second-level data packets in the server, and then the server may send one or more second-level data packets to the client, and the client may implement the map data processing of the electronic map by the following method, where the flowchart is shown in fig. 4, and specifically includes:
step 201, the client acquires a second-level data packet, and acquires a corresponding relationship between the identification information of the map sheets and the identification information of the second-level attributes, wherein the second-level data packet includes object data of a plurality of map sheets of the second-level electronic map, the object data of any map sheet includes the identification information of the map sheet and data of each object of the map sheet in the second-level electronic map, and the second-level data packet further includes information such as the identification information of the second-level attributes. The second-level electronic map is an electronic map with second-level attributes.
Specifically, when the client acquires the second-level data packet, the terminal user may operate the client, so that the client displays a user interface, the user interface includes a selection button for selecting any one of the second-level attributes, and after the user clicks the selection button of one (or more) of the second-level attributes, the client may initiate a request for the second-level data packet of the one (or more) second-level attributes to the server. The server then sends the second level data packet requested by the client to the client.
Further, the client may also obtain a corresponding relationship between the identification information of the map and the identification information of the second-level attributes from the server, so that if the client determines that the identification information of a certain map in a certain second-level data packet is the identification information of the first map, and the identification information corresponds to the identification information of a plurality of second-level attributes, the client performs steps 202 to 204, and if the identification information of a certain map (for example, a second map) corresponds to one identification information of a second-level attribute, the client performs step 205.
Step 202, the client determines the first storage locations of the object data of the related sub-mapsheets in the corresponding second-level data packets of the multiple second-level attributes respectively according to the identification information of the first mapsheet.
If the first view corresponds to a plurality of second-level attributes, in the above embodiment, when the view data processing apparatus of the electronic map stores the second-level data packet, the view data processing apparatus of the electronic map stores the object data of the plurality of sub-views into which the object of the first view is divided, into the second-level data packets corresponding to the second-level attributes, and the object data of each sub-view includes the identification information of each sub-view, which may be the same and all are the identification information of the first view. In this case, when the client executes the step 202, the client may determine the first storage locations of the object data of the associated sub-frames in the second-level data packets of the plurality of second-level attributes according to the identification information of the first frame.
Specifically, the client may determine, according to the identification information of the first map, a position 1 of the first map in a first range (i.e., a range of the first-level electronic map) covered by the first-level data packet, and a position 2 of a second range (i.e., a range of the second-level electronic map) covered by any one of the second-level data packets in the first range is determined, since the size of each related sub-map is the same as the size of the first map, and the identification information of the map is also the same, the client may obtain, according to the relative position between the position 2 and the position 1, a position 3 of any related sub-map in a second range covered by the second-level data packet, and further determine, according to the position 3, a first storage position of the object data of the sub-map.
For example, if the first-level data packet is a data packet of a provincial map, the second-level attribute is a city attribute, the identification information of a map is a map number 1 calculated by latitude and longitude, and the cities including a latitude and longitude are a city a and a city B, assuming that the national electronic map can be divided into 1000 × 1000 grids, the map number 1 can be disassembled into grid positions in the national range, such as 50 th row and 50 th column. If city a ranges from 46 rows and columns to 51 rows and columns, for a total of 6 rows and 6 columns, the storage location of the object data of the map in the data packet of the city a map is obtained according to map number 1 as follows: object data of the (50-46) × 6+ (50-46) ═ 28) th frame; if city B ranges from 49 rows and 49 columns to 58 rows and 57 columns, and 9 rows and 8 columns are total, the storage position of the object data of the map in the data packet of the city B map is obtained according to the map number 1 as follows: object data of the (50-49) × 8+ (50-49) ═ 9) th frame.
Step 203, the client respectively obtains the object data of the related sub-map sheets in the plurality of second-level data packets according to the first storage positions of the object data of the related sub-map sheets in the plurality of second-level data packets.
In step 204, the client obtains the object data of the first map sheet of the first-level electronic map in the first-level data packet according to the object data of the related sub-map sheet in the multiple second-level data packets obtained in step 203, and further performs other calculations, such as distance calculation between objects, according to the object data of the first map sheet. The first-level electronic map is an electronic map with first-level attributes, and the first-level electronic map comprises a plurality of second-level electronic maps.
Since the map data processing apparatus of the electronic map may divide an entire object into a plurality of different sub-maps when dividing the object of the first map, if the first sub-object in the first sub-map and the second sub-object in the object of the second sub-map are divided based on the same entire object by the map data processing apparatus of the electronic map. In this embodiment, when the client executes step 204, the client may find the object data of the second sub-map in another second-level data packet according to the object data of the first sub-map in one second-level data packet, and further obtain the data of the whole object according to the data of the first sub-object in the object data of the first sub-map and the data of the second sub-object in the object data of the second sub-map.
Specifically, if the object data of the first sub-frame includes: identification information of an object connection point between the first sub-object and the second sub-object, and a correspondence between the second-level attribute of the second sub-object and the identification information of the second sub-object. The client can search for another second-level data packet corresponding to the second-level attribute of the second sub-object first; and then in another second-level data packet, searching the corresponding object data of the second sub-map according to the identification information of the object connection point and the identification information of the second sub-object, and further searching the data of the second sub-object in the object data of the second sub-map.
When the data of the whole object is obtained, the data of the whole object composed of the first sub-object and the second sub-object may be obtained, for example, an identifier is determined for the whole object, and the coordinates of the whole object and the like are obtained according to the coordinates of the first sub-object and the second sub-object.
In step 205, the client determines a second storage location of the object data of the second map in the second-level data packet corresponding to the second-level attribute according to the identification information of the second map, and obtains the object data of the second map according to the second storage location.
Thus, through steps 201 to 205, the client may obtain the object data of the first map sheet in the first-level data packet according to the object data of the sub-map sheets of the multiple second-level electronic maps in the second-level data packet, and directly obtain the object data of the second map sheet in the first-level data packet in the second-level data packet, so as to obtain the object data of all the map sheets of the first-level electronic maps in the first-level data packet, and perform certain processing according to the object data of the map sheets.
It can be seen that, in the method of this embodiment, the map data processing apparatus of the electronic map determines the second-level attributes of the objects of each map of the first-level electronic map, if the second-level attributes of the objects of the first map are multiple second-level attributes, the objects of the first map are divided into multiple sub-map objects, and then the object data of the multiple sub-maps are stored in the second-level data packet corresponding to the second-level attributes. According to the method, the objects of each map sheet of the first-level electronic map are not required to be segmented, and only the objects of the first map sheet are required to be segmented, so that a second-level data packet obtained by a map sheet data processing device of the electronic map cannot be multiplied along with the division of the map sheet objects, and the calculation efficiency of a server cannot be influenced after the second-level data packet is stored in the server; in the embodiment of the invention, the data packets (namely the second-level data packets) of the electronic map with smaller coverage range are stored in the server, so that the server can send some second-level data packets to the client, and does not need to send all data in the data packets (namely the first-level data packets) of the electronic map with larger coverage range to the client, thereby saving the network flow between the server and the client; and because the map data processing device of the electronic map divides the object of the first map according to the second-level attribute of the object of the first map, the dividing algorithm is simple, and the requirement on technical personnel is not high.
Another embodiment of the present invention provides a method for processing map data of an electronic map, which is mainly a method executed by the apparatus for processing map data of an electronic map, and a flowchart is shown in fig. 5, where the method includes:
step 301, the map data processing device of the electronic map obtains a first-level data packet to be processed, the first-level data packet includes object data of a plurality of maps of the first-level electronic map, and the first-level electronic map is an electronic map with first-level attributes.
Step 302, the map data processing device of the electronic map determines the second-level attribute of the object of each map according to the object data of a plurality of maps.
In this embodiment, if the second-level attribute of the object in the first map sheet of the plurality of map sheets is a plurality of second-level attributes, the map sheet data processing apparatus of the electronic map may perform step 303, and if the second-level attribute of the object in the second map sheet of the plurality of map sheets is one second-level attribute, the map sheet data processing apparatus of the electronic map may perform step 304.
Step 303, the map data processing apparatus of the electronic map stores the object data of the first map in the second-level data packets corresponding to the plurality of second-level attributes, respectively.
Step 304, the map data processing device of the electronic map stores the object data of the second map into the second level data packet corresponding to the second level attribute.
Further, after the map data processing apparatus of the electronic map performs step 303, it may further record a corresponding relationship between the identification information of the plurality of second-level attributes and the identification information of the first map, so that it can be known to which second-level data packets of the second-level attributes the object data of the first map is stored.
It is understood that the map data processing apparatus of the electronic map through the above steps can obtain second-level data packets of a plurality of second-level electronic maps (i.e. electronic maps of second-level attributes), and one second-level data packet includes object data of a plurality of maps of corresponding second-level electronic maps. The map data processing apparatus of the electronic map may store the second-level data packets in the server, so that the server may send one or more second-level data packets to the client, and the client may implement the map data processing by the following method, where the flowchart is shown in fig. 6, and specifically includes:
step 401, the client obtains a second-level data packet and a corresponding relationship between the identification information of the map sheets and the identification information of the second-level attributes, where the second-level data packet includes object data of multiple map sheets of the second-level electronic map, and the object data of any map sheet includes the identification information of the map sheet in the second-level electronic map and data of each object of the map sheet, and may further include the identification information of the second-level attributes, and the like. The second-level electronic map is an electronic map with second-level attributes.
Specifically, when the client acquires the second-level data packet, the end user may select a certain (or multiple) second attribute(s) through a user interface provided by the client, and the client initiates a request for the second-level data packet with the certain (or multiple) second attribute(s) to the server. The server then sends the second level data packet requested by the client to the client.
Further, the client may also obtain a corresponding relationship between the identification information of the map sheet and the identification information of the second-level attributes from the server, so that if the client determines that the identification information of a certain map sheet (for example, a first map sheet) in the second-level data packet corresponds to the identification information of a plurality of second-level attributes, the client performs step 402, and if the identification information of a certain map sheet (for example, a second map sheet) corresponds to one second-level identification information, the client performs step 403.
Step 402, the client determines a first storage location of the object data of the first map in the second-level data packet of any corresponding second-level attribute according to the identification information of the first map, and acquires the object data of the first map in any second-level data packet according to the first storage location.
In step 403, the client determines a second storage location of the object data of the second map in the second-level data packet of the corresponding second-level attribute according to the identification information of the second map, and acquires the object data of the second map according to the second storage location.
When the client determines the storage location of the object data of any map sheet according to the identification information of the map sheet, the specific method may be as described in the above embodiment, which is not described herein again.
In this way, through steps 401 to 403, the client may directly obtain the object data of the first map sheet and the second map sheet included in the first-level data packet from the second-level data packet, and may further process the object data of these map sheets.
It can be seen that, in the method of this embodiment, the map data processing apparatus of the electronic map determines the second-level attributes of the objects of each map of the first-level electronic map, and if the second-level attributes of the objects of the first map are multiple second-level attributes, the object data of the first map are respectively stored in the second-level data packets of the multiple second-level attributes. According to the method, the objects of all the maps of the first-level electronic map are not required to be segmented, but only the object data of the first map are stored in each corresponding second-level data packet, so that the second-level data packets obtained by the map data processing device of the electronic map are not multiplied, and the calculation efficiency of the server is not influenced after the second-level data packets are stored in the server; in addition, in the embodiment of the invention, the data packet of the electronic map with smaller coverage area, namely the second-level data packet, can be stored in the server, so that the server can send some second-level data packets to the client, and does not need to send all data in the data packet of the electronic map with larger coverage area, namely the first-level data packet, to the client, thereby saving the network flow between the server and the client.
The method of the present invention is mainly applied to an off-line map function in a map application system, where a first-level data packet is a data packet of a provincial map, a second-level attribute is a city attribute, a second-level data packet is a data packet of a city map, and a map data processing device of an electronic map is specifically a compiler. The method of the embodiment comprises the following parts:
(1) generating data packets of a city map by a compiler
In this embodiment, after a developer obtains the data packet of the city map through a compiler and stores the data packet of the city map in the server, the compiler may specifically obtain the data packet of the city map through the following method, where the flowchart is shown in fig. 7, and includes:
step 501, a compiler acquires a data packet of a provincial map, determines city attributes of objects of each map sheet of the provincial map in the data packet, wherein the city attributes of a first map sheet are multiple city attributes if an object in the first map sheet (for example, the first map sheet) is included in multiple cities, and the city attributes of a second map sheet are one city attribute if an object in the first map sheet (for example, the second map sheet) is included in one city.
The compiler performs step 502 for objects of the first view and step 503 for objects of the second view.
Step 502, the compiler divides the object of the first map into a plurality of sub map objects according to the city attributes, and stores the object data of each sub map into the data packet of the city map of the corresponding city attributes. Wherein, only the object data of the corresponding city is included in the object data of each sub-map.
In this embodiment, the plurality of sub-panels are the same in size and are all the size of the first panel; and the identification information of each sub-map is the same, and can be the map number of the first map.
Specifically, if the compiler divides a certain road into road 1 of sub-map 1 and road 2 of sub-map 2 when dividing the object of the first map, and the connection point of road 1 and road 2 is a city connection point, when storing the data packet of the corresponding city map, the compiler includes, in the data packet of the city 1 map to which sub-map 1 belongs: the corresponding relation between the identification information of the city connection point, the identification information of the city 2 (which can be a city code) and the identification information of the road 2; the data packet of the city 2 map to which the sub-map 2 belongs comprises: the corresponding relation between the identification information of the city connection point, the identification information of the city 1 (which may be a city code) and the identification information of the road 1.
As shown in fig. 8, the data packet of the provincial map includes object data of a map sheet a, a map sheet B and a map sheet C of the provincial map, etc., the compiler divides the object of the map sheet B into objects of two sub map sheets B1 and B2, stores the object data of the map sheet a and the sub map sheet B1 into the data packet of the city 1 map, and stores the object data of the map sheet C and the sub map sheet B2 into the data packet of the city 2 map.
Further, the compiler records the corresponding relationship between the identification information of the first map and the identification information of the multiple cities.
In step 503, the compiler stores the object data of the second map into the data packet of the city map corresponding to the city attribute. And the corresponding relation between the identification information of the second map and the identification information of the city to which the second map belongs can be recorded.
The compiler can obtain the data packets of a plurality of city maps through the steps, and the compiler can store the data packets of the city maps, the identification information of each map sheet and the corresponding relation of the identification information of the belonged city in the server.
(2) The client recovers the object data of each map sheet of the provincial map in the data packet of the provincial map according to the object data of each map sheet of the city map in the data packet of the city map
In this embodiment, the client has an offline map function, in which a terminal user may select one or more cities through the client, and the client obtains, from the server, a data packet of a city map corresponding to each city selected by the user, where the data packet of any city map includes object data of multiple map sheets of the city map, and specifically, the object data of any map sheet includes identification information of the map sheet and data of each object of the map sheet, and may further include identification information of the corresponding city.
Therefore, the client determines the storage position of the object data of each map in the data packet of the city map according to the identification information of each map, and if the identification information of a certain map (the identification information is the identification information of the first map) corresponds to the identification information of multiple cities, the client respectively obtains the object data of related sub-maps in the data packet of the multiple city maps according to the storage position of the object data of the first map in the data packet of the multiple city maps, and then obtains the object data of the first map of the provincial map according to the object data of the sub-maps. If the identification information of a certain map (for example, a second map) corresponds to the identification information of a city, the client directly obtains the object data of the second map of the provincial map from the data packet of the corresponding city map according to the storage location of the object data of the second map.
An embodiment of the present invention further provides an apparatus for processing map data of an electronic map, such as the above server or compiler, where a schematic structural diagram of the apparatus is shown in fig. 9, and the apparatus may specifically include:
a data packet obtaining unit 14, configured to obtain a first-level data packet to be processed, where the first-level data packet includes object data of multiple map sheets of a first-level electronic map, and the first-level electronic map is an electronic map with first-level attributes;
an attribute determining unit 10, configured to determine second-level attributes of the objects of the respective maps according to the object data of the multiple maps acquired by the data packet acquiring unit 14;
a map data processing unit 11, configured to, according to the result determined by the attribute determining unit 10, if the second-level attribute of the object of the first map in the multiple maps is multiple second-level attributes, store the object data of the first map in second-level data packets corresponding to the multiple second-level attributes, respectively; alternatively, the first and second electrodes may be,
the map data processing unit 11 is configured to, if the second-level attributes of the object of the first map in the plurality of maps are the plurality of second-level attributes, divide the object of the first map into the objects of the plurality of sub-maps according to the second-level attributes; and respectively storing the object data of the plurality of sub-images into second-level data packets of corresponding second-level attributes. The objects of one sub-map are the objects of the same second-level attribute, and the size of any sub-map is the same as that of the first map.
The map data processing unit 11 is further configured to, according to the result determined by the attribute determining unit 10, store the object data of a second map in the plurality of maps into a second-level data packet corresponding to a second-level attribute if the second-level attribute of the object of the second map is a second-level attribute.
In this embodiment, if the sheet data processing unit 11 divides the object of the first sheet into the objects of a plurality of sub-sheets according to the second-level attributes, respectively divide a whole object of the objects of the first sheet into a sub-object of n sub-sheets, and a connection point between adjacent sub-objects is an object connection point, where n is an integer greater than or equal to 2.
Then, any two adjacent sub-maps in the n sub-maps are a first sub-map and a second sub-map, the sub-objects of the whole object in the first sub-map and the second sub-map are a first sub-object and a second sub-object, respectively, and the object data of the first sub-map stored in the map data processing unit 11 includes: the identification information of the object connection point between the first sub-object and the second sub-object, the second-level attribute of the second sub-object and the corresponding relation of the identification information of the second sub-object; the object data of the second sub-map stored by the map data processing unit 11 includes: identification information of an object connection point between the first sub-object and the second sub-object, and a correspondence between the second-level attribute of the first sub-object and the identification information of the first sub-object.
Further, if the apparatus of this embodiment is a server, the apparatus may further include a recording unit 12 and a sending unit 13, and if the apparatus of this embodiment is a compiler, the apparatus may further include a recording unit 12, where:
the recording unit 12 is configured to record, after the map data processing unit 11 divides the object of the first map into multiple sub-map objects, a corresponding relationship between the identification information of the multiple second-level attributes and the identification information of the first map. The recording unit 12 may further record a corresponding relationship between the identification information of the second-level attribute and the identification information of the second map.
And a sending unit 13, configured to send the multiple second-level data packets stored in the map data processing unit 11 to the client.
In this embodiment, the first-level data packet is a data packet of a provincial map, and the second-level attribute is a city attribute or a county attribute.
It can be seen that, in the apparatus of this embodiment, the attribute determining unit 10 may determine the second-level attributes of the objects of each map sheet of the first-level electronic map, and if the second-level attributes of the objects of the first map sheet are multiple second-level attributes, the map sheet data processing unit 11 divides the objects of the first map sheet into multiple sub-map objects, and then stores the object data of the multiple sub-map objects in the second-level data packets corresponding to the second-level attributes, or the map sheet data processing unit 11 may directly store the object data of the first map sheet in the second-level data packets corresponding to the multiple second-level attributes, respectively. Because the map data processing unit 11 may only divide the objects of the first map without dividing the objects of each map of the first-level electronic map, or may not divide the objects of each map of the first-level electronic map at all, the second-level data packet obtained by the map data processing device of the electronic map will not multiply with the division of the map objects, and the calculation efficiency of the server will not be affected after the second-level data packet is stored in the server; in the embodiment of the invention, the data packets of the electronic map with smaller coverage range, namely the second-level data packets, can be stored in the server, so that the server can send some second-level data packets to the client of the user without sending all data in the data packets of the electronic map with larger coverage range, namely the first-level data packets, to the client, and the network flow between the server and the client is saved; in some cases, when the map data processing unit 11 in the map data processing apparatus of the electronic map divides the object of the first map, the object of the first map is divided according to the second-level attribute of the object of the first map, and the division algorithm is relatively simple and has low requirements on technicians.
Another embodiment of the present invention further provides a client, a schematic structural diagram of which is shown in fig. 10, and the client may specifically include: the data acquisition unit 20 and the first map data acquisition unit 21, or the data acquisition unit 20, the first map data acquisition unit 21 and the second map data unit 22, wherein:
the data packet obtaining unit 20 is configured to obtain a second-level data packet and a corresponding relationship between the identification information of the map sheets and the identification information of the second-level attributes, where the second-level data packet includes object data of a plurality of map sheets of the second-level electronic map, and the object data of any map sheet includes the identification information of the map sheet; the second-level electronic map is an electronic map with a second attribute;
the first map data obtaining unit 21 is configured to, if it is determined that the identification information of the first map corresponds to the identification information of the multiple second-level attributes in the second-level data packet received by the data obtaining unit 20, respectively determine, according to the identification information of the first map, first storage locations of object data of related sub-maps in the multiple corresponding second-level data packets; respectively acquiring the object data of the related sub-map sheets in the plurality of second-level data packets according to the first storage positions of the object data of the related sub-map sheets in the plurality of second-level data packets with the second-level attributes;
or, the first map data obtaining unit 21 is configured to determine, according to the identification information of the first map, a first storage location of object data of the first map in a second-level data packet of any corresponding second-level attribute if the identification information of the first map corresponds to the identification information of multiple second-level attributes; acquiring object data of a first picture in any second-level data packet according to the first storage position;
the second map data obtaining unit 22 is configured to, if the first map data obtaining unit 21 obtains the object data of the relevant sub-map in the multiple second-level data packets, obtain the object data of the first map of the first-level electronic map in the first-level data packet according to the object data of the relevant sub-map in the multiple second-level data packets, where the first-level electronic map is an electronic map with first-level attributes.
Specifically, if, in the related sub-maps, a first sub-object in the first sub-map and a second sub-object in the object of the second sub-map are divided by the server based on the same whole object, the second map data obtaining unit 22 may specifically find the object data of the second sub-map in another second-level data packet according to the object data of the first sub-map in one second-level data packet, and obtain the data of the whole object according to the data of the first sub-object in the object data of the first sub-map and the data of the second sub-object in the object data of the second sub-map.
Further, the first map data obtaining unit 21 is further configured to determine, if the identification information of the second map corresponds to the identification information of one second-level attribute, a second storage location of the second map in the second-level data packet corresponding to the second-level attribute according to the identification information of the second map, and obtain the object data of the second map according to the second storage location.
In this embodiment, the first-level data packet is a data packet of a provincial map, and the second-level attribute is a city attribute or a county attribute.
In the client of this embodiment, the first map data obtaining unit 21 or the second map data obtaining unit 22 may obtain the object data of the first map in the first-level data packet, and the first map data obtaining unit 21 may directly obtain the object data of the second map in the first-level data packet in the second-level data packet, so as to obtain the object data of all the maps of the first-level electronic map in the first-level data packet, and further process the object data of the maps. Since the data packets of the electronic map with a smaller coverage area, i.e., the second-level data packets, are stored in the server, the data obtaining unit 20 in the client in this embodiment can obtain some second-level data packets from the server, instead of obtaining all data in the data packets of the electronic map with a larger coverage area, i.e., the first-level data packets, thereby saving network traffic between the server and the client in this embodiment.
Embodiments of the present invention also provide a server, which is schematically shown in fig. 11, and the server may generate a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 30 (e.g., one or more processors) and a memory 31, and one or more storage media 32 (e.g., one or more mass storage devices) for storing applications 321 or data 322. The memory 31 and the storage medium 32 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 32 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 30 may be configured to communicate with the storage medium 32 to execute a series of instruction operations in the storage medium 32 on a server.
Specifically, the application programs 321 stored in the storage medium 32 include an application program for processing the map data of the electronic map, and the program may include the packet obtaining unit 14, the attribute determining unit 10, the map data processing unit 11, the recording unit 12, and the sending unit 13 in the map data processing apparatus of the electronic map, which is not described herein again. Further, the central processor 30 may be configured to communicate with the storage medium 32, and execute a series of operations corresponding to an application program for processing the map data of the electronic map stored in the storage medium 32 on the server.
The server may also include one or more power supplies 33, one or more wired or wireless network interfaces 34, one or more input-output interfaces 35, and/or one or more operating systems 323, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
The steps executed by the map data processing apparatus of the electronic map described in the above method embodiment may be based on the structure of the server shown in fig. 11.
An embodiment of the present invention further provides a terminal device, which has a structure similar to that of the server shown in fig. 11, except that the application program stored in the storage medium of the terminal device includes an application program for processing the map data of the electronic map, and the application program may include the data obtaining unit 20, the first map data obtaining unit 21, and the second map data obtaining unit 22 in the client, which is not described herein again. Further, the central processor may be configured to communicate with the storage medium, and execute a series of operations corresponding to an application program for map data processing of the electronic map stored in the storage medium on the terminal device.
An embodiment of the present invention further provides another terminal device, such as a compiler, which has a structure similar to that of the server shown in fig. 11, except that the application program stored in the storage medium of the terminal device includes an application program for processing map data of an electronic map, and the application program may include a data packet obtaining unit 14, an attribute determining unit 10, a map data processing unit 11, a recording unit 12, and a sending unit 13 in the data processing apparatus of the map, which are not described herein again. Further, the central processor may be configured to communicate with the storage medium, and execute a series of operations corresponding to an application program for map data processing of the electronic map stored in the storage medium on the terminal device.
The embodiment of the invention also provides a storage device, which comprises a plurality of instructions, and the instructions are used for being loaded by the processor and executing the method executed by the map data processing device of the electronic map in the embodiment.
An embodiment of the present invention further provides another storage device, where the storage device includes a plurality of instructions, and the instructions are used for being loaded by a processor and executing the method executed by the client in the foregoing embodiment.
The embodiment of the invention also provides a data processing system of the map sheet, which comprises a server and a client, wherein:
the structure of the server may be as the map data processing device of the electronic map shown in fig. 9 or as the server shown in fig. 11, and the structure of the client may be as the structure of the client shown in fig. 10, which is not described herein again.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The method and the device for processing map data of the electronic map provided by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A method for processing map data of an electronic map is characterized by comprising the following steps:
acquiring a first-level data packet to be processed, wherein the first-level data packet comprises object data of a plurality of maps of a first-level electronic map, and the first-level electronic map is an electronic map with first-level attributes;
respectively determining the second-level attribute of the object of each map sheet according to the object data of the plurality of map sheets; the map sheet is a rectangular area with a certain size, and the map sheet object of the first-level electronic map is each object included in a certain range in the first-level electronic map;
if the second-level attributes of the object of the first map in the plurality of maps are the plurality of second-level attributes, storing the object data of the first map in second-level data packets corresponding to the plurality of second-level attributes respectively, wherein the first-level data packets are data packets of provincial maps, so that the second-level data packets are data packets of city maps, and the second-level attributes are city attributes; alternatively, the first and second electrodes may be,
if the second-level attributes of the object of the first map sheet in the plurality of map sheets are the plurality of second-level attributes, dividing the object of the first map sheet into a plurality of objects of the sub map sheets according to the second-level attributes; respectively storing the object data of the plurality of sub-views into second-level data packets of corresponding second-level attributes, wherein the object of one sub-view is the object of the same second-level attribute;
and if the second-level attribute of the object of the second map in the plurality of maps is one second-level attribute, storing the object data of the second map into a second-level data packet corresponding to the second-level attribute.
2. The method according to claim 1, wherein when the object of the first map-sheet is divided into the objects of a plurality of sub-map-sheets according to the second-level attributes, a whole object in the object of the first map-sheet is divided into a sub-object in n sub-map-sheets, and the connection point between adjacent sub-objects is an object connection point, wherein n is an integer greater than or equal to 2;
any two adjacent sub-maps in the n sub-maps are a first sub-map and a second sub-map, and the sub-objects of the whole object in the first sub-map and the second sub-map are a first sub-object and a second sub-object, respectively, so that the object data of the first sub-map includes: the identification information of the object connection point between the first sub-object and the second sub-object, the second-level attribute of the second sub-object and the corresponding relation of the identification information of the second sub-object;
the object data of the second sub-frame includes: identification information of an object connection point between the first sub-object and the second sub-object, and a correspondence between the second-level attribute of the first sub-object and the identification information of the first sub-object.
3. The method of claim 1, wherein the method further comprises:
and recording the corresponding relation between the identification information of the plurality of second-level attributes and the identification information of the first map sheet.
4. A map data processing method of an electronic map is applied to a client, and the method comprises the following steps:
the client acquires a second-level data packet and the corresponding relation between the identification information of the map sheets and the identification information of the second-level attributes, wherein the second-level data packet comprises object data of a plurality of map sheets of a second-level electronic map, and the object data of any map sheet comprises the identification information of the map sheets; the second-level electronic map is an electronic map with second-level attributes;
the second-level data packet is formed according to second-level attributes of objects of multiple maps of a first-level electronic map in a first-level data packet, the first-level data packet comprises object data of the multiple maps of the first-level electronic map, the first-level electronic map is an electronic map with the first-level attributes, the maps are rectangular areas with a certain size, and the objects of the maps of the first-level electronic map are all things included in a certain range in the first-level electronic map;
if the identification information of the first map sheet corresponds to the identification information of a plurality of second-level attributes, the client determines a first storage position of the object data of the first map sheet in a second-level data packet of any corresponding second-level attribute according to the identification information of the first map sheet;
the client acquires object data of the first picture from any second-level data packet according to the first storage position;
if the identification information of the second map sheet corresponds to the identification information of one second-level attribute, the client determines a second storage position of the object data of the second map sheet in a second-level data packet of the corresponding second-level attribute according to the identification information of the second map sheet, and acquires the object data of the second map sheet according to the second storage position;
the first-level data packet is a data packet of a provincial map, so that the second-level data packet is a data packet of a city map, and the second-level attribute is a city attribute.
5. An apparatus for processing map data of an electronic map, comprising:
the data packet acquisition unit is used for acquiring a first-level data packet to be processed, wherein the first-level data packet comprises object data of a plurality of image frames of a first-level electronic map, and the first-level electronic map is an electronic map with first-level attributes;
the attribute determining unit is used for respectively determining the second-level attribute of the object of each map sheet according to the object data of the plurality of map sheets; the map sheet is a rectangular area with a certain size, and the map sheet object of the first-level electronic map is each object included in a certain range in the first-level electronic map; the first-level data packet is a data packet of a provincial map, so that the second-level data packet is a data packet of a city map, and the second-level attribute is a city attribute;
the map data processing unit is used for respectively storing the object data of a first map in second-level data packets corresponding to a plurality of second-level attributes if the second-level attributes of the object of the first map in the plurality of maps are the plurality of second-level attributes; alternatively, the first and second electrodes may be,
the map data processing unit is used for dividing the object of the first map into a plurality of objects of sub-maps according to the second-level attributes if the second-level attributes of the object of the first map in the plurality of maps are the plurality of second-level attributes; respectively storing the object data of the plurality of sub-views into second-level data packets of corresponding second-level attributes, wherein the object of one sub-view is the object of the same second-level attribute;
the map data processing unit is further configured to store the object data of a second map in the plurality of maps into a second level data packet corresponding to a second level attribute if the second level attribute of the object of the second map is a second level attribute.
6. The apparatus of claim 5, wherein if said sheet data processing unit divides the object of the first sheet into the objects of a plurality of sub-sheets according to the second-level attributes, a whole object of the objects of the first sheet is divided into sub-objects of n sub-sheets, respectively, and the connection point between adjacent sub-objects is an object connection point, said n being an integer greater than or equal to 2;
any two adjacent sub-maps in the n sub-maps are a first sub-map and a second sub-map, and the sub-objects of the whole object in the first sub-map and the second sub-map are a first sub-object and a second sub-object, respectively, so that the object data of the first sub-map stored in the map data processing unit includes: the identification information of the object connection point between the first sub-object and the second sub-object, the second-level attribute of the second sub-object and the corresponding relation of the identification information of the second sub-object;
the object data of the second sub-map stored by the map data processing unit includes: identification information of an object connection point between the first sub-object and the second sub-object, and a correspondence between the second-level attribute of the first sub-object and the identification information of the first sub-object.
7. The apparatus of claim 6, further comprising:
and the recording unit is used for recording the corresponding relation between the identification information of the plurality of second-level attributes and the identification information of the first map sheet.
8. A storage device comprising instructions for loading and executing the method of any of claims 1 to 4 by a processor.
9. A terminal device, comprising a processor and a storage device, wherein the processor is configured to implement instructions;
the memory device to store a plurality of instructions for loading by the processor and performing the method of claim 4.
10. A server comprising a processor and a storage device, the processor configured to implement instructions;
the storage device to store a plurality of instructions to be loaded by the processor and to perform the method of any of claims 1 to 3.
11. A data processing system for a pictorial representation, comprising a server and a client, wherein:
the server is a data processing apparatus of a map according to any of claims 5 to 7, or a server according to claim 10;
the client is a terminal device according to claim 9.
CN201710358765.6A 2017-05-19 2017-05-19 Map data processing method and device for electronic map Active CN108965361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710358765.6A CN108965361B (en) 2017-05-19 2017-05-19 Map data processing method and device for electronic map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710358765.6A CN108965361B (en) 2017-05-19 2017-05-19 Map data processing method and device for electronic map

Publications (2)

Publication Number Publication Date
CN108965361A CN108965361A (en) 2018-12-07
CN108965361B true CN108965361B (en) 2021-02-02

Family

ID=64462101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710358765.6A Active CN108965361B (en) 2017-05-19 2017-05-19 Map data processing method and device for electronic map

Country Status (1)

Country Link
CN (1) CN108965361B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367649B (en) * 2018-12-26 2024-03-01 北京四维图新科技股份有限公司 High-precision map data parallel processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1653506A (en) * 2002-05-17 2005-08-10 株式会社查纳位资讯情报 Map data product, map data processing program product, map data processing method, and map data processing device
CN103295464A (en) * 2012-02-23 2013-09-11 北京四维图新科技股份有限公司 Method and device for data management of electronic map and method and device for generation of electronic map
CN105122332A (en) * 2013-04-16 2015-12-02 株式会社电装 Map difference data delivery system, map difference data delivery device, map data holding device, update management server, and map difference extraction server
CN105631038A (en) * 2016-01-14 2016-06-01 上海博泰悦臻网络技术服务有限公司 Generation method and system of navigation map as well as electronic equipment with system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1653506A (en) * 2002-05-17 2005-08-10 株式会社查纳位资讯情报 Map data product, map data processing program product, map data processing method, and map data processing device
CN103295464A (en) * 2012-02-23 2013-09-11 北京四维图新科技股份有限公司 Method and device for data management of electronic map and method and device for generation of electronic map
CN105122332A (en) * 2013-04-16 2015-12-02 株式会社电装 Map difference data delivery system, map difference data delivery device, map data holding device, update management server, and map difference extraction server
CN105631038A (en) * 2016-01-14 2016-06-01 上海博泰悦臻网络技术服务有限公司 Generation method and system of navigation map as well as electronic equipment with system

Also Published As

Publication number Publication date
CN108965361A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
US9733094B2 (en) Hybrid road network and grid based spatial-temporal indexing under missing road links
CN109478184B (en) Identifying, processing, and displaying clusters of data points
CN104080054B (en) A kind of acquisition methods and device of exception point of interest
KR20160010278A (en) Method and apparatus for displaying point of interest
CN108229740B (en) Method and device for determining business circle boundary, server and storage medium
CN107958451A (en) Vision high accuracy map production method and device
CN103377053A (en) Method, device and system for controlling application
KR101757124B1 (en) Cell-based inverted list indexing method for spatial-temporal keyword query
CN104239453A (en) Data processing method and device
CN108965361B (en) Map data processing method and device for electronic map
CN114359231A (en) Parking space detection method, device, equipment and storage medium
CN108874835A (en) Information-pushing method and device
CN109492033A (en) A kind of creation of family tree, methods of exhibiting and device
CN105119743A (en) Acquisition method of user behavior intention and apparatus
CN109308674A (en) Processing method, device and the terminal device of Order Address
CN108133234B (en) Sparse subset selection algorithm-based community detection method, device and equipment
CN106612197B (en) Network thumbnail generation method and equipment
CN113706222B (en) Store site selection method and device
CN116091715A (en) POI (point of interest) point aggregation method based on three-dimensional GIS engine
CN106611100B (en) User behavior analysis method and device
CN113918796A (en) Information searching method, device, server and storage medium
CN110070371B (en) Data prediction model establishing method and equipment, storage medium and server thereof
CN112527943A (en) Map rendering method, map rendering device, map rendering equipment and storage medium
CN102708109B (en) Raster data reading method and device and raster data writing method and device
CN112263836A (en) Virtual scene processing method and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant