CN108965361A - A kind of the map sheet data processing method and device of electronic map - Google Patents
A kind of the map sheet data processing method and device of electronic map Download PDFInfo
- Publication number
- CN108965361A CN108965361A CN201710358765.6A CN201710358765A CN108965361A CN 108965361 A CN108965361 A CN 108965361A CN 201710358765 A CN201710358765 A CN 201710358765A CN 108965361 A CN108965361 A CN 108965361A
- Authority
- CN
- China
- Prior art keywords
- map
- level
- map sheet
- data
- sheet
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
- H04L67/5651—Reducing the amount or size of exchanged application data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols 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 the map sheet data processing methods and device of electronic map, are applied to technical field of information processing.In the method for the present embodiment, the map sheet data processing equipment of electronic map can determine whether the second level attribute of the object of each map sheet in multiple map sheets of first order electronic map, if the second level attribute of the object of the first map sheet is multiple second level attributes, it is then the object of multiple subgraph width according to second level Attribute transposition by the object of the first map sheet, the object data of this multiple subgraph width is stored again into corresponding second level data packet, or directly stores the object data of the first map sheet respectively in multiple second level data packets.Due to not having to the object progress cutting to each map sheet of first order electronic map, or any cutting is not carried out to the object of each map sheet, so that obtained second level packet data will not exponentially increase, after being stored into server, the computational efficiency of server will not be influenced.
Description
Technical field
The present invention relates to technical field of information processing, in particular to the map sheet data processing method and dress of a kind of electronic map
It sets.
Background technique
Existing electronic map (abbreviation map) application terminal (such as Tencent's map etc.) can realize offline map function
Can, which needs map application terminal to download offline map data packet, such map application from server in advance
Terminal will not generate any network flow when using offline map data packet.
Existing offline map data packet is usually the corresponding offline map data packet of each province as unit of saving, often
Contain the object data of several map sheets of provincial electronic map in a offline map data packet, each map sheet be it is unique,
For the coverage area of map sheet probably at 100 square kilometres or so, area is larger.
The object segmentation technique that map sheet is mainly used for the extraction of each city map, generallys use four forks i.e. 2 × 2
Slit mode, by the object cutting of 1 of provincial map big map sheet be 4 small map sheets object, if this small map sheet is covered
Lid range is still not small enough, then the object of each small map sheet is continued four fork cuttings again, until switch to size it is suitable until.
As it can be seen that in the object cutting of existing map sheet, if the map sheet being cut into is larger, it is possible to certain city mistakes occur
Degree covering, and adjacent cities cover infull problem.If the map sheet being cut into is smaller, data volume just be will increase dramatically, and be led
Map application terminal engine computational efficiency is caused to reduce.
Summary of the invention
The embodiment of the present invention provides the map sheet data processing method and device of a kind of electronic map, realizes according to the second level
Attribute divides the object of the first map sheet in multiple map sheets of first order electronic map.
First aspect of the embodiment of the present invention provides a kind of map sheet data processing method of electronic map, which comprises
First order data packet to be processed is obtained, includes multiple figures of first order electronic map in the first order data packet
The object data of width, the first order electronic map are the electronic map of first order attribute;
Determine the second level attribute of the object of each map sheet respectively according to the object data of the multiple map sheet;
If the second level attribute of the object of the first map sheet is multiple second level attributes in the multiple map sheet, multiple the
The object data of first map sheet is stored in the corresponding second level data packet of secondary attributes respectively;Alternatively,
If the second level attribute of the object of the first map sheet is multiple second level attributes in the multiple map sheet, according to second
The object of first map sheet is divided into the object of multiple subgraph width by grade attribute;The object data of the multiple subgraph width is stored up respectively
It is stored in the second level data packet of corresponding second level attribute, wherein the object of a sub- map sheet is pair of same second level attribute
As.
Second aspect of the embodiment of the present invention provides a kind of map sheet data processing method of electronic map, is applied to client,
The described method includes:
The client obtains second level data packet, and obtains the identification information of map sheet and the identification information of second level attribute
Corresponding relationship, include the object data of multiple map sheets of second level electronic map, any map sheet in the second level data packet
Object data include map sheet identification information;The second level electronic map is the electronic map of the second attribute;
If the identification information of the first map sheet corresponds to the identification information of multiple second level attributes, the client is according to
The identification information of first map sheet determines pair of correlator map sheet in the second level data packet of corresponding multiple second level attributes respectively
First storage location of image data;
The client stores position according to first of the object data of correlator map sheet in the multiple second level data packet
It sets, obtains the object data of correlator map sheet in the multiple second level data packet respectively;
According to the object data of correlator map sheet in the multiple second level data packet, obtain first in first order data packet
The object data of first map sheet of grade electronic map, the first order electronic map are the electronic map of first order attribute.
The third aspect of the embodiment of the present invention provides a kind of map sheet data processing method of electronic map, is applied to client,
The described method includes:
The client obtains pair of the identification information of the identification information and second level attribute of second level data packet and map sheet
It should be related to, the object data of multiple map sheets in the second level data packet including second level electronic map, wherein any map sheet
Object data include map sheet identification information;The second level electronic map is the electronic map of second level attribute;
If the identification information of the first map sheet corresponds to the identification information of multiple second level attributes, the client is according to
The identification information of first map sheet determines the object data of the first map sheet in the second level data packet of corresponding any second level attribute
The first storage location;
The client obtains the first map sheet in any second level data packet according to first storage location
Object data.
Fourth aspect of the embodiment of the present invention provides a kind of map sheet data processing equipment of electronic map, comprising:
Data packet acquiring unit includes for obtaining first order data packet to be processed, in the first order data packet
The object data of multiple map sheets of level-one electronic map, the first order electronic map are the electronic map of first order attribute;
Attribute determining unit, second of the object for determining each map sheet respectively according to the object data of the multiple map sheet
Grade attribute;
Map sheet data processing unit, if the second level attribute for the object of the first map sheet in the multiple map sheet is more
A second level attribute stores the number of objects of first map sheet respectively in the corresponding second level data packet of multiple second level attributes
According to;Alternatively,
The map sheet data processing unit, if the second level attribute for the object of the first map sheet in the multiple map sheet
For multiple second level attributes, the object of the first map sheet is divided into the object of multiple subgraph width according to second level attribute;It will be described
The object data of multiple subgraph width is stored into respectively in the second level data packet of corresponding second level attribute, wherein a sub- map sheet
Object be same second level attribute object.
The 5th aspect of the embodiment of the present invention provides a kind of client, including data capture unit and the first map sheet data acquisition
Unit, alternatively, including data capture unit, the first map sheet data capture unit and the second map sheet data capture unit, in which:
The data capture unit, for obtaining the identification information and second level attribute of second level data packet and map sheet
The corresponding relationship of identification information includes the object data of multiple map sheets of second level electronic map in the second level data packet,
The object data of any map sheet includes the identification information of map sheet;The second level electronic map is the electronic map of the second attribute;
The first map sheet data capture unit, for if it is determined that the identification information of the first map sheet corresponds to multiple second level
The identification information of attribute determines the second level of corresponding multiple second level attributes according to the identification information of first map sheet respectively
First storage location of the object data of correlator map sheet in data packet;According to subgraph related in the multiple second level data packet
First storage location of the object data of width obtains the number of objects of correlator map sheet in the multiple second level data packet respectively
According to;
Alternatively, the first map sheet data capture unit, if the identification information for the first map sheet corresponds to multiple second
The identification information of grade attribute, the second series of corresponding any second level attribute is determined according to the identification information of first map sheet
According to the first storage location of the object data of the first map sheet in packet;Any second level is obtained according to first storage location
The object data of the first map sheet in data packet;
The second map sheet data capture unit, if obtaining multiple second for the first map sheet data capture unit
The object data of correlator map sheet in grade data packet, according to the number of objects of correlator map sheet in the multiple second level data packet
According to the object data of first map sheet of first order electronic map in acquisition first order data packet, the first order is electronically
Figure is the electronic map of first order attribute.
The 6th aspect of the embodiment of the present invention provides a kind of storage equipment, and the storage equipment includes a plurality of instruction, the finger
It enables for as processor load and executes the method as described in first aspect of the embodiment of the present invention, or executes such as embodiment of the present invention
Method performed by client described in second aspect or the third aspect.
The 7th aspect of the embodiment of the present invention also provides a kind of terminal device, including processor and storage equipment, the processing
Device, for realizing each instruction;
The storage equipment, for storing a plurality of instruction, described instruction by the processor for being loaded and executing this hair
Method described in bright embodiment first aspect, or execute the method as described in second aspect of the embodiment of the present invention or the third aspect.
Eighth aspect of the embodiment of the present invention also provides a kind of server, including processor and storage equipment, the processor,
For realizing each instruction;
The storage equipment, for storing a plurality of instruction, described instruction by the processor for being loaded and executing this hair
Method described in bright embodiment first aspect.
The 9th aspect of the embodiment of the present invention provides a kind of map sheet data processing system of electronic map, including server and visitor
Family end, in which:
The server is the map sheet data processing equipment of the electronic map as described in fourth aspect of the embodiment of the present invention, or
Server as described in eighth aspect of the embodiment of the present invention;The client be such as the embodiment of the present invention the 5th in terms of as described in visitor
Family end, or the terminal device as described in terms of the embodiment of the present invention the 7th.
As it can be seen that in the method for the present embodiment, since the map sheet data processing equipment of electronic map can not have to first
The object of each map sheet of grade electronic map carries out cutting, and only divides to the object of the first map sheet, or not right
The object of each map sheet of first order electronic map carries out any cutting, so that the map sheet data processing equipment of electronic map obtains
Second level data packet will not exponentially increase with the division of map sheet object, will not influence to take after being stored into server
The computational efficiency of business device;And in the embodiment of the present invention, the data of the lesser electronic map of coverage area can be stored in the server
Packet is second level data packet, and certain second level data packets can be sent to client by such server, and not have to that model will be covered
The total data enclosed in the data packet i.e. first order data packet of biggish electronic map is sent to client, save server with
Network flow between client;And in some cases, the map sheet data processing equipment of electronic map is to the first map sheet
It is to be divided according to the second level attribute of the object of the first map sheet when object is divided, partitioning algorithm is fairly simple, right
Technical staff is of less demanding.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the map sheet data processing method of electronic map provided by one embodiment of the present invention;
Fig. 2 is that the map sheet data processing equipment of electronic map in one embodiment of the invention divides the object of the first map sheet
Schematic diagram;
Fig. 3 is that the map sheet data processing equipment of electronic map in one embodiment of the invention divides in the object of the first map sheet
The schematic diagram of a certain whole object;
Fig. 4 is the flow chart of the map sheet data processing method of another electronic map provided by one embodiment of the present invention;
Fig. 5 is a kind of flow chart of the map sheet data processing method for electronic map that another embodiment of the present invention provides;
Fig. 6 is the process of the map sheet data processing method for another electronic map that another embodiment of the present invention provides
Figure;
Fig. 7 is a kind of flow chart of the map sheet data processing method for electronic map that Application Example of the present invention provides;
Fig. 8 is that compiler from the data packet of provincial map obtains the data packet of city map in Application Example of the present invention
Schematic diagram;
Fig. 9 is a kind of structural schematic diagram of the map sheet data processing equipment of electronic map provided in an embodiment of the present invention;
Figure 10 is a kind of structural schematic diagram of client provided in an embodiment of the present invention;
Figure 11 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove
Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any
Deformation, it is intended that cover not exclusively include, for example, containing the process, method of a series of steps or units, system, production
Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this
A little process, methods, the other step or units of product or equipment inherently.
The embodiment of the present invention provides a kind of map sheet data processing method of electronic map, and specifically, developer can lead to
Cross operation electronic map map sheet data processing equipment so that the map sheet data processing equipment of electronic map first obtain it is to be processed
The first order data packet of first order electronic map, pair of multiple map sheets in first order data packet including first order electronic map
Image data, first order electronic map are the electronic map of first order attribute, are then distinguished according to the object data of multiple map sheets true
The second level attribute of the object of fixed each map sheet.If the second level attribute of the object of the first map sheet is multiple second in multiple map sheets
Grade attribute, in one case, the map sheet data processing equipment of electronic map is directly in multiple second level attributes corresponding second
The object data of the first map sheet is stored in grade data packet respectively;In another case, the map sheet data processing dress of electronic map
The object of the first map sheet can be divided into according to the second level attribute objects of multiple subgraph width by setting, and by the object of multiple subgraph width
Data are stored into respectively in the second level data packet of corresponding second level attribute, wherein the object of a sub- map sheet is same second
The object of grade attribute, the size of any subgraph width are identical as the size of the first map sheet.
Then the map sheet data processing equipment of electronic map can by obtained multiple second level data packets be applied to include
In the map sheet data processing system of the electronic map of server and client side.Specifically, the map sheet data processing dress of electronic map
Obtained multiple second level data packets can be stored into server by setting, and such server can send out each second level data packet
Client is given, and client can be obtained according to the object data of each map sheet of second level electronic map in the data packet of the second level
The object data of all map sheets of first order electronic map into first order data packet, and then according to the object data of these map sheets
It is further processed.It should be noted that the map sheet data processing equipment of above-mentioned electronic map can for compiler or on
The server etc. stated.
In the embodiment of the present invention, since the map sheet data processing equipment of electronic map can not have to first order electronic map
The object of each map sheet carry out cutting, and only the object of the first map sheet is divided or the map sheet of electronic map
Data processing equipment does not carry out any cutting to the object of each map sheet of first order electronic map, so that the map sheet of electronic map
The second level data packet that data processing equipment obtains will not exponentially increase as the object of map sheet divides, and service when being stored into
The computational efficiency of server will not be influenced after device;And in the embodiment of the present invention, it is smaller that coverage area can be stored in the server
Electronic map data packet, that is, second level data packet, the second level data packet needed for user can be sent to by such server
Client, and do not have to for the total data in the data packet of the biggish electronic map of coverage area, that is, first order data packet being sent to
Client saves the network flow between server and client;And in some cases, at the map sheet data of electronic map
Managing device is to be divided according to the second level attribute of the object of the first map sheet when the object to the first map sheet divides,
Partitioning algorithm is fairly simple, of less demanding to technical staff.
One embodiment of the invention provides a kind of map sheet data processing method of electronic map, mainly above-mentioned electronic map
Map sheet data processing equipment performed by method, flow chart is as shown in Figure 1, comprising:
Step 101, the map sheet data processing equipment of electronic map obtains first order data packet to be processed, first order data
In packet including first order electronic map multiple map sheets object data, first order electronic map be first order attribute electronically
Figure.
It under normal circumstances, may include the electronic map (i.e. first with first order attribute in a first order data packet
Grade electronic map) multiple map sheets object data, the coverage area of these map sheets is larger.In the embodiment of the present invention, in order to
The data of the lesser map sheet of coverage area are obtained, the map sheet data processing equipment of electronic map can generate the electronics of second level attribute
The second level data packet of map (i.e. second level electronic map), then can initiate the process of the present embodiment.Wherein, first order electronics
It may include multiple second level electronic maps in map.
Wherein, map sheet refers to certain range, such as a certain size rectangular area;The map sheet of first order electronic map
Object refers to each things for including in a certain range in first order electronic map, such as road, greenery patches, water system and point of interest
Things such as (Point of Interest, OPI);The object data of the map sheet of first order electronic map refers to the first order electronically
The information for each things for including in a certain range in figure, such as the identification information of each object, coordinate and attribute information (including
Second level attribute) etc., wherein coordinate can be with directive.
Step 102, the map sheet data processing equipment of electronic map is according to pair of the multiple map sheets obtained in above-mentioned steps 101
Image data determines the second level attribute of the object of each map sheet respectively.
For example, first order data packet is the data packet of provincial map, second level attribute is City attribution, then if provincially
The object of a certain map sheet of figure belongs to the object of a certain city A, then the second level attribute of the object of the map sheet is city A category
Property;It also include the object of city B, the then map sheet in the object of a certain map sheet of provincial map if both having included the object of city A
Object second level attribute be city A attribute and city B attribute.Here second level attribute may be attribute at county level etc..
In the present embodiment, if the second level attribute of the object of the first map sheet is multiple second level category in multiple map sheets
Property, the map sheet data processing equipment of electronic map can execute step 103 and 104, if in multiple map sheets the second map sheet pair
The second level attribute of elephant is a second level attribute, and the map sheet data processing equipment of electronic map can execute step 105.
Step 103, the map sheet data processing equipment of electronic map divides the object of the first map sheet according to second level attribute
For the object of multiple subgraph width.
Specifically, the map sheet data processing equipment of electronic map can according to the second level attribute of the object of the first map sheet,
Only comprising the object of same second level attribute in a sub- map sheet being divided into, the object of the first map sheet can thus be drawn
It is divided into the object of multiple subgraph width, and the object of some subgraph width is in a second level electronic map (i.e. second level attribute
Electronic map) in object included within the scope of some.It should be noted that each subgraph width size can be with the first figure
The size of width is identical, but the object of each subgraph width is different, only includes corresponding second level attribute in the object of each subgraph width
Object.
Such as shown in Fig. 2, the object of the first map sheet includes object 1, object 2 and object 3, and server can be by object 1
It is divided into the object of a sub- map sheet with object 2, object 3 is divided into the object of another subgraph width, and two sub- map sheets is big
It is small identical as the size of the first map sheet.
Step 104, the object data of multiple subgraph width is stored into phase by the map sheet data processing equipment of electronic map respectively
It answers in the second level data packet of second level attribute.
If the map sheet data processing equipment of electronic map is in the object for executing the first map sheet of division in above-mentioned steps 103
When, a certain whole object in the object of the first map sheet is respectively divided into a certain subobject in n sub- map sheets, and adjacent son
Tie point between object is object tie point, and n is the integer more than or equal to 2;Then when executing this step 104, for n
The adjacent subgraph width of any two (such as the first subgraph width and second subgraph width) in subgraph width, the whole object is in the first subgraph
Subobject in width and the second subgraph width is respectively the first subobject and the second subobject, the map sheet data processing dress of electronic map
The object data for setting the first subgraph width of storage includes: the mark of the object tie point between the first subobject and the second subobject
Information, the corresponding relationship of the identification information of the second level attribute and the second subobject of the second subobject;
The object data of second subgraph width includes: the mark of the object tie point between the first subobject and the second subobject
Information, the corresponding relationship of the identification information of the second level attribute and the first subobject of the first subobject.One can be passed through in this way
Information associated with the identification information of object tie point finds the subobject of adjacent subgraph width in the object data of subgraph width, into
And determine the position of the object of each subgraph width, to recover the object of the first map sheet in first order electronic map.
Such as shown in Fig. 3, a urban road in the first map sheet is divided into 1 He of road in the subgraph width in city 1
The tie point of road 2 in the subgraph width in city 2, road 1 and road 2 is tie point a, the object of the subgraph width in such city 1
It include: the identification information of tie point a, the corresponding relationship of the identification information of the identification information and road 2 in city 2 in data;City 2
Subgraph width object data in include: tie point a identification information, the identification information of the identification information and road 1 in city 1
Corresponding relationship.
Further, the map sheet data processing equipment of electronic map can also when storing the object data of each subgraph width
The identification information of corresponding subgraph width is accordingly stored, the identification information of each subgraph width can be identical, is all above-mentioned first map sheet
Identification information.It and can also include the information such as the identification information of second level attribute in any second level data packet.
Step 105, the object data of the second map sheet is stored into corresponding second by the map sheet data processing equipment of electronic map
In the second level data packet of grade attribute.
Further, the map sheet data processing equipment of electronic map can also record more after performing above-mentioned steps 104
The corresponding relationship of the identification information of the identification information and the first map sheet of a second level attribute, can thus learn the first map sheet
The object data for the subgraph width that object is divided into is stored into the second level data packet of which second level attribute, and then can basis
The object data of these second level data packet neutron map sheets obtains the object data of the first map sheet in first order data packet.
And the map sheet data processing equipment of electronic map can also record one second after performing above-mentioned steps 105
The corresponding relationship of the identification information of the identification information and the second map sheet of grade attribute, can thus learn the number of objects of the second map sheet
According to being stored into the second level data packet of which second level attribute, and then the first order can be obtained from this second level data packet
The object data of second map sheet in data packet.
Wherein, the identification information of second level attribute can be specific name or number of second level attribute etc., a certain map sheet
Identification information can be map sheet label etc..
It is appreciated that map sheet data processing equipment available multiple second level electronics through the above steps of electronic map
The second level data packet of map (i.e. the electronic map of second level attribute), and in a certain second level data packet include corresponding second
The object data of multiple map sheets of grade electronic map.The map sheet data processing equipment of electronic map can be by these second level data
Packet is stored into server, then one or more second level data packets can be sent to client by server, and client can be with
The map sheet data processing of electronic map is realized by the following method, and flow chart is as shown in figure 4, specifically include:
Step 201, client obtains second level data packet, and obtains the identification information of map sheet and the mark of second level attribute
The corresponding relationship of information, wherein the object data of multiple map sheets in the data packet of the second level including second level electronic map, it is any
The object data of map sheet includes the data of each object of the map sheet in the identification information and second level electronic map of map sheet, and
It further include the information such as the identification information of second level attribute in the data packet of the second level.Wherein second level electronic map is second level attribute
Electronic map.
Specifically, for client when obtaining second level data packet, terminal user can operate client, so that client is aobvious
Show user interface, on a user interface includes the select button for selecting any second level attribute, a certain when the user clicks (or it is more
It is a) after the select button of second level attribute, client can initiate the to a certain (or multiple) second level attribute to server
The request of secondary data packet.The second level data packet of client request can be sent to client by server in this way.
Further, client can also obtain the identification information of map sheet and the identification information of second level attribute from server
Corresponding relationship, in this way if client determines that the identification information of a certain map sheet in a certain second level data packet is the first map sheet
Identification information, and the identification information corresponds to the identification information of multiple second level attributes, client can execute step 202 to 204, such as
The identification information of the corresponding second level attribute of the identification information of a certain map sheet of fruit (such as second map sheet), then client executing walks
Rapid 205.
Step 202, client determines corresponding multiple second level attributes according to the identification information of above-mentioned first map sheet respectively
Second level data packet in correlator map sheet object data the first storage location.
If the first map sheet corresponds to multiple second level attributes, due in above-described embodiment, at the map sheet data of electronic map
Device is managed when storing second level data packet, is the object data difference for the multiple subgraph width for being divided into the object of the first map sheet
It is stored into the second level data packet of corresponding second level attribute, and respectively includes each height in the object data of each subgraph width
The identification information of map sheet, can be identical, all the identification information for the first map sheet.In this case, client is executing this step
When 202, client can determine the second level data of multiple second level attributes respectively according to the identification information of above-mentioned first map sheet
First storage location of the object data of correlator map sheet in packet.
Specifically, client can determine first map sheet in first order data packet institute according to the identification information of the first map sheet
Position 1 in the first range (i.e. the range of first order electronic map) of covering, and any second level data packet is covered the
Position 2 of two ranges (i.e. the range of second level electronic map) in above-mentioned first range be it is determining, due to each relevant
The size of subgraph width is identical as the size of first map sheet, and the identification information of map sheet is also identical, then client can be according to upper
Rheme sets the relative position between 2 and position 1, can be obtained any relevant subgraph width is covered in second level data packet
Position 3 in two ranges, and then the first storage location of the object data according to the determining subgraph width in the position 3.
For example, second level attribute is City attribution, a map sheet if first order data packet is the data packet of provincial map
Identification information be the obtained map sheet number 1 of a calculation of longitude & latitude, and include the city of a longitude and latitude be city A and city
City B, it is assumed that national electronic map can be divided into the grid of 1000*1000, then the map sheet number 1 can be disassembled as in China
Grid position, such as the 50th row and the 50th column.If the range of city A is arranged from 46 rows 46 column to 51 rows 51,6 rows 6 are arranged in total,
Storage location of the object data of the map sheet in the data packet of city A map is obtained according to map sheet number 1 are as follows: ((50-46) * 6
+ (50-46)=28) a map sheet object data;If the range of city B is arranged from 49 rows 49 column to 58 rows 57, in total 9 row 8
Column, obtain storage location of the object data of the map sheet in the data packet of city B map according to map sheet number 1 are as follows: ((50-
49) * 8+ (50-49)=9) a map sheet object data.
Step 203, client stores position according to first of the object data of correlator map sheet in multiple second level data packets
It sets, obtains the object data of correlator map sheet in the data packet of multiple second level respectively.
Step 204, the number of objects of correlator map sheet in multiple second level data packets that client is obtained according to step 203
According to, the object data of the first map sheet of first order electronic map in acquisition first order data packet, and then can be according to the first map sheet
Object data carry out the distance between other calculating, such as each object and calculate etc..Wherein first order electronic map is first
The electronic map of grade attribute, and first order electronic map includes multiple second level electronic maps.
It, may be by an entirety since the map sheet data processing equipment of electronic map is when dividing the object of the first map sheet
Object is divided into multiple and different subgraph width, if in the first subgraph width in the object of the first subobject and the second subgraph width
Two subobjects are that the map sheet data processing equipment of electronic map is divided based on same whole object.Then in the present embodiment, client
End can be found another when executing this step 204 according to the object data of the first subgraph width in a second level data packet
The object data of second subgraph width in the data packet of the second level, and then according to the first subobject in the object data of the first subgraph width
The data of the above-mentioned whole object of data acquisition of second subobject in the object data of data and the second subgraph width.
Specifically, if the object data of the first subgraph width includes: the object between the first subobject and the second subobject
The identification information of tie point, the corresponding relationship of the identification information of the second level attribute and the second subobject of the second subobject.It is then objective
Family end can first search the corresponding another second level data packet of second level attribute of the second subobject;Then in another second series
According in packet, pair of corresponding second subgraph width is searched according to the identification information of the identification information of object tie point and the second subobject
Image data, and then find in the object data of the second subgraph width the data of the second subobject.
When obtaining the data of an above-mentioned whole object, available first subobject and the second subobject composition it is whole
The data of body object, for example a mark is determined for the whole object, and according to the coordinate of the first subobject and the second subobject
Obtain the coordinate etc. of the whole object.
Step 205, client determines the object data of the second map sheet corresponding second according to the identification information of the second map sheet
The second storage location in the second level data packet of grade attribute, and according to the number of objects of the second storage location the second map sheet of acquisition
According to.
In this way, client can be according to the second level multiple in the data packet of second level electronic map by step 201 to 205
The object data of subgraph width obtain the object data of the first map sheet in first order data packet, and directly in the data packet of the second level
The object data of the second map sheet in first order data packet is obtained, and then obtains the institute of first order electronic map in first order data packet
There is the object data of map sheet, and is centainly handled according to the object data of these map sheets.
As it can be seen that the map sheet data processing equipment of electronic map can determine whether the first order electronically in the method for the present embodiment
The second level attribute of the object of each map sheet of figure, if the second level attribute of the object of the first map sheet is multiple second level attributes,
The object of first map sheet is then divided into the object of multiple subgraph width, then stores the object data of this multiple subgraph width again to phase
It answers in the second level data packet of second level attribute.The method of the present embodiment can not have to each map sheet to first order electronic map
Object carry out cutting, and only the object of the first map sheet is divided, so that the map sheet data processing of electronic map fills
The second level data packet set will not exponentially increase with the division of map sheet object, will not after being stored into server
Influence the computational efficiency of server;And in the embodiment of the present invention, the lesser electronic map of coverage area can be stored in the server
Data packet (i.e. second level data packet), certain second level data packets can be sent to client by such server, and not had to
Total data in the data packet of the biggish electronic map of coverage area, that is, first order data packet is sent to client, is saved
Network flow between server and client;And since the map sheet data processing equipment of electronic map is in pair to the first map sheet
It is to be divided according to the second level attribute of the object of the first map sheet when as being divided, partitioning algorithm is fairly simple, to skill
Art personnel requirement is not high.
Another embodiment of the present invention provides a kind of map sheet data processing method of electronic map, mainly it is above-mentioned electronically
Method performed by the map sheet data processing equipment of figure, flow chart are as shown in Figure 5, comprising:
Step 301, the map sheet data processing equipment of electronic map obtains first order data packet to be processed, first order data
In packet including first order electronic map multiple map sheets object data, first order electronic map be first order attribute electronically
Figure.
Step 302, the map sheet data processing equipment of electronic map determines each figure according to the object data of multiple map sheets respectively
The second level attribute of the object of width.
In the present embodiment, if the second level attribute of the object of the first map sheet is multiple second level category in multiple map sheets
Property, the map sheet data processing equipment of electronic map can execute step 303, if in multiple map sheets the object of the second map sheet
Secondary attributes are a second level attribute, and the map sheet data processing equipment of electronic map can execute step 304.
Step 303, the map sheet data processing equipment of electronic map is in the corresponding second level data packet of multiple second level attributes
The middle object data for storing the first map sheet respectively.
Step 304, the object data of the second map sheet is stored into corresponding second by the map sheet data processing equipment of electronic map
In the second level data packet of grade attribute.
Further, the map sheet data processing equipment of electronic map can also record more after performing above-mentioned steps 303
The corresponding relationship of the identification information of the identification information and the first map sheet of a second level attribute, can thus learn the first map sheet
Object data is stored into the second level data packet of which second level attribute.
It is appreciated that the available multiple second level electronics of map sheet data processing equipment of electronic map through the above steps
The second level data packet of map (i.e. the electronic map of second level attribute), and in a certain second level data packet include corresponding second
The object data of multiple map sheets of grade electronic map.The map sheet data processing equipment of electronic map can be by these second level data
Packet is stored into server, and the data packet of one or more second level can be sent to client by such server, and client
End can realize map sheet data processing by the following method, and flow chart is as shown in fig. 6, specifically include:
Step 401, client obtains the identification information of second level data packet and map sheet and the identification information of second level attribute
Corresponding relationship, wherein in the data packet of the second level including second level electronic map multiple map sheets object data, wherein appoint
The object data of one map sheet includes the data of each object of the identification information and map sheet of the map sheet in the electronic map of the second level,
It and can also include the identification information etc. of second level attribute.Wherein second level electronic map is the electronic map of second level attribute.
Specifically, client is when obtaining second level data packet, the user that can be provided by terminal user by client
Interface selects a certain (or multiple) the second attribute, and is initiated by user end to server to a certain (or multiple) second level attribute
Second level data packet request.The second level data packet of client request can be sent to client by server in this way.
Further, client can also obtain the identification information of map sheet and the identification information of second level attribute from server
Corresponding relationship, in this way if client determines the identification information pair of a certain map sheet (such as first map sheet) in the data packet of the second level
The identification information of multiple second level attributes is answered, client can execute step 402, if the mark of a certain map sheet (such as second map sheet)
Know the identification information of the corresponding second level of information, then client executing step 403.
Step 402, client determines the second level of corresponding any second level attribute according to the identification information of the first map sheet
First storage location of the object data of the first map sheet in data packet, and according to the first storage location in any second level data packet
The middle object data for obtaining the first map sheet.
Step 403, client determines the object data of the second map sheet corresponding according to the identification information of the second map sheet
The second storage location in the second level data packet of secondary attributes, and according to the number of objects of the second storage location the second map sheet of acquisition
According to.
Client is specific when determining the storage location of object data of the map sheet according to the identification information of any map sheet
Method can be as described in above-mentioned one embodiment, herein without repeating.
In this way, by step 401 to 403, client can obtain first order data packet directly from the data packet of the second level
The object data of included the first map sheet and the second map sheet, and then the object data of these map sheets can be carried out further
Processing.
As it can be seen that the map sheet data processing equipment of electronic map can determine whether the first order electronically in the method for the present embodiment
The second level attribute of the object of each map sheet of figure, if the second level attribute of the object of the first map sheet is multiple second level attributes,
Then store the object data of the first map sheet respectively in the second level data packet of this multiple second level attribute.The method of the present embodiment
It can not have to carry out cutting to the object of each map sheet of first order electronic map, and only the object data of the first map sheet exists
It is stored in each corresponding second level data packet, so that the second series that the map sheet data processing equipment of electronic map obtains
It will not exponentially increase according to packet, the computational efficiency of server will not be influenced after being stored into server;And the embodiment of the present invention
In, the data packet i.e. second level data packet of the lesser electronic map of coverage area can be stored in the server, and such server can
Certain second level data packets are sent to client, and do not have to data packet i.e. first of the biggish electronic map of coverage area
Total data in grade data packet is sent to client, saves the network flow between server and client.
Illustrate the map sheet data processing method of electronic map of the invention, this implementation with a specific embodiment below
The method of example is mainly used in the offline map function in map application system, and first order data packet is the data of provincial map
Packet, second level attribute are City attribution, and second level data packet is the data packet of city map, the map sheet data processing of electronic map
Device is specially compiler.The method of the present embodiment includes following several parts:
(1) data packet of city map is generated by compiler
Under normal circumstances, the data packet for storing provincial map in the server accordingly saves electronically including belonging to
The object data of each map sheet of figure, in the present embodiment, after developer obtains the data packet of city map by compiler,
And the data packet of city map is stored into server, then city map can be obtained by the following method by compiling implement body
Data packet, flow chart as shown in fig. 7, comprises:
Step 501, compiler obtains the data packet of provincial map, determines each map sheet of provincial map in the data packet
The City attribution of object, if the object in a certain map sheet (such as first map sheet) is included in multiple cities, first figure
The City attribution of width is multiple City attributions, if the object in a certain map sheet (such as second map sheet) is included in a city
In, then the City attribution of second map sheet is a City attribution.
For the object of the first map sheet, compiler executes step 502, and for the object of the second map sheet, compiler executes step
Rapid 503.
Step 502, the object of the first map sheet is divided into the object of multiple subgraph width according to City attribution by compiler, and will
In the data packet for the city map that the object data of each subgraph width is stored into corresponding City attribution.Wherein, in each subgraph width
Object data in only include the object data of phase Yingcheng City.
In the present embodiment, the size of this multiple subgraph width is identical, the size all for the first map sheet;And the mark of each subgraph width
Knowledge information is all identical, can be the map sheet number of the first map sheet.
Specifically, if compiler is divided into subgraph 1 when the object to the first map sheet divides, by a certain road
Road 1 and subgraph 2 road 2, and the tie point of road 1 and road 2 is city tie point, then compiler is corresponding in storage
City map data packet when, include: the mark of the city tie point in the data packet of 1 map of city belonging to subgraph 1
Know information, the corresponding relationship of the identification information of the identification information (can be city code) and road 2 in city 2;In 2 institute of subgraph
It include: the identification information of the city tie point in the data packet of 2 map of city of category, the identification information in city 1 (can be city
Coding) and road 1 identification information corresponding relationship.
As shown in figure 8, including the map sheet A of provincial map, the number of objects of map sheet B and map sheet C in the data packet of provincial map
According to etc., the object of map sheet B is divided into the object of two sub- map sheet B1 and B2 by compiler, and by pair of map sheet A and subgraph width B1
Image data is stored into the data packet of 1 map of city, and the object data of map sheet C and subgraph width B2 are stored into 2 map of city
In data packet.
Further, compiler also will record the identification information of the first map sheet and the identification information in affiliated multiple cities
Corresponding relationship.
Step 503, the object data of the second map sheet is stored into the data of the city map of corresponding City attribution by compiler
Bao Zhong.And the corresponding relationship of the identification information of the second map sheet and the identification information in affiliated city can also be recorded.
The data packet of the available multiple city maps of compiler, compiler can by multiple cities through the above steps
The corresponding relationship of the identification information of the identification information and affiliated city of the data packet of figure and each map sheet is stored into server
In.
(2) client is restored provincial according to the object data of each map sheet of city map in the data packet of city map
The object data of each map sheet of provincial map in the data packet of map
In the present embodiment, client has the function of offline map, and under the offline map function, terminal user can pass through
Client selects some or multiple cities, and the corresponding city in each city of user's selection is obtained by user end to server
The data packet of map includes the object data of multiple map sheets of the city map in the data packet of any city map, specifically,
The object data of any map sheet includes the data of the identification information of the map sheet and each object of the map sheet, and can also include pair
The identification information of Yingcheng City.
Client can determine the object data of each map sheet in city map according to the identification information of each map sheet in this way
Storage location in data packet, if the identification information (identification information that the identification information is the first map sheet) of a certain map sheet is corresponding
The identification information in multiple cities, then client can be according to the object data of the first map sheet in the data packet of multiple city maps
Storage location obtains the object data of correlator map sheet in the data packet of this multiple city map respectively, then a little according to this
The object data of map sheet obtains the object data of the first map sheet of provincial map.If the mark of a certain map sheet (such as second map sheet)
Know the identification information in the corresponding city of information, then client directly exists according to the storage location of the object data of second map sheet
The object data of the second map sheet of provincial map is got in the data packet of corresponding city map.
The embodiment of the present invention also provides a kind of map sheet data processing equipment of electronic map, such as above-mentioned server or volume
Device is translated, structural schematic diagram is as shown in figure 9, can specifically include:
Data packet acquiring unit 14 includes in the first order data packet for obtaining first order data packet to be processed
The object data of multiple map sheets of first order electronic map, the first order electronic map are the electronic map of first order attribute;
The object data difference of attribute determining unit 10, multiple map sheets for being obtained according to data packet acquiring unit 14 is true
The second level attribute of the object of fixed each map sheet;
Map sheet data processing unit 11, for according to attribute determining unit 10 determine as a result, if the multiple map sheet
In the first map sheet object second level attribute be multiple second level attributes, in the corresponding second level data of multiple second level attributes
The object data of first map sheet is stored in packet respectively;Alternatively,
The map sheet data processing unit 11, if the second level for the object of the first map sheet in the multiple map sheet belongs to
Property be multiple second level attributes, the object of the first map sheet is divided into the object of multiple subgraph width according to second level attribute;By institute
The object data for stating multiple subgraph width is stored into respectively in the second level data packet of corresponding second level attribute.Wherein, a son
The object of map sheet is the object of same second level attribute, and the size of any subgraph width is identical as the size of first map sheet.
The map sheet data processing unit 11 is also used to according to the determination of attribute determining unit 10 as a result, if described more
The second level attribute of the object of the second map sheet is a second level attribute in a map sheet, and the object data of second map sheet is stored up
It is stored in the second level data packet of corresponding second level attribute.
In the present embodiment, if the map sheet data processing unit 11 according to second level attribute by pair of the first map sheet
When object as being divided into multiple subgraph width, a certain whole object in the object of first map sheet is respectively divided into n
A certain subobject in the object of subgraph width, and the tie point between adjacent subobject be object tie point, the n be greater than or
Integer equal to 2.
It is then the first subgraph width and the second subgraph width, institute for the adjacent subgraph width of any two in the n sub- map sheets
Stating subobject of a certain whole object in the first subgraph width and the second subgraph width is respectively the first subobject and the second son
Object, the object data for the first subgraph width that the map sheet data processing unit 11 stores include: first subobject and the
The identification information of object tie point between two subobjects, the mark of the second level attribute of the second subobject and second subobject
Know the corresponding relationship of information;The object data for the second subgraph width that the map sheet data processing unit 11 stores includes: described the
The identification information of object tie point between one subobject and the second subobject, the second level attribute of first subobject and institute
State the corresponding relationship of the identification information of the first subobject.
It further, can also include recording unit 12 and transmission unit if the device of the present embodiment is server
13, it can also include recording unit 12 if the device of the present embodiment is compiler, in which:
Recording unit 12, for the object of first map sheet to be divided into multiple subgraph width in map sheet data processing unit 11
After object, the corresponding relationship of the identification information of the multiple second level attribute and the identification information of first map sheet is recorded.It should
Recording unit 12 can also record the corresponding relationship of the identification information an of second level attribute and the identification information of the second map sheet.
Transmission unit 13, multiple second level data packets for storing map sheet data processing unit 11 are sent to client
End.
In the present embodiment, the first order data packet is the data packet of provincial map, and the second level attribute is city category
Property or attribute at county level.
As it can be seen that attribute determining unit 10 can determine whether each map sheet of first order electronic map in the device of the present embodiment
The second level attribute of object, if the second level attribute of the object of the first map sheet is multiple second level attributes, at map sheet data
The object of first map sheet is divided into the object of multiple subgraph width by reason unit 11, then stores the number of objects of this multiple subgraph width again
According in the second level data packet to corresponding second level attribute or map sheet data processing unit 11 can directly multiple second level belong to
The object data of the first map sheet is stored in the corresponding second level data packet of property respectively.Since map sheet data processing unit 11 can not
Cutting is carried out with the object of each map sheet to first order electronic map, and only the object of the first map sheet is divided,
Or any cutting is not carried out to the object of each map sheet of first order electronic map, so that the map sheet data processing of electronic map
The second level data packet that device obtains will not exponentially increase with the division of map sheet object, after being stored into server also not
It will affect the computational efficiency of server;And in the embodiment of the present invention, it is lesser electronically that coverage area can be stored in the server
Certain second level data packets can be sent to the client of user by the data packet of figure, that is, second level data packet, such server,
And do not have to the total data in the data packet of the biggish electronic map of coverage area, that is, first order data packet being sent to client,
Save the network flow between server and client;And in some cases, the map sheet data processing equipment of electronic map
Middle map sheet data processing unit 11 is the second level according to the object of the first map sheet when the object to the first map sheet divides
What attribute was divided, partitioning algorithm is fairly simple, of less demanding to technical staff.
Another embodiment of the present invention also provides a kind of client, and structural schematic diagram is as shown in Figure 10, specifically can wrap
It includes: data capture unit 20 and the first map sheet data capture unit 21, alternatively, including data capture unit 20, the first map sheet number
According to acquiring unit 21 and the second map sheet data cell 22, in which:
The data packet acquiring unit 20, identification information and the second level for obtaining second level data packet and map sheet belong to
Property identification information corresponding relationship, include the number of objects of multiple map sheets of second level electronic map in the second level data packet
According to the object data of any map sheet includes the identification information of map sheet;The second level electronic map be the second attribute electronically
Figure;
The first map sheet data capture unit 21, for if it is determined that the received second level of the data capture unit 20
In data packet, the identification information of the first map sheet corresponds to the identification information of multiple second level attributes, according to the mark of first map sheet
Know the first storage location that information determines the object data of correlator map sheet in corresponding multiple second level data packets respectively;According to
The first storage location of the object data of correlator map sheet, obtains respectively in the second level data packet of the multiple second level attribute
The object data of correlator map sheet in the multiple second level data packet;
Alternatively, the first map sheet data capture unit 21, if the identification information for the first map sheet corresponds to multiple
The identification information of secondary attributes determines the second level of corresponding any second level attribute according to the identification information of first map sheet
First storage location of the object data of the first map sheet in data packet;According to first storage location in any second level
The object data of the first map sheet is obtained in data packet;
The second map sheet data capture unit 22, if obtained for the first map sheet data capture unit 21 multiple
The object data of correlator map sheet in the data packet of the second level, according to the object of correlator map sheet in the multiple second level data packet
Data obtain the object data of first map sheet of first order electronic map in first order data packet, the first order electronics
Map is the electronic map of first order attribute.
Specifically, if in these correlator map sheets, pair of the first subobject and the second subgraph width in the first subgraph width
The second subobject is that server is divided based on same whole object as in, then the second map sheet data capture unit 22 specifically can be with
The second subgraph width in another second level data packet is found according to the object data of the first subgraph width in a second level data packet
Object data, according in the object data of the data of the first subobject and the second subgraph width in the object data of the first subgraph width
The data of the above-mentioned whole object of the data acquisition of second subobject.
Further, above-mentioned first map sheet data capture unit 21, if the identification information for being also used to the second map sheet is corresponding
The identification information of one second level attribute determines second map sheet corresponding second according to the identification information of second map sheet
The second storage location in the second level data packet of grade attribute, and second map sheet is obtained according to second storage location
Object data.
In the present embodiment, the first order data packet is the data packet of provincial map, and the second level attribute is city category
Property or attribute at county level.
In the client of the present embodiment, pass through the first map sheet data capture unit 21 or the second map sheet data capture unit
The object data of first map sheet in 22 available first order data packets, and the first map sheet data capture unit 21 can directly exist
The object data of the second map sheet in first order data packet is obtained in the data packet of the second level, and then is obtained first in first order data packet
The object data of grade all map sheets of electronic map, and the object data of these map sheets is further processed.Due to taking
The data packet i.e. second level data packet of the lesser electronic map of coverage area, the client of this sample embodiment can be stored in business device
In data capture unit 20 certain second level data packets can be obtained from server, and do not have to obtain the biggish electricity of coverage area
Total data in the data packet of sub- map, that is, first order data packet, saves between server and the client of the present embodiment
Network flow.
The embodiment of the present invention also provides a kind of server, and structural schematic diagram is as shown in figure 11, which can be because of configuration
Or performance is different and generate bigger difference, may include one or more central processing units (central
Processing units, CPU) 30 (for example, one or more processors) and memory 31, one or more are deposited
Store up the storage medium 32 (such as one or more mass memory units) of application program 321 or data 322.Wherein, it stores
Device 31 and storage medium 32 can be of short duration storage or persistent storage.Be stored in storage medium 32 program may include one or
More than one module (diagram does not mark), each module may include to the series of instructions operation in server.Further
Ground, central processing unit 30 can be set to communicate with storage medium 32, execute on the server a series of in storage medium 32
Instruction operation.
Specifically, the application program 321 stored in storage medium 32 includes answering for the map sheet data processing of electronic map
With program, and the program may include the data packet acquiring unit 14 in the map sheet data processing equipment of above-mentioned electronic map, belong to
Property determination unit 10, map sheet data processing unit 11, recording unit 12 and transmission unit 13, herein without repeating.More into one
Step ground, central processing unit 30 can be set to communicate with storage medium 32, store in execution storage medium 32 on the server
The corresponding sequence of operations of application program of the map sheet data processing of electronic map.
Server can also include one or more power supplys 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
ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
The step as performed by the map sheet data processing equipment of electronic map described in above method embodiment can base
The structure of the server shown in the Figure 11.
The embodiment of the present invention also provides a kind of terminal device, the structure class of structure and server shown in above-mentioned Figure 11
Seemingly, unlike, the application program stored in the storage medium of terminal device includes the map sheet data processing of electronic map
Application program, and the program may include the data capture unit 20 in above-mentioned client, the first map sheet data capture unit 21
With the second map sheet data capture unit 22, herein without repeating.Further, central processing unit can be set to and store
Medium communication, the application program for executing the map sheet data processing of the electronic map stored in storage medium on the terminal device are corresponding
Sequence of operations.
The embodiment of the present invention also provides another terminal device, such as compiler, takes shown in structure and above-mentioned Figure 11
The structure of business device is similar, unlike, the application program stored in the storage medium of terminal device includes the figure of electronic map
The application program of width data processing, and the program may include the data packet acquiring unit in the data processing equipment of above-mentioned map sheet
14, attribute determining unit 10, map sheet data processing unit 11, recording unit 12 and transmission unit 13, herein without repeating.More
Further, central processing unit can be set to communicate with storage medium, store in execution storage medium on the terminal device
The corresponding sequence of operations of application program of the map sheet data processing of electronic map.
The embodiment of the present invention also provides a kind of storage equipment, and the storage equipment includes a plurality of instruction, and described instruction is used for
It is loaded as processor and executes method performed by the map sheet data processing equipment of electronic map in above-described embodiment.
The embodiment of the present invention also provides another storage equipment, and the storage equipment includes a plurality of instruction, and described instruction is used
In being loaded as processor and execute method performed by client in above-described embodiment.
The embodiment of the present invention also provides a kind of data processing system of map sheet, including server and client side, in which:
The structure of the server can be as shown in Figure 9 above electronic map map sheet data processing equipment or such as Figure 11
Shown in server structure, the structure for the client that the structure of the client can be as shown in Figure 10 above, herein not into
Row repeats.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM), random access memory ram), disk or CD etc..
The map sheet data processing method and device for being provided for the embodiments of the invention electronic map above have carried out in detail
It introduces, used herein a specific example illustrates the principle and implementation of the invention, the explanation of above embodiments
It is merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this
The thought of invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered
It is interpreted as limitation of the present invention.
Claims (15)
1. a kind of map sheet data processing method of electronic map, which is characterized in that the described method includes:
First order data packet to be processed is obtained, includes multiple map sheets of first order electronic map in the first order data packet
Object data, the first order electronic map are the electronic map of first order attribute;
Determine the second level attribute of the object of each map sheet respectively according to the object data of the multiple map sheet;
If the second level attribute of the object of the first map sheet is multiple second level attributes in the multiple map sheet, in multiple second level
The object data of first map sheet is stored in the corresponding second level data packet of attribute respectively;Alternatively,
If the second level attribute of the object of the first map sheet is multiple second level attributes in the multiple map sheet, belong to according to the second level
The object of first map sheet is divided into the object of multiple subgraph width by property;The object data of the multiple subgraph width is stored into respectively
In the second level data packet of corresponding second level attribute, wherein the object of a sub- map sheet is the object of same second level attribute.
2. the method as described in claim 1, which is characterized in that when being divided into the object of the first map sheet according to second level attribute
When the object of multiple subgraph width, a certain whole object in the object of first map sheet is respectively divided into n sub- map sheets
A certain subobject, and the tie point between adjacent subobject is object tie point, the n is the integer more than or equal to 2;
The adjacent subgraph width of any two is the first subgraph width and the second subgraph width, a certain entirety in the n sub- map sheets
Subobject of the object in the first subgraph width and the second subgraph width is respectively the first subobject and the second subobject, then described
The object data of first subgraph width includes: the mark letter of the object tie point between first subobject and the second subobject
The corresponding relationship of the identification information of breath, the second level attribute of the second subobject and second subobject;
The object data of the second subgraph width includes: the object tie point between first subobject and the second subobject
The corresponding relationship of the identification information of identification information, the second level attribute of first subobject and first subobject.
3. the method as described in claim 1, which is characterized in that the method also includes:
Record the corresponding relationship of the identification information of multiple second level attributes and the identification information of first map sheet.
4. method as described in any one of claims 1 to 3, which is characterized in that the method also includes:
If the second level attribute of the object of the second map sheet is a second level attribute in the multiple map sheet, by second figure
The object data of width is stored into the second level data packet of corresponding second level attribute.
5. a kind of map sheet data processing method of electronic map, which is characterized in that be applied to client, which comprises
The client obtains second level data packet, and obtains pair of the identification information of map sheet and the identification information of second level attribute
It should be related to, the object data of multiple map sheets in the second level data packet including second level electronic map, pair of any map sheet
Image data includes the identification information of map sheet;The second level electronic map is the electronic map of the second attribute;
If the identification information of the first map sheet corresponds to the identification information of multiple second level attributes, the client is according to described first
The identification information of map sheet determines the number of objects of correlator map sheet in the second level data packet of corresponding multiple second level attributes respectively
According to the first storage location;
The client is divided according to the first storage location of the object data of correlator map sheet in the multiple second level data packet
The object data of correlator map sheet in the multiple second level data packet is not obtained;
According to the object data of correlator map sheet in the multiple second level data packet, first order electricity in first order data packet is obtained
The object data of first map sheet of sub- map, the first order electronic map are the electronic map of first order attribute.
6. method as claimed in claim 5, which is characterized in that the method also includes:
If the identification information of the corresponding second level attribute of the identification information of the second map sheet, the client is according to described second
The identification information of map sheet determines the of the object data of second map sheet in the second level data packet of corresponding second level attribute
Two storage locations, and obtain according to second storage location object data of second map sheet.
7. a kind of map sheet data processing method of electronic map, which is characterized in that be applied to client, which comprises
The client obtains the identification information pass corresponding with the identification information of second level attribute of second level data packet and map sheet
Being includes the object data of multiple map sheets of second level electronic map in the second level data packet, wherein pair of any map sheet
Image data includes the identification information of map sheet;The second level electronic map is the electronic map of second level attribute;
If the identification information of the first map sheet corresponds to the identification information of multiple second level attributes, the client is according to described first
The identification information of map sheet determines of the object data of the first map sheet in the second level data packet of corresponding any second level attribute
One storage location;
The client obtains the object of the first map sheet according to first storage location in any second level data packet
Data.
8. a kind of map sheet data processing equipment of electronic map characterized by comprising
Data packet acquiring unit includes the first order in the first order data packet for obtaining first order data packet to be processed
The object data of multiple map sheets of electronic map, the first order electronic map are the electronic map of first order attribute;
Attribute determining unit, for determining that the second level of object of each map sheet belongs to respectively according to the object data of the multiple map sheet
Property;
Map sheet data processing unit, if the second level attribute for the object of the first map sheet in the multiple map sheet is multiple the
Secondary attributes store the number of objects of first map sheet respectively in the corresponding second level data packet of the multiple second level attribute
According to;Alternatively,
The map sheet data processing unit, if the second level attribute for the object of the first map sheet in the multiple map sheet is more
The object of first map sheet is divided into the object of multiple subgraph width according to second level attribute by a second level attribute;It will be the multiple
The object data of subgraph width is stored into respectively in the second level data packet of corresponding second level attribute, wherein pair of a sub- map sheet
As the object for same second level attribute.
9. device as claimed in claim 8, which is characterized in that if the map sheet data processing unit belongs to according to the second level
It is when the object of first map sheet is divided into the object of multiple subgraph width by property, a certain entirety in the object of first map sheet is right
A certain subobject as being respectively divided into n sub- map sheets, and the tie point between adjacent subobject is object tie point, the n
For the integer more than or equal to 2;
The adjacent subgraph width of any two is the first subgraph width and the second subgraph width, a certain entirety in the n sub- map sheets
Subobject of the object in the first subgraph width and the second subgraph width is respectively the first subobject and the second subobject, then described
The object data of first subgraph width of map sheet data processing unit storage includes: between first subobject and the second subobject
Object tie point identification information, the correspondence of the identification information of the second level attribute of the second subobject and second subobject
Relationship;
The object data of second subgraph width of the map sheet data processing unit storage includes: first subobject and the second son
The identification information of object tie point between object, the mark of the second level attribute of first subobject and first subobject
Know the corresponding relationship of information.
10. device as claimed in claim 9, which is characterized in that further include:
Recording unit, the identification information pass corresponding with the identification information of first map sheet for recording multiple second level attributes
System.
11. a kind of client, which is characterized in that including data capture unit and the first map sheet data capture unit, alternatively, including
Data capture unit, the first map sheet data capture unit and the second map sheet data capture unit, in which:
The data capture unit, for receiving the identification information and second level attribute that obtain second level data packet and map sheet
The corresponding relationship of identification information includes the object data of multiple map sheets of second level electronic map in the second level data packet,
The object data of any map sheet includes the identification information of map sheet;The second level electronic map is the electronic map of the second attribute;
The first map sheet data capture unit, for if it is determined that the identification information of the first map sheet corresponds to multiple second level attributes
Identification information, determine the second level data of corresponding multiple second level attributes respectively according to the identification information of first map sheet
First storage location of the object data of correlator map sheet in packet;According to correlator map sheet in the multiple second level data packet
First storage location of object data obtains the object data of correlator map sheet in the multiple second level data packet respectively;
Alternatively, the first map sheet data capture unit, if the identification information for the first map sheet corresponds to multiple second level and belongs to
The identification information of property, the second level data packet of corresponding any second level attribute is determined according to the identification information of first map sheet
In the first map sheet object data the first storage location;According to first storage location in any second level data packet
The middle object data for obtaining the first map sheet;
The second map sheet data capture unit, if getting multiple second level for the first map sheet data capture unit
The object data of correlator map sheet in data packet, according to the object data of correlator map sheet in the multiple second level data packet,
The object data of first map sheet of first order electronic map in first order data packet is obtained, the first order electronic map is
The electronic map of first order attribute.
12. a kind of storage equipment, which is characterized in that the storage equipment includes a plurality of instruction, and described instruction is used for by processor
It loads and executes method as described in any one of claim 1 to 7.
13. a kind of terminal device, which is characterized in that including processor and storage equipment, the processor, for realizing each finger
It enables;
The storage equipment, for storing a plurality of instruction, described instruction is wanted for being loaded by the processor and executing right such as
Seek 1 to 7 described in any item methods.
14. a kind of server, which is characterized in that including processor and storage equipment, the processor, for realizing each instruction;
The storage equipment, for storing a plurality of instruction, described instruction is wanted for being loaded by the processor and executing right such as
Seek 1 to 4 described in any item methods.
15. a kind of data processing system of map sheet, which is characterized in that including server and client side, in which:
The server is the data processing equipment such as the described in any item map sheets of claim 8 to 10, or such as claim 14
The server;
The client is client as claimed in claim 11 or terminal device as claimed in claim 13.
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 true CN108965361A (en) | 2018-12-07 |
CN108965361B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111367649A (en) * | 2018-12-26 | 2020-07-03 | 北京四维图新科技股份有限公司 | High-precision map data parallel processing method and device |
Citations (4)
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 |
-
2017
- 2017-05-19 CN CN201710358765.6A patent/CN108965361B/en active Active
Patent Citations (4)
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 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111367649A (en) * | 2018-12-26 | 2020-07-03 | 北京四维图新科技股份有限公司 | High-precision map data parallel processing method and device |
CN111367649B (en) * | 2018-12-26 | 2024-03-01 | 北京四维图新科技股份有限公司 | High-precision map data parallel processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108965361B (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104376053B (en) | A kind of storage and retrieval method based on magnanimity meteorological data | |
CN104102719B (en) | The method for pushing and device of a kind of trace information | |
CN109478184B (en) | Identifying, processing, and displaying clusters of data points | |
KR101847360B1 (en) | Method, apparatus and system for implementing location based services | |
CN103714080B (en) | The method and apparatus that spatial object search result is provided based on spatial index structure tree | |
US10068033B2 (en) | Graph data query method and apparatus | |
CN106488400B (en) | Generate the method and device of geography fence | |
CN109446385B (en) | Method for establishing network resource equipment map and using method of equipment map | |
CN101370025A (en) | Storing method, scheduling method and management system for geographic information data | |
CN108151744A (en) | Indoor navigation system based on A-STAR algorithms | |
CN103927933A (en) | Method and device for rendering mass moving targets | |
CN104239453B (en) | Data processing method and device | |
CN103377053A (en) | Method, device and system for controlling application | |
US8843480B2 (en) | Server, information-management method, information-management program, and computer-readable recording medium with said program recorded thereon, for managing information input by a user | |
CN105426375A (en) | Relationship network calculation method and apparatus | |
CN107087052A (en) | A kind of Weather information intelligent display method and terminal | |
CN110442659A (en) | A kind of region partitioning method and device | |
CN106488401B (en) | Generate the method and device of seamless adjacent geography fence | |
CN105677755B (en) | A kind of method and device handling diagram data | |
CN103699534A (en) | Display method and device for data object in system directory | |
CN104142952A (en) | Method and device for showing reports | |
CN108965361A (en) | A kind of the map sheet data processing method and device of electronic map | |
EP3149978B1 (en) | System for providing location-based social networking services to users of mobile devices | |
Yao et al. | On the collapse of graphs related to scale-free networks | |
CN105653123B (en) | A kind of icon group technology and terminal device |
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 |