CN105574102A - Electronic map data loading method and device - Google Patents
Electronic map data loading method and device Download PDFInfo
- Publication number
- CN105574102A CN105574102A CN201510922569.8A CN201510922569A CN105574102A CN 105574102 A CN105574102 A CN 105574102A CN 201510922569 A CN201510922569 A CN 201510922569A CN 105574102 A CN105574102 A CN 105574102A
- Authority
- CN
- China
- Prior art keywords
- section base
- data
- map
- base map
- described section
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Instructional Devices (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses an electronic map data loading method and device. According to the method, data cache is carried out on interest points to divide the range of a map accessed by a user into a plurality of blank section base maps with transparent backgrounds; in response to the coordinate range of each section base map and the coordination data information of the longitudes and latitudes of the interest points in the cached data, the positions of icons corresponding to the data in the section base maps are determined and then plotted into the section base maps, and then the current section base map with icon plotted is overlapped with a background map layer to realize the map revealing effect of a large data volume of interest points. Compared with the prior art, the method and device disclosed in the invention have the advantages of improving the data loading order and loading efficiency of the large data volume of interest points of the electronic map, and improving the phenomena of relatively long client waiting time and white screen.
Description
Technical field
The present invention relates to communication technical field, particularly relate to method and the device of the loading of a kind of electronic map data.
Background technology
In electronic map field, POI (PointofInterest) the i.e. positional information of point of interest is the most basic category information being also us and paying close attention to most, point of interest can be a house, a dining room, a school, bank etc. to live closely bound up public place or mechanism, building etc. with us; At safety-security area, the installation site of camera is also the information that we are concerned about most, and these information can be solved a case for public security and be provided faster video information clue more intuitively, for the coverage rate of sky net engineering provides data, also can provide foundation for the decision-making of emergency command.Under the background of Internet technology fast development, this visualization technique of electronic chart also gets more and more in the deep application of safety-security area, the thing followed is that a large amount of point of interest needs to represent on map, and the order of magnitude is from 1 thousand to one ten thousand, 100,000 or even 1,000,000 ranks.Implementation main at present has: 1, get on map by point of interest with the form of image labeling (Marker); 2, adopt some vacuate to be similar to the method represented to show; 3, numerous point of interest is shown on foreground with the form of layer.
But existing three kinds of technical schemes have and there is certain weak point, such as, the first image labeling point exhibition scheme, because each marker point occupies the certain internal memory of browser, increase along with needing the order of magnitude of the POI object shown, from tens, become hundred, thousands ofly even 100,000 to add to several ten thousand, the total size of browser internal memory that these marker points occupy also increases along with the order of magnitude and rises violently, the internal memory accounting for operating system due to browser is limited, when marker point position is to some, map was caused to drag very card because internal memory occupies senior general, on map, also quite slowly even directly to cause browser to be run quickly routed in other operation, the method of the second point polymerization is similar to exhibition scheme, the program is only applicable to macroscopic view and shows some position roughly distribution situation, safety-security area public security department cannot be met requirement is checked to the actual position of video and other points of interest and real-time video, and once data volume rises to 100,000 ranks, the some bit quantity after polymerization also can cause ground graph card to pause, the third uses client to load the mode of backstage layer service, when needs load big data quantity time, it is slower that server end generates this layer of plotting, consuming time more, when the continuous moving map position of client, can ceaselessly to server end request service, now client there will be white screen phenomenon, just to there will be map after a while, efficiency comparison difference of publishing picture.
Therefore, how improving Data import magnitude and the loading efficiency of the large quantity point of interest of electronic chart, improve the phenomenon of client stand-by period longer and white screen, is those skilled in the art's technical matterss urgently to be resolved hurrily.
Summary of the invention
Embodiments provide method and the device of the loading of a kind of electronic map data, in order to improve loading magnitude and the loading efficiency of electronic chart big data quantity point of interest, improve the phenomenon of client stand-by period longer and white screen, realize loading and displaying that 100,000 add interest point data.
Embodiments provide a kind of method that electronic map data loads, comprising:
The data of searching needed for point of interest are obtained from database;
The map reference scope that active user accesses is carried out cutting, generates multiple blank and section base maps of background transparent and often open coordinate range corresponding to described section base map;
According to the coordinate data information of the longitude and latitude of point of interest in the described data of the coordinate range and buffer memory of often opening described section base map, determine the position of the icon corresponding with described data in described section base map and mark and draw described section base map in real time;
With the tile of engine map layer as a setting, be added to the described section base map after current plotting described Background From Layer.
In a kind of possible embodiment, in the said method that the embodiment of the present invention provides, described the map reference scope that active user accesses is carried out cutting, generates multiple blank and section base maps of background transparent and often open coordinate range corresponding to described section base map, specifically comprising:
The map reference scope that active user accesses is carried out cutting, generates the identical blank of multiple sizes and background transparent section base map and often open coordinate range corresponding to described section base map; Wherein, the shape of described section base map is rectangle.
In a kind of possible embodiment, in the said method that the embodiment of the present invention provides, the described map reference scope by active user's access carries out cutting, specifically comprises:
Cutting is carried out with the self-defined map reference scope of mode to user's current accessed arranging described section base map size.
In a kind of possible embodiment, in the said method that the embodiment of the present invention provides, according to the coordinate data information of point of interest longitude and latitude in the described data of the coordinate range and buffer memory of often opening described section base map, determine the position of the icon corresponding with described data in described section base map and mark and draw described section base map in real time, specifically comprising:
According to the Pixel Dimensions of the icon corresponding with described data, and often open coordinate range and the Pixel Dimensions of described section base map, generate the buffering coordinate range on corresponding band border;
The data of buffer memory are carried out matching operation with corresponding buffering coordinate range, obtains the data cached collection that each described section base map is corresponding;
According to often opening the Pixel Dimensions of described section base map and corresponding buffering coordinate range, described data cached longitude and the latitude coordinate data message concentrating every bar data, and the Pixel Dimensions of the icon of corresponding described data, determine the relative position of the icon corresponding with described data in each described section base map;
Data are marked and drawed in real time the relative position in each described section base map with form of icons.
In a kind of possible embodiment, in the said method that the embodiment of the present invention provides, described with the tile of engine map layer as a setting, be added to the described section base map after current plotting described Background From Layer, specifically comprises:
Adopt the grid tile service layer layer as a setting of access engine map tile, be added to the described section base map after current plotting grid tile service layer.
Embodiments provide the device that a kind of electronic map data loads, comprising: acquiring unit, cutting unit, plotting unit and superpositing unit; Wherein,
Described acquiring unit for obtaining the data buffer memory of searching needed for point of interest from database;
The map reference scope that described cutting unit is used for active user accesses carries out cutting, generates multiple blank and section base maps of background transparent and often opens coordinate range corresponding to described section base map;
Described plotting unit is used for the coordinate data information according to the longitude and latitude often opening point of interest in the coordinate range of described section base map and the described data of buffer memory, determines the position of the icon corresponding with described data in described section base map and marks and draws described section base map in real time;
Described superpositing unit is used for the tile of engine map layer as a setting, and be added to the described section base map after current plotting described Background From Layer.
In a kind of possible embodiment, in the said apparatus that the embodiment of the present invention provides, described cutting unit specifically for:
The map reference scope that active user accesses is carried out cutting, generates the identical blank of multiple sizes and the section base map of background transparent and often open coordinate range corresponding to described section base map; Wherein, the shape of described section base map is rectangle.
In a kind of possible embodiment, in the said apparatus that the embodiment of the present invention provides, described cutting unit carries out cutting with the self-defined map reference scope of mode to user's current accessed arranging described section base map size.
In a kind of possible embodiment, in the said apparatus that the embodiment of the present invention provides, described plotting unit specifically for:
According to the Pixel Dimensions of the icon corresponding with described data, and often open coordinate range and the Pixel Dimensions of described section base map, generate the buffering coordinate range on corresponding band border;
The data of buffer memory are carried out matching operation with corresponding buffering coordinate range, obtains the data cached collection that each described section base map is corresponding;
According to often opening the Pixel Dimensions of described section base map and corresponding buffering coordinate range, described data cached longitude and the latitude coordinate data message concentrating every bar data, and the Pixel Dimensions of the icon of corresponding described data, determine the relative position of the icon corresponding with described data in each described section base map;
Data are marked and drawed in real time the relative position in each described section base map with form of icons.
In a kind of possible embodiment, in the said apparatus that the embodiment of the present invention provides, described superpositing unit specifically for:
Adopt the grid tile service layer layer as a setting of access engine map tile, be added to the described section base map after current plotting grid tile service layer.
The beneficial effect of the invention process example comprises:
Embodiments provide method and the device of the loading of a kind of electronic map data, the method that this electronic map data loads comprises: from database, obtain the data of searching needed for point of interest and buffer memory; The map reference scope that active user accesses is carried out cutting, generates multiple blank and section base maps of background transparent and often open coordinate range corresponding to section base map; According to the coordinate data information of longitude and latitude of often opening point of interest in the section coordinate range of base map and the data of buffer memory, determine the position of the icon corresponding with data in section base map and mark and draw section base map in real time; With the tile of engine map layer as a setting, be added to the section base map after current plotting Background From Layer.Like this by loading the data buffer storage of point of interest, the body of a map or chart cutting that user accesses is multiple blank and the section base map of background transparent, corresponding coordinate data information of often opening longitude and latitude in the section coordinate range of base map and the data of buffer memory, determine that the position of the icon corresponding with data in section base map is is also marked and drawed in section base map in real time, and then the section base map after current plotting is superposed with Background From Layer, the map achieving big data quantity point of interest represents effect, Data import magnitude and the loading efficiency of the large quantity point of interest of electronic chart is improve relative to prior art, improve the phenomenon of client stand-by period longer and white screen.
Accompanying drawing explanation
The method flow diagram that the electronic map data that Fig. 1 provides for the embodiment of the present invention loads;
What Fig. 2 provided for the embodiment of the present invention marks and draws blank and the design sketch of the section base map of background transparent by icon;
Fig. 3 for the embodiment of the present invention provide by mark and draw the section base map after icon superpose with Background From Layer after design sketch;
Electronic chart bandwagon effect figure after the big data quantity point of interest that Fig. 4 provides for the embodiment of the present invention loads;
The apparatus structure schematic diagram that the electronic map data that Fig. 5 provides for the embodiment of the present invention loads.
Embodiment
Below in conjunction with accompanying drawing, the method for electronic map data loading provide the embodiment of the present invention and the embodiment of device are described in detail.
Embodiments provide a kind of method that electronic map data loads, as shown in Figure 1, can comprise the following steps:
S101, from database, obtain the data of searching needed for point of interest and buffer memory;
S102, the map reference scope that active user accesses is carried out cutting, generate multiple blank and section base maps of background transparent and often open coordinate range corresponding to section base map;
S103, according to the coordinate data information of longitude and latitude of often to open point of interest in the section coordinate range of base map and the data of buffer memory, determine the position of the icon corresponding with data in section base map and mark and draw section base map in real time;
S104, with the tile of engine map layer as a setting, be added to the section base map after current plotting Background From Layer.
In the method that the above-mentioned electronic map data that the embodiment of the present invention provides loads, by loading the data buffer storage of point of interest, wherein, when Map Service starts, just can obtain required mass data from database, generation can high concurrent reading and writing data cached, and every bar data can comprise: point of interest type, longitude and latitude coordinate data, duty, affiliated organization number etc. (can increase field according to business demand), and then the body of a map or chart cutting that user accesses is multiple blank and the section base map of background transparent, corresponding coordinate data information of often opening longitude and latitude in the section coordinate range of base map and the data of buffer memory, determine that section base map is is also marked and drawed in real time in the position of the icon corresponding with data in section base map, then the section base map after current plotting is superposed with Background From Layer, the map achieving big data quantity point of interest represents effect, Data import magnitude and the loading efficiency of the large quantity point of interest of electronic chart is improve relative to prior art, improve the phenomenon of client stand-by period longer and white screen, in addition, the method that the electronic map data that the embodiment of the present invention provides loads can adopt java technology to realize, cross-platform can be supported, there is the advantage that lightweight is easily disposed.
In the specific implementation, in the said method that the embodiment of the present invention provides, step S102 can specifically comprise: the map reference scope that active user accesses is carried out cutting, generates the identical blank of multiple sizes and the section base map of background transparent and often open coordinate range corresponding to section base map; Wherein, the shape of section base map is rectangle.Particularly, in the said method that the embodiment of the present invention provides, in order to improve the data loading efficiency of electronic chart, the coordinate range of the electronic chart of user's current accessed can be carried out cutting, generate the identical blank of multiple sizes and the section base map of background transparent and often open coordinate range corresponding to section base map, so often open the corresponding coordinate range of section base map, need the data that load can respectively with often open base map of cutting into slices and mate, because the size and shape often opening section base map is identical, and then multithreading service can be adopted, often open the corresponding threading service of section base map, thus request of data and the efficiency returning loading can be improved.
Particularly, in the prior art, such as, on map, video point position is shown in Marker mode, the program marks and draws a DOM Document Object Model in a browser as marker, then the information this marker object binding needing show is given, comprise the object picture icon of displaying, the message box shown is needed after click, various attribute informations in message box etc., therefore a marker point position occupies certain browser memory size, increase along with needing the order of magnitude of the point of interest object shown, from tens, become hundred, thousands ofly even 100,000 to add to several ten thousand, the total size of browser internal memory that these marker points occupy also increases along with the order of magnitude and rises violently, the internal memory accounting for operating system due to browser is limited, when marker point position is to some, because internal memory occupies excessive, map is caused to drag very card, on map, also quite slowly even directly to cause browser to be run quickly routed in other operation, empirical tests IE series major browsers can only carry within 1500 some positions.And the method that the electronic map data that the embodiment of the present invention provides loads, often open blank and the corresponding coordinate range of background transparent section base map, need the data that load can respectively with often open base map of cutting into slices and mate, because the size and shape often opening section base map is identical, and then multithreading service can be adopted, often open the corresponding threading service of section base map, thus the efficiency of Data import can be improved, data level second that can realize 150000 ranks like this loads and does not affect other operations of map, and the phenomenon that browser more can not be caused to run quickly routed occurs.
In the specific implementation, in the said method that the embodiment of the present invention provides, the map reference scope that active user accesses is carried out cutting, can specifically comprise: carry out cutting with the self-defined map reference scope of mode to user's current accessed arranging section base map size.Particularly, in the said method that the embodiment of the present invention provides, multiple sizes that are blank and background transparent section base map the cutting of map reference scope generated can self-definedly be arranged, like this can for different engine map services, adopt self-defined mode, cutting is carried out to the coordinate range of map, form blank and background transparent section base map, and then will the data loaded be needed to mark and draw section base map in real time, namely the method that the electronic map data that the embodiment of the present invention provides loads supports any engine map and service of having issued the service of tile pyramid, can realize across engine map service.
In the specific implementation, in the said method that the embodiment of the present invention provides, step S103 can specifically comprise:
According to the Pixel Dimensions of the icon corresponding with data, and often open coordinate range and the Pixel Dimensions of section base map, generate the buffering coordinate range on corresponding band border;
The data of buffer memory are carried out matching operation with corresponding buffering coordinate range, obtains the data cached collection that each section base map is corresponding;
According to Pixel Dimensions and the corresponding buffering coordinate range of section base map, data cached longitude and the latitude coordinate data message concentrating every bar data, and the Pixel Dimensions of the icon of corresponding data, determine the relative position of the icon corresponding with data in each section base map;
Data are marked and drawed in real time the relative position in each section base map with form of icons.
Particularly, in the said method that the embodiment of the present invention provides, according to the Pixel Dimensions of the icon corresponding with data, and often open coordinate range and the Pixel Dimensions of section base map, generate the buffering coordinate range on corresponding band border, and then adopt multithreading service, often open the corresponding threading service of section base map, the data of buffer memory are carried out matching operation with corresponding buffering coordinate range, obtain the data cached collection that each section base map is corresponding, thus according to the Pixel Dimensions of section base map and the buffering coordinate range of correspondence, data cached longitude and the latitude coordinate data message concentrating every bar data, and the Pixel Dimensions of the icon of corresponding data, obtain the relative position of the icon corresponding with data in each section base map, and in real time icon is marked and drawed section base map, mark and draw result as shown in Figure 2.
Particularly, in prior art, the exhibition method of some polymerization is adopted namely to show electronic chart by approximate gimmick, wherein the main algorithm point aggregating algorithm that has the some aggregating algorithm (Grid-basedClustering) based on grid, the some aggregating algorithm (Distance-basedClustering) based on distance and combine based on grid and distance.The point polymerization principle using the third maximum algorithms to combine based on grid and distance is: without any known congruent point time initial, then iteration is carried out to each point, calculate the outsourcing square of a point, if the outsourcing square of this point is non-intersect with the outsourcing square of existing congruent point, then newly-built congruent point is (based on the algorithm of direct range before being different from, here not the distance between calculation level and point, but calculate the outsourcing square of a point, the foursquare length of side is specified by user or programming default value), if intersect, then this point is aggregated in this congruent point, if put crossing with the outsourcing square of multiple known congruent point, then calculate the distance of this point to congruent point, be aggregated in nearest congruent point, circulation like this, until institute a little all travels through complete, each level of zoom travels through all original point key elements again, an only mark Marker point position, this point is represented the figure denote of how many some position on icon simultaneously, the program is only applicable to macroscopic view and shows some position roughly distribution situation, safety-security area public security department cannot be met requirement is checked to the actual position of video and other points of interest and real-time video, and once data volume rises to 100,000 ranks, gathering the some bit quantity after faling apart also can cause ground graph card to pause.And the method that the electronic map data that the embodiment of the present invention provides loads, can according to often opening blank and the coordinate range of background transparent section base map, employing multithreading is served, often open the corresponding threading service of section base map, matching operation data and the position relationship of section base map, obtain the relative position of the icon corresponding with data in section base map, and mark and draw icon in real time to section base map respectively, the physical location of point of interest can be shown completely, be convenient to the informationization application of safety-security area.
In the specific implementation, in the said method that the embodiment of the present invention provides, step S104 can specifically comprise: the grid tile service layer layer as a setting adopting access engine map tile, be added to the section base map after current each plotting grid tile service layer.Particularly, in the said method that the embodiment of the present invention provides, adopt the grid tile service layer layer as a setting of access engine map tile, such as Police Geographic Information System can be accessed, Google Maps, it map, ArcGIS, Baidu's map, high moral map, the engine map services such as MapABC, namely the method that the electronic map data that the embodiment of the present invention provides loads, any engine map and service of having issued the service of tile pyramid can be supported, and then adopt the mode of transparent tile rotating savings icon, data are marked and drawed blank and the section base map of background transparent in real time with form of icons, by the grid tile service map overlay that the section base map marked and drawed is served with access engine map, after superposition as shown in Figure 3, thus the map achieving big data quantity represents effect, as shown in Figure 4, the effect that the big data quantity point of interest that the method that the electronic data provided for adopting the embodiment of the present invention loads realizes loads.Improve Data import magnitude and the loading efficiency of the large quantity point of interest of electronic chart relative to prior art, improve the phenomenon of client stand-by period longer and white screen.
Particularly, in prior art, adopt numerous point of interest as a layer, namely the form of layer shows electronic chart at browser client, concrete principle is for the big data quantity point position that will will show is as special map engine such as ArcGIS, a special topic point layer of Baidu, then this layer is issued into a mapserver service, in service end, the base map service of this layer service and map is superimposed together, generate a pictures, client browser only needs to load this whole pictures and shows, but use client to load the mode of backstage layer service, when needs load big data quantity time, it is slower that server end generates this layer of plotting, consuming time more, when the continuous moving map position of client, can ceaselessly to server end request service, now client there will be white screen phenomenon, just to there will be map after a while, efficiency of publishing picture and customer experience poor.And the method that the electronic map data that the embodiment of the present invention provides loads, adopt transparent tile plot target mode, data are marked and drawed blank in real time with form of icons and background transparent section base map, by the grid tile service map overlay that the section base map marked and drawed is served with access engine map, thus the map achieving big data quantity represents effect, improve the data loading efficiency of the large quantity of electronic chart relative to prior art, improve the phenomenon of client stand-by period longer and white screen.
Based on same inventive concept, embodiments provide the device that a kind of electronic map data loads, as shown in Figure 5, can comprise: acquiring unit 01, cutting unit 02, plotting unit 03 and superpositing unit 04; Wherein, acquiring unit 01 for obtaining the data buffer memory of searching needed for point of interest from database; Cutting unit 02 carries out cutting for the map reference scope of active user being accessed, and generates multiple blank and section base maps of background transparent and often opens coordinate range corresponding to section base map; Mark and draw unit 03 for according to the coordinate data information of longitude and latitude of often to open point of interest in the section coordinate range of base map and the data of buffer memory, determine the position of the icon corresponding with data in section base map and mark and draw section base map in real time; Superpositing unit 04 is for the tile of engine map layer as a setting, and be added to the section base map after current plotting Background From Layer.
The device that the above-mentioned electronic map data that the embodiment of the present invention provides loads, can by the data buffer storage of acquiring unit to point of interest, the body of a map or chart cutting of user being accessed by cutting unit is multiple blank and the section base map of background transparent, mark and draw unit according to the coordinate data information of often opening longitude and latitude in the section coordinate range of base map and the data of buffer memory, determine that section base map is is also marked and drawed in real time in the position of the icon corresponding with data in section base map, and then by superpositing unit, the section base map after current plotting is superposed with Background From Layer, the map achieving big data quantity point of interest represents effect, Data import magnitude and the loading efficiency of the large quantity point of interest of electronic chart is improve relative to prior art, improve the phenomenon of client stand-by period longer and white screen.
In the specific implementation, in the said apparatus that the embodiment of the present invention provides, cutting unit specifically for: the map reference scope that active user accesses is carried out cutting, generates the identical blank of multiple sizes and the section base map of background transparent and often open coordinate range corresponding to section base map; Wherein, the shape of section base map is rectangle.Particularly, in the said apparatus that the embodiment of the present invention provides, in order to improve the data loading efficiency of electronic chart, by cutting unit, the coordinate range of the electronic chart of user's current accessed can be carried out cutting, generate the identical blank of multiple sizes and background transparent section base map and often open coordinate range corresponding to section base map, wherein, cutting unit carries out cutting with the self-defined map reference scope of mode to user's current accessed arranging section base map size.So often open the corresponding coordinate range of section base map, need the data that load can respectively with often open base map of cutting into slices and mate, because the size and shape often opening section base map is identical, and then multithreading service can be adopted, often open the corresponding threading service of section base map, thus request of data and the efficiency returning loading can be improved.
In the specific implementation, in the said apparatus that the embodiment of the present invention provides, mark and draw unit specifically for: according to the Pixel Dimensions of the icon corresponding with data, and often open the section coordinate range of base map and Pixel Dimensions, generate the buffering coordinate range on corresponding band border; The data of buffer memory are carried out matching operation with corresponding buffering coordinate range, obtains the data cached collection that each section base map is corresponding; According to often opening the Pixel Dimensions of section base map and corresponding buffering coordinate range, data cached longitude and the latitude coordinate data message concentrating every bar data, and the Pixel Dimensions of the icon of corresponding data, determine the relative position of the icon corresponding with data in each section base map; Data are marked and drawed in real time the relative position in each section base map with form of icons.Particularly, in the said apparatus that the embodiment of the present invention provides, according to the Pixel Dimensions of the icon corresponding with data, and often open coordinate range and the Pixel Dimensions of section base map, generate the buffering coordinate range on corresponding band border, and then adopt multithreading service, often open the corresponding threading service of section base map, the data of buffer memory are carried out matching operation with corresponding buffering coordinate range, obtain the data cached collection that each section base map is corresponding, according to often opening the Pixel Dimensions of section base map and corresponding buffering coordinate range, data cached longitude and the latitude coordinate data message concentrating every bar data, and the Pixel Dimensions of the icon of corresponding data, obtain the relative position of the icon corresponding with data in each section base map, and icon is marked and drawed in real time section base map, and then improve the efficiency of Data import.
In the specific implementation, in the said apparatus that the embodiment of the present invention provides, superpositing unit specifically for: the grid tile service layer layer as a setting adopting access engine map tile, be added to the section base map after current each plotting grid tile service layer.Particularly, the said apparatus that the embodiment of the present invention provides, any engine map and service of having issued the service of tile pyramid can be supported, adopt transparent tile plot target mode, data are marked and drawed blank in real time with form of icons and background transparent section base map, by the grid tile service map overlay that the section base map marked and drawed is served with access engine map by superpositing unit, thus the map achieving big data quantity point of interest represents effect, Data import magnitude and the loading efficiency of the large quantity point of interest of electronic chart is improve relative to prior art, improve the phenomenon of client stand-by period longer and white screen.
Embodiments provide method and the device of the loading of a kind of electronic map data, the method that this electronic map data loads comprises: from database, obtain the data of searching needed for point of interest and buffer memory; The map reference scope that active user accesses is carried out cutting, generates multiple blank and section base maps of background transparent and often open coordinate range corresponding to section base map; According to the coordinate data information of longitude and latitude of often opening point of interest in the section coordinate range of base map and the described data of buffer memory, determine the position of the icon corresponding with data in described section base map and mark and draw described section base map in real time; With the tile of engine map layer as a setting, be added to the section base map after current each plotting Background From Layer.Like this by loading the data buffer storage of point of interest, the body of a map or chart cutting that user accesses is multiple blank and the section base map of background transparent, corresponding coordinate data information of often opening longitude and latitude in the section coordinate range of base map and the data of buffer memory, determine that the position of the icon corresponding with data in section base map is is also marked and drawed in section base map in real time, and then the section base map after current plotting is superposed with Background From Layer, the map achieving big data quantity point of interest represents effect, Data import magnitude and the loading efficiency of the large quantity point of interest of electronic chart is improve relative to prior art, improve the phenomenon of client stand-by period longer and white screen.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. a method for electronic map data loading, is characterized in that, comprising:
The data of searching needed for point of interest are obtained and buffer memory from database;
The map reference scope that active user accesses is carried out cutting, generates multiple blank and section base maps of background transparent and often open coordinate range corresponding to described section base map;
According to the coordinate data information of the longitude and latitude of point of interest in the described data of the coordinate range and buffer memory of often opening described section base map, determine the position of the icon corresponding with described data in described section base map and mark and draw described section base map in real time;
With the tile of engine map layer as a setting, be added to the described section base map after current plotting described Background From Layer.
2. the method for claim 1, is characterized in that, described the map reference scope that active user accesses is carried out cutting, generates multiple blank and section base maps of background transparent and often opens coordinate range corresponding to described section base map, specifically comprising:
The map reference scope that active user accesses is carried out cutting, generates the identical blank of multiple sizes and the section base map of background transparent and often open coordinate range corresponding to described section base map; Wherein, the shape of described section base map is rectangle.
3. method as claimed in claim 2, is characterized in that, the described map reference scope by active user's access carries out cutting, specifically comprises:
Cutting is carried out with the self-defined map reference scope of mode to user's current accessed arranging described section base map size.
4. the method for claim 1, it is characterized in that, according to the coordinate data information of the longitude and latitude of point of interest in the described data of the coordinate range and buffer memory of often opening described section base map, determine the position of the icon corresponding with described data in described section base map and mark and draw described section base map in real time, specifically comprising:
According to the Pixel Dimensions of the icon corresponding with described data, and often open coordinate range and the Pixel Dimensions of described section base map, generate the buffering coordinate range on corresponding band border;
The data of buffer memory are carried out matching operation with corresponding buffering coordinate range, obtains the data cached collection that each described section base map is corresponding;
According to often opening the Pixel Dimensions of described section base map and corresponding buffering coordinate range, described data cached longitude and the latitude coordinate data message concentrating every bar data, and the Pixel Dimensions of the icon of corresponding described data, determine the relative position of the icon corresponding with described data in each described section base map;
Data are marked and drawed in real time the relative position in each described section base map with form of icons.
5. the method for claim 1, is characterized in that, described with the tile of engine map layer as a setting, and be added to the described section base map after current plotting described Background From Layer, specifically comprises:
Adopt the grid tile service layer layer as a setting of access engine map tile, be added to the described section base map after current plotting grid tile service layer.
6. a device for electronic map data loading, is characterized in that, comprising: acquiring unit, cutting unit, plotting unit and superpositing unit; Wherein,
Described acquiring unit for obtaining the data buffer memory of searching needed for point of interest from database;
The map reference scope that described cutting unit is used for active user accesses carries out cutting, generates multiple blank and section base maps of background transparent and often opens coordinate range corresponding to described section base map;
Described plotting unit is used for the coordinate data information according to the longitude and latitude often opening point of interest in the coordinate range of described section base map and the described data of buffer memory, determines the position of the icon corresponding with described data in described section base map and marks and draws described section base map in real time;
Described superpositing unit is used for the tile of engine map layer as a setting, and be added to the described section base map after current plotting described Background From Layer.
7. device as claimed in claim 6, is characterized in that, described cutting unit specifically for:
The map reference scope that active user accesses is carried out cutting, generates the identical blank of multiple sizes and the section base map of background transparent and often open coordinate range corresponding to described section base map; Wherein, the shape of described section base map is rectangle.
8. device as claimed in claim 7, it is characterized in that, described cutting unit carries out cutting with the self-defined map reference scope of mode to user's current accessed arranging described section base map size.
9. device as claimed in claim 6, is characterized in that, described plotting unit specifically for:
According to the Pixel Dimensions of the icon corresponding with described data, and often open coordinate range and the Pixel Dimensions of described section base map, generate the buffering coordinate range on corresponding band border;
The data of buffer memory are carried out matching operation with corresponding buffering coordinate range, obtains the data cached collection that each described section base map is corresponding;
According to often opening the Pixel Dimensions of described section base map and corresponding buffering coordinate range, described data cached longitude and the latitude coordinate data message concentrating every bar data, and the Pixel Dimensions of the icon of corresponding described data, determine the relative position of the icon corresponding with described data in each described section base map;
Data are marked and drawed in real time the relative position in each described section base map with form of icons.
10. device as claimed in claim 6, is characterized in that, described superpositing unit specifically for:
Adopt the grid tile service layer layer as a setting of access engine map tile, be added to the described section base map after current plotting grid tile service layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510922569.8A CN105574102B (en) | 2015-12-11 | 2015-12-11 | A kind of method and device of electronic map data load |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510922569.8A CN105574102B (en) | 2015-12-11 | 2015-12-11 | A kind of method and device of electronic map data load |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105574102A true CN105574102A (en) | 2016-05-11 |
CN105574102B CN105574102B (en) | 2018-12-07 |
Family
ID=55884233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510922569.8A Active CN105574102B (en) | 2015-12-11 | 2015-12-11 | A kind of method and device of electronic map data load |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105574102B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106919592A (en) * | 2015-12-24 | 2017-07-04 | 北京计算机技术及应用研究所 | The method for setting up Multi-stage electronic map |
CN109241213A (en) * | 2018-07-26 | 2019-01-18 | 汉华易美(天津)图像技术有限公司 | A kind of electronic map point polymerization and device |
CN109889785A (en) * | 2019-02-26 | 2019-06-14 | 高新兴科技集团股份有限公司 | A kind of dummy emulation method that the POI label based on unity is shown |
CN110019618A (en) * | 2017-12-06 | 2019-07-16 | 华平信息技术股份有限公司 | The rendering method and system, memory and equipment of electronic map multi-layer image data |
CN110535893A (en) * | 2018-05-24 | 2019-12-03 | 视联动力信息技术股份有限公司 | A kind of map datum rendering method and device based on browser |
CN110825989A (en) * | 2018-07-23 | 2020-02-21 | 北京京东尚科信息技术有限公司 | Picture display method and device, electronic equipment and readable medium |
CN110930857A (en) * | 2019-05-31 | 2020-03-27 | 上海华兴数字科技有限公司 | Method and device for drawing scattered points |
CN111260753A (en) * | 2020-02-13 | 2020-06-09 | 浙江大华机器人技术有限公司 | Map drawing method and device, storage medium and electronic device |
CN112633980A (en) * | 2020-12-25 | 2021-04-09 | 环球车享汽车租赁有限公司 | Method, electronic device, and storage medium for vehicle website presentation |
CN113722414A (en) * | 2021-09-02 | 2021-11-30 | 北京房江湖科技有限公司 | Drawing method and drawing system of label |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102314479A (en) * | 2011-07-05 | 2012-01-11 | 万达信息股份有限公司 | Method for preventing repeated marking of slice map |
CN102340536A (en) * | 2011-07-13 | 2012-02-01 | 北京世纪高通科技有限公司 | Method and device for searching points of interest |
CN103955955A (en) * | 2014-04-30 | 2014-07-30 | 深圳华强信息产业有限公司 | Electronic map information processing method and device |
CN104731783A (en) * | 2013-12-18 | 2015-06-24 | 高德软件有限公司 | Method and device for showing interesting points |
US20150261785A1 (en) * | 2014-03-12 | 2015-09-17 | Here Global B.V. | Method and apparatus for multi-resolution point of interest boundary identification in digital map rendering |
-
2015
- 2015-12-11 CN CN201510922569.8A patent/CN105574102B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102314479A (en) * | 2011-07-05 | 2012-01-11 | 万达信息股份有限公司 | Method for preventing repeated marking of slice map |
CN102340536A (en) * | 2011-07-13 | 2012-02-01 | 北京世纪高通科技有限公司 | Method and device for searching points of interest |
CN104731783A (en) * | 2013-12-18 | 2015-06-24 | 高德软件有限公司 | Method and device for showing interesting points |
US20150261785A1 (en) * | 2014-03-12 | 2015-09-17 | Here Global B.V. | Method and apparatus for multi-resolution point of interest boundary identification in digital map rendering |
CN103955955A (en) * | 2014-04-30 | 2014-07-30 | 深圳华强信息产业有限公司 | Electronic map information processing method and device |
Non-Patent Citations (1)
Title |
---|
JUICYCAT: "web专题地图叠加方法", 《网易博客》 * |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106919592A (en) * | 2015-12-24 | 2017-07-04 | 北京计算机技术及应用研究所 | The method for setting up Multi-stage electronic map |
CN110019618A (en) * | 2017-12-06 | 2019-07-16 | 华平信息技术股份有限公司 | The rendering method and system, memory and equipment of electronic map multi-layer image data |
CN110019618B (en) * | 2017-12-06 | 2022-12-09 | 华平信息技术股份有限公司 | Method and system for presenting multi-layer data of electronic map, memory and equipment |
CN110535893A (en) * | 2018-05-24 | 2019-12-03 | 视联动力信息技术股份有限公司 | A kind of map datum rendering method and device based on browser |
CN110825989A (en) * | 2018-07-23 | 2020-02-21 | 北京京东尚科信息技术有限公司 | Picture display method and device, electronic equipment and readable medium |
CN109241213B (en) * | 2018-07-26 | 2021-08-06 | 汉华易美(天津)图像技术有限公司 | Electronic map point location aggregation method and device |
CN109241213A (en) * | 2018-07-26 | 2019-01-18 | 汉华易美(天津)图像技术有限公司 | A kind of electronic map point polymerization and device |
CN109889785A (en) * | 2019-02-26 | 2019-06-14 | 高新兴科技集团股份有限公司 | A kind of dummy emulation method that the POI label based on unity is shown |
CN109889785B (en) * | 2019-02-26 | 2021-01-01 | 高新兴科技集团股份有限公司 | Unity-based POI label display virtual simulation method |
CN110930857A (en) * | 2019-05-31 | 2020-03-27 | 上海华兴数字科技有限公司 | Method and device for drawing scattered points |
CN110930857B (en) * | 2019-05-31 | 2022-04-15 | 上海华兴数字科技有限公司 | Method and device for drawing scattered points |
CN111260753A (en) * | 2020-02-13 | 2020-06-09 | 浙江大华机器人技术有限公司 | Map drawing method and device, storage medium and electronic device |
CN111260753B (en) * | 2020-02-13 | 2024-01-12 | 浙江华睿科技股份有限公司 | Map drawing method and device, storage medium and electronic device |
CN112633980A (en) * | 2020-12-25 | 2021-04-09 | 环球车享汽车租赁有限公司 | Method, electronic device, and storage medium for vehicle website presentation |
CN113722414A (en) * | 2021-09-02 | 2021-11-30 | 北京房江湖科技有限公司 | Drawing method and drawing system of label |
Also Published As
Publication number | Publication date |
---|---|
CN105574102B (en) | 2018-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105574102A (en) | Electronic map data loading method and device | |
US8903900B2 (en) | Managing map elements using aggregate feature identifiers | |
CN103946836B (en) | The method and apparatus for rendering map image using the modification of non-grating map datum | |
KR101804602B1 (en) | 3d layering of map metadata | |
EP2560143B1 (en) | Generating and serving tiles in a digital mapping system | |
US9905048B2 (en) | System for authoring and providing augmented reality contents | |
EP2954468B1 (en) | Providing indoor facility information on a digital map | |
US11199416B2 (en) | Systems and methods for flexible route planning | |
US8749580B1 (en) | System and method of texturing a 3D model from video | |
CN105516311A (en) | Electronic map panorama acquisition method and system | |
CN107451150B (en) | Geographic data presentation method and device | |
CN103744995A (en) | Thematic map building method and mobile terminal applying same | |
US20220074754A1 (en) | Dynamic scaling of geospatial data on maps | |
CN103473732A (en) | Mobile GIS (Geographic Information System) slice map showing method based on concurrent control and double-cache technologies | |
CN110914870A (en) | Annotation generation for image networks | |
WO2019199298A1 (en) | Off-viewport location indications for digital mapping | |
CN114820967B (en) | Layered image data real-time drawing method and system | |
JP6042683B2 (en) | Map image generation apparatus, map image generation method, and program | |
CN114238528A (en) | Map loading method and device, electronic equipment and storage medium | |
Kovanen et al. | Sequential displacement and grouping of point symbols in a mobile context | |
She et al. | A building label placement method for 3D visualizations based on candidate label evaluation and selection | |
US20150143301A1 (en) | Evaluating Three-Dimensional Geographical Environments Using A Divided Bounding Area | |
US20160085427A1 (en) | System and method of sharing spatial data | |
Liu et al. | An effective spherical panoramic LoD model for a mobile street view service | |
XIAO et al. | Integration method of TINs and Grids for multi-resolution surface modeling |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |