Summary of the invention
The object of the present invention is to provide a kind of display method for electronic map, be intended to solve prior art when showing electronic chart, display speed is slower, the problem that display refresh time is long.
The present invention is achieved in that a kind of display method for electronic map, comprises the profile information and the area to be filled domain information of Drawing Object in the described electronic map data, and described method comprises:
Obtain described profile information and area to be filled domain information;
Draw and show the profile of graph of a correspondence according to described profile information;
Fill the graph of a correspondence object according to described area to be filled domain information, and show the electronic chart after filling.
Further, described step is obtained described profile information and the area to be filled domain information is specially:
Obtain described profile information and obtain described area to be filled domain information and carry out simultaneously; And,
Described drafting also shows that the profile and the described filling graph of a correspondence object of graph of a correspondence carry out simultaneously.
Further, the described step profile information and the area to be filled domain information that obtain Drawing Object in the electronic map data is specially:
Obtaining described profile information carried out before obtaining described area to be filled domain information; And,
Described drafting also shows that the profile of graph of a correspondence carried out before described filling graph of a correspondence object.
Another object of the present invention is to provide a kind of electronic map display equipment, described device comprises:
The map datum memory module is used for the storing electronic map data;
The information acquisition module is used for obtaining the profile information and the area to be filled domain information of electronic map data Drawing Object;
The profile drafting module is used for drawing according to the profile information that described information acquisition module obtains the profile of corresponding Drawing Object;
The zone packing module is used for according to the area to be filled domain information that described information acquisition module obtains Drawing Object being carried out padding;
The electronic chart display module is used to show the electronic chart after described profile drafting module is handled, and/or shows the electronic chart after described regional packing module is handled.
Described information acquisition module further comprises: the information acquisition module is used for obtaining the profile information of Drawing Object in the electronic map data that described map datum memory module stores;
The filling information acquiring unit is used for obtaining the area to be filled domain information of Drawing Object in the electronic map data that described map datum memory module stores.
Further, described device also comprises:
The display buffer module is used for the electronic chart after the described profile drafting module of buffer memory is handled, and/or, the electronic chart after the described regional packing module of buffer memory is handled; At this moment,
Described electronic chart display unit reads electronic chart and demonstration from described display buffer module.
Further, described device also comprises:
Data loader is used for the electronic map data that described map datum memory module is stored is loaded on internal memory; At this moment,
The profile information acquisition module is used for obtaining the profile information of Drawing Object in the electronic map data that described data loader is loaded on internal memory;
The filling information acquisition module is used for obtaining the area to be filled domain information of Drawing Object in the electronic map data that described data loader is loaded on internal memory.
Another object of the present invention is to provide a kind of equipment that comprises electronic map display equipment.
In embodiments of the present invention, utilize the characteristics and the advantage of polar plot, from each the Drawing Object information that constitutes electronic chart, isolate the profile information and the area to be filled domain information of Drawing Object, draw the profile and the demonstration of respective graphical according to the profile information of each Drawing Object, the zone of the contoured of each Drawing Object is filled one by one and show according to the area to be filled domain information, thereby reach the purpose of accelerating the electronic chart display speed.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, utilize the characteristics and the advantage of polar plot, each the Drawing Object information that constitutes electronic chart is divided into corresponding profile information and area to be filled domain information, draw the profile and the demonstration of respective graphical according to the profile information of each Drawing Object, according to the area to be filled domain information processing is filled in the zone of the contoured of each Drawing Object, and show the electronic chart of filling after handling, thereby reach the purpose of accelerating the electronic chart display speed.
Fig. 1 shows the realization flow of the display method for electronic map that the embodiment of the invention provides, and details are as follows:
In step S101, obtain the profile information and the area to be filled domain information of Drawing Object in the electronic map data.
In step S102, draw and show the profile of graph of a correspondence according to described profile information;
In step S103, fill the graph of a correspondence object according to described area to be filled domain information, and show the electronic chart after filling.
In embodiments of the present invention, when in tandem system, the profile information that obtains graph image carried out before obtaining described area to be filled domain information, at this moment, drew the profile that also shows graph of a correspondence and carried out before filling the graph of a correspondence object; When in parallel system, obtain described profile information and obtain described area to be filled domain information and carry out simultaneously, at this moment, draw the profile that also shows graph of a correspondence and fill the graph of a correspondence object and carry out simultaneously.
Fig. 2 shows the realization flow of display method for electronic map in the tandem system that the embodiment of the invention provides, and details are as follows:
In step S201, obtain the profile information of each Drawing Object in the electronic map data.
In embodiments of the present invention, electronic chart adopts polar plot, and promptly electronic chart is made of a plurality of Drawing Objects, and wherein each Drawing Object information comprises profile information and/or area to be filled domain information.Profile information is meant the information that constitutes graph outline, and it includes but not limited to constitute the lines coordinate of graph outline, linear, line thickness, line color etc.Wherein the lines coordinate is meant the geographic position of the lines of determining the formation Drawing Object; The linear shape that is meant the lines that constitute Drawing Object can be solid line, dotted line, dot-and-dash line etc.; Line thickness is meant the width of the lines that constitute Drawing Object, is unit usually with the pixel; Line color is meant the color of the lines that constitute graph outline.
In embodiments of the present invention, when obtaining the profile information of Drawing Object, the value of respective attributes that can be by reading Drawing Object (as the lines coordinate of image outline, linear, line thickness, line color etc.), thereby obtain the profile information of Drawing Object, also the additive method that can adopt prior art to provide obtains the profile information of Drawing Object.
In step S202, according to the profile information graphing contours of objects and the demonstration of the Drawing Object that obtains.
Owing to comprise the lines coordinate of profile, linear, line thickness, line color etc. in the profile information, thereby can determine the position of Drawing Object on screen according to the lines coordinate of profile, adopt linear, line thickness in the profile information and line color to draw the profile of the Drawing Object that the lines coordinate determines again.By obtaining the profile information of each Drawing Object that constitutes electronic chart, and, can draw corresponding Drawing Object according to the profile information of respective graphical.After the profile of all Drawing Objects that constitute electronic chart is completed, the electronic chart of the profile that includes only Drawing Object drawn is presented on the screen.
In the invention process, because the pixel that graph outline comprises generally lacks than the pixel that the inner fill area of figure comprises, and graph outline can have been expressed the key message of this figure, as a rectangle, 4 straight lines that constitute its profile can have been determined the shape facility of this rectangle, and much smaller than the number of pixels of its inner fill area, therefore when drawing this rectangular profile, bandwidth and operational performance that processor needs are all less usually for the related number of pixels of these four straight lines.In other words, the embodiment of the invention can provide more rich electronic map information with less data processing, makes the user can browse to the electronic chart general picture timely, and visual experience preferably is provided, and has accelerated the pre-judgement of user to next step operation.
In step S203, obtain the area to be filled domain information of each Drawing Object that constitutes electronic chart.
Wherein the area to be filled domain information of Drawing Object includes but not limited to zone boundary coordinate, regional Fill Color, regional fill pattern etc.The zone boundary coordinate is meant the coordinate on the border in zone to be filled, the zone Fill Color is meant the color that is used to fill zone to be filled, the zone fill pattern is meant the mode that is used to fill zone to be filled, fills, adopts pure color pattern filling etc. as adopting shadow mode.
The embodiment of the invention, when obtaining the area to be filled domain information of Drawing Object, the value of respective attributes (as zone boundary coordinate, regional Fill Color, regional fill pattern etc.) that can be by reading Drawing Object, thereby obtain the area to be filled domain information of Drawing Object, also the additive method that can adopt prior art to provide obtains the area to be filled domain information of Drawing Object.
In step S204,, each Drawing Object of having drawn profile is filled and shown according to the area to be filled domain information of the Drawing Object that obtains.
When the Drawing Object of having drawn profile is filled, at first determine the border in zone to be filled according to the zone boundary coordinate in the domain information of area to be filled, adopt regional Fill Color and regional fill pattern to fill this zone again.
The embodiment of the invention, when the electronic chart of regional filling has been carried out in demonstration, can be according to the setting of display device, in the default time interval, refresh once, thereby show the electronic chart that has carried out regional filling, also can after fill a Drawing Object of drawing profile, directly trigger display device and refresh, thereby show the electronic chart that has carried out regional filling in real time.
In order further to accelerate the display speed of electronics electronic chart, in another embodiment of the present invention, before the step S201 of display method for electronic map shown in Figure 2, this method also comprises the steps:
The electronics electronic map data of storage in advance is loaded on internal memory.
Fig. 3 shows the realization flow of display method for electronic map in the parallel system that the embodiment of the invention provides, and details are as follows:
In step S301, from all information of each Drawing Object of constituting electronic chart, isolate the profile information and the area to be filled domain information of Drawing Object.The mode of wherein isolating the profile information of Drawing Object and area to be filled domain information from all information of each Drawing Object of constituting electronic chart does not repeat them here as mentioned above.
In step S302, according to the profile information graphing contours of objects and the demonstration of the Drawing Object that obtains.Its detailed process does not repeat them here as mentioned above.
In step S303,, each Drawing Object is filled and shown according to the area to be filled domain information of the Drawing Object that obtains.
In embodiments of the present invention, step S302 and step S303 do not have the branch of sequencing, and promptly step S302 and step S303 can carry out simultaneously, and the carrying out of sequencing also can be arranged.
In embodiments of the present invention, when the electronic chart of regional filling has been carried out in demonstration, can be according to the setting of display device, in the default time interval, refresh once, thereby show the electronic chart that has carried out regional filling, also can after fill a Drawing Object of drawing profile, directly trigger display device and refresh, thereby show the electronic chart that has carried out regional filling in real time.
In order further to accelerate the display speed of electronics electronic chart, in another embodiment of the present invention, before the step S301 of display method for electronic map shown in Figure 3, this method also comprises the steps:
The electronics electronic map data of storage in advance is loaded on internal memory.
Fig. 4 shows the structure of the electronic map display equipment that the embodiment of the invention provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.This electronic map display equipment can be to be built in the unit that combines such as the hardware cell in the electronic equipments such as computing machine, portable terminal, software unit or software and hardware.
Map datum memory module 41 storing electronic map data.
Information acquisition module 42 obtains the profile information and the area to be filled domain information of the Drawing Object that constitutes electronic chart from the electronic map data of map datum memory module 41 storages.Wherein the profile information of Drawing Object includes but not limited to constitute the lines coordinate of graph outline, linear, line thickness, line color etc., can determine the profile of Drawing Object according to the profile information of Drawing Object.The area to be filled domain information of Drawing Object but be not limited to zone boundary coordinate, regional Fill Color, regional fill pattern etc. can carry out padding to Drawing Object according to the area to be filled domain information of Drawing Object.
Wherein information acquisition module 42 comprises profile information acquisition module 421 and filling information acquisition module 422.This profile information acquisition module 421 obtains the profile information of Drawing Object in the electronic map data of storing in the map datum memory module 41.Filling information acquisition module 422 obtains the area to be filled domain information of Drawing Object in the electronic map data of storing in the map datum memory module 41.
The profile information of the Drawing Object that profile drafting module 43 obtains according to information acquisition module 42 is drawn the profile of corresponding Drawing Object.Its concrete drawing process does not repeat them here as mentioned above.
Electronic chart display module 45 shows the electronic chart after profile drafting module 43 is handled.
Zone packing module 44 carries out padding according to the area to be filled domain information of the Drawing Object that information acquisition module 42 obtains to Drawing Object.Its concrete filling process does not repeat them here as mentioned above.At this moment, the electronic chart after electronic chart display module 45 viewing area packing modules 44 are handled.
When in tandem system, preferentially start profile information acquisition module 421, preferentially obtain the profile information of the image object of electronic chart.Because the data throughout the when data throughout of Drawing Object when profile is drawn filled in the zone much smaller than Drawing Object, therefore, in embodiments of the present invention, from the electronic map data of map datum memory module 41 storages, obtain the profile information of the Drawing Object that constitutes electronic chart earlier by profile information acquisition module 421, profile drafting module 43 is drawn corresponding profile according to the profile information of the Drawing Object that profile information acquisition module 421 obtains, and by the electronic chart after 43 processing of electronic chart display module 45 demonstration profile drafting modules, thereby can provide more rich electronic map information with less data processing, make the user can browse to the overview of this electronic chart timely, determine the target electronic map area in advance, accelerate pre-judgement next step operation.
Drawn the profile of all Drawing Objects that constitute electronic chart at profile drafting module 43 after, restart filling information acquisition module 422, from the electronic map data of map datum memory module 41 storages, obtain the area to be filled domain information of the Drawing Object that constitutes electronic chart, zone packing module 44 carries out padding according to the area to be filled domain information of the Drawing Object that filling information acquisition module 422 obtains to Drawing Object, and by the electronic chart after 44 processing of electronic chart display module 45 viewing area packing modules, thereby make the user can browse complete target area.
When in parallel system, can start profile information acquisition module 421 and filling information acquisition module 422 simultaneously, and profile drafting module 43 and regional packing module 44 can start simultaneously also.
The embodiment of the invention is drawn and the zone filling by adopting separate profile drafting module 43 and regional packing module 44 respectively same Drawing Object to be carried out profile.In the system of serial structure, preferentially trigger the Drawing Object profile that profile drafting module 43 is drawn, and preferentially show the figure after profile drafting module 43 is handled, thereby finally improved the display refresher rate of electronic chart.
In order to reach more level and smooth electronic chart display effect, in another embodiment of the present invention, this electronic map display equipment also comprises display buffer module 46.Electronic chart after these display buffer module 46 buffer memory profile drafting modules 43 are handled, and/or, the electronic chart after buffer zone packing module 44 is handled.Being profile drafting module 43 is plotted in display buffer module 46 according to profile information with the profile of Drawing Object, electronic chart display module 45 reads electronic map data and shows from display buffer module 46, and/or, zone packing module 44 is filled the corresponding region of Drawing Object according to the area to be filled domain information, and the electronic chart after will filling is stored in display buffer module 46, and electronic chart display module 45 reads electronic map data and shows from display buffer module 46.
In order further to accelerate the display speed of electronics electronic chart, in another embodiment of the present invention, this electronic map display equipment also comprises data loader 47.The electronic map data that this data loader 47 will be stored in the 7 map datum memory modules 41 is loaded on internal memory.At this moment, information acquisition module 42 obtains the profile information and the area to be filled domain information of Drawing Object from data loader 47 is loaded into electronic map data the internal memory.
In embodiments of the present invention, by characteristics and the advantage that makes full use of vector graphics, from the Drawing Object of upper strata, isolate this contours of objects information and area to be filled domain information, and draw and the profile of Displaying graphical objects according to profile information, according to the interior zone of area to be filled domain information pattern filling object and show.Because the bandwidth and the operational performance of the needed processor of profile of drafting electronic chart Drawing Object are all less, thereby can provide more rich electronic map information with less data processing, visual experience preferably is provided, has accelerated the pre-judgement of user next step operation.Pass through to adopt two separate processing units simultaneously, a unit graphing contours of objects, the interior zone of a unit pattern filling object by serial or parallel working method, has finally improved the display refresher rate of electronic chart.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.