[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109241219A - A kind of map Dynamic Slicing and serializing caching method, device and storage medium - Google Patents

A kind of map Dynamic Slicing and serializing caching method, device and storage medium Download PDF

Info

Publication number
CN109241219A
CN109241219A CN201810941496.0A CN201810941496A CN109241219A CN 109241219 A CN109241219 A CN 109241219A CN 201810941496 A CN201810941496 A CN 201810941496A CN 109241219 A CN109241219 A CN 109241219A
Authority
CN
China
Prior art keywords
map
kryo
serializing
cache framework
url request
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.)
Pending
Application number
CN201810941496.0A
Other languages
Chinese (zh)
Inventor
梁少勇
周坦锋
沈堪海
谷磊
金双泉
方顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGZHOU CITY INFORMATION RESEARCH INSTITUTE Co Ltd
Original Assignee
GUANGZHOU CITY INFORMATION RESEARCH INSTITUTE Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUANGZHOU CITY INFORMATION RESEARCH INSTITUTE Co Ltd filed Critical GUANGZHOU CITY INFORMATION RESEARCH INSTITUTE Co Ltd
Priority to CN201810941496.0A priority Critical patent/CN109241219A/en
Publication of CN109241219A publication Critical patent/CN109241219A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of map Dynamic Slicing and serializing caching method, device, terminal device and storage medium, this method is suitable for executing in a computer, comprising: the unique URL request generated when obtaining front end load map;Unique URL request is parsed, obtains the address of map resource corresponding with the unique URL request, and unique key value is generated according to the address;According to unique key value, the corresponding data of the whether buffered unique key value of Kryo Cache Framework are inquired;If so, directly reading data from the Kryo Cache Framework, and loaded in the active view of the front end;It is cached in the Kryo Cache Framework if it is not, then obtaining corresponding map resource from Map Services address, then is read from the Kryo Cache Framework and be loaded into the front end.Implement the embodiment of the present invention, quick and high quality figure effect out can be reached in the case where data volume is big.

Description

A kind of map Dynamic Slicing and serializing caching method, device and storage medium
Technical field
The present invention relates to cache map technical field more particularly to a kind of map Dynamic Slicing and serializing caching method, Device and storage medium.
Background technique
Cache map is the catalogue of a map slice for containing entire body of a map or chart under different scale.I.e. one slow The Map Services deposited are to quickly provide the service of map using static images.
In the prior art, it is cached by the direct to map of ArcGIS Server.ArcGIS Server is ESRI hair One enterprise GIS software platform of the offer web oriented spatial data services of cloth, provides creation and configuration GIS application program With the frame of service, it can satisfy the various demands of different clients in this way.ArcGIS Server is contained from 9.2 editions AreSDE Spatial Data Engine, for managing the geographical space based on multi-user and eventful business by a variety of relevant databases Database.
Directly had the following problems using ArcGIS Server technology:
(1) the dynamic map service of ArcGIS Server publication, in the case where data volume is big, web two-dimensional map is exported It is slow.
(2) it is possible that the phenomenon that " white edge " in map moving process.
Summary of the invention
The embodiment of the present invention provides a kind of map Dynamic Slicing and serializing caching method, device, terminal device and meter Calculation machine readable storage medium storing program for executing can reach quick and high quality figure effect out in the case where data volume is big.
The embodiment of the present invention provides a kind of map Dynamic Slicing and serializing caching method, comprising:
The unique URL request generated when obtaining front end load map;Unique URL request is parsed, obtain with The address of the corresponding map resource of unique URL request, and unique key value is generated according to the address;
According to unique key value, the corresponding number of the whether buffered unique key value of Kryo Cache Framework is inquired According to;
If so, directly reading data from the Kryo Cache Framework, and loaded in the active view of the front end;
It is cached in the Kryo Cache Framework if it is not, then obtaining corresponding map resource from Map Services address, then from It is read in the Kryo Cache Framework and is loaded into the front end.
Further, before the unique URL request generated in the acquisition front end load map, further includes:
Front end use ArcGIS for JavaScript when dynamically cutting in a manner of figure to load map generated data into Row caching.
Further, the Kryo Cache Framework is Java object figure sequence frame rapidly and efficiently.
Further, the data cached of the front end is stored in local memory, and the Kryo Cache Framework is delayed Deposit data is stored in the disk directory of server.
The embodiment of the invention also provides a kind of map Dynamic Slicing and serializing buffer storages, comprising:
Module is obtained, the unique URL request generated when for obtaining front end load map;
Generation module obtains correspondingly with unique URL request for parsing to unique URL request The address of image resource, and unique key value is generated according to the address;
Judgment module, for it is whether buffered described unique to inquire Kryo Cache Framework according to unique key value The corresponding data of key value;If so, directly reading data from the Kryo Cache Framework, and work as forward sight in the front end It is loaded in figure;It is cached in the Kryo Cache Framework if it is not, then obtaining corresponding map resource from Map Services address, then from It is read in the Kryo Cache Framework and is loaded into the front end.
The embodiment of the invention also provides a kind of map Dynamic Slicing and serializing buffer storages, including processor, storage Device and storage in the memory and are configured as the computer program executed by the processor, and the processor executes The map Dynamic Slicing as described in any one of Claims 1-4 and serializing caching side are realized when the computer program Method.
The embodiment of the invention also provides a kind of computer readable storage mediums, which is characterized in that described computer-readable Storage medium includes the computer program of storage, wherein controls described computer-readable deposit in computer program operation Equipment where storage media executes map Dynamic Slicing and serializing caching method as described in any one of Claims 1-4.
The implementation of the embodiments of the present invention has the following beneficial effects:
The invention discloses a kind of map Dynamic Slicing and caching method, device, terminal device and storage medium are serialized, This method is suitable for executing in a computer, comprising: the unique URL request generated when obtaining front end load map;To described unique URL request is parsed, and obtains the address of map resource corresponding with the unique URL request, and generate only according to the address One key value;According to unique key value, the corresponding number of the whether buffered unique key value of Kryo Cache Framework is inquired According to;If so, directly reading data from the Kryo Cache Framework, and loaded in the active view of the front end;If it is not, Corresponding map resource then is obtained from Map Services address to be cached in the Kryo Cache Framework, then caches frame from the Kryo It is read in frame and is loaded into the front end.Implement the embodiment of the present invention, can reach in the case where data volume is big quick and high Quality goes out figure effect.
Detailed description of the invention
Fig. 1 is a kind of map Dynamic Slicing that first embodiment of the invention provides and the process signal for serializing caching method Figure.
Fig. 2 is a kind of map Dynamic Slicing that first embodiment of the invention provides and another process for serializing caching method Schematic diagram.
Fig. 3 is a kind of map Dynamic Slicing that second embodiment of the invention provides and the structural representation for serializing buffer storage Figure.
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.
The first embodiment of the present invention.
Please refer to Fig. 1-2.
As shown in Figs. 1-2, a kind of map Dynamic Slicing provided in an embodiment of the present invention and serializing caching method, are suitable for It is executed in computer, includes at least following steps:
The unique URL request generated when S101, acquisition front end load map;
In the present embodiment, before executing S101 step, execute step S100: front end uses ArcGIS ForJavaScript caches data generated when loading map in a manner of figure by dynamically cutting.URL is unified resource positioning Symbol, it is the expression succinct to the position for the resource that can be obtained from internet and one kind of access method.
S102, unique URL request is parsed, obtains map resource corresponding with the unique URL request Address, and unique key value is generated according to the address;
In the present embodiment, unique key value generated corresponds to some address of map resource, and this key value is cached In Kryo Cache Framework, for by the sequence of pictures in map resource.
S103, according to unique key value, it is corresponding to inquire the whether buffered unique key value of Kryo Cache Framework Data;
S104a from the Kryo Cache Framework if so, directly read data, and in the active view of the front end Load;
S104b, if it is not, then obtaining corresponding map resource from Map Services address is cached to the Kryo Cache Framework In, then read from the Kryo Cache Framework and be loaded into the front end.
In the present embodiment, Kryo Cache Framework is Java object figure sequence frame rapidly and efficiently, it is desirable to provide Quickly, efficient and easy-to-use API.No matter file, database or network data Kryo can complete to serialize at any time.Kryo sequence Column mechanism is faster than the Java of default serializing mechanism speed, and the data after serializing are smaller, is probably Java serializing The 1/10 of mechanism.So the data of network transmission can be allowed to tail off, the memory expended in the cluster after Kryo serializing optimization Resource greatly reduces.The speed of serializing can be improved in Kryo in the corresponding data buffer storage of key value, more out the speed of figure.
The implementation of the embodiments of the present invention has the following beneficial effects:
The invention discloses a kind of map Dynamic Slicing and caching method, device, terminal device and storage medium are serialized, This method is suitable for executing in a computer, comprising: the unique URL request generated when obtaining front end load map;To described unique URL request is parsed, and obtains the address of map resource corresponding with the unique URL request, and generate only according to the address One key value;According to unique key value, the corresponding number of the whether buffered unique key value of Kryo Cache Framework is inquired According to;If so, directly reading data from the Kryo Cache Framework, and loaded in the active view of the front end;If it is not, Corresponding map resource then is obtained from Map Services address to be cached in the Kryo Cache Framework, then caches frame from the Kryo It is read in frame and is loaded into the front end.Implement the embodiment of the present invention, can reach in the case where data volume is big quick and high Quality goes out figure effect.
Of the invention second is embodiment.
Please refer to Fig. 3.
A kind of map Dynamic Slicing provided in an embodiment of the present invention and serializing buffer storage, which includes: acquisition mould Block 201, the unique URL request generated when for obtaining front end load map;
In the present embodiment, preceding before obtaining unique URL request that module 201 is generated when obtaining front end load map End uses ArcGIS for JavaScript to cache in a manner of figure to data generated when loading map dynamically to cut.URL For uniform resource locator, it is the table succinct to the position for the resource that can be obtained from internet and one kind of access method Show.
Generation module 202 obtains corresponding with unique URL request for parsing to unique URL request The address of map resource, and unique key value is generated according to the address;
In the present embodiment, in the present embodiment, unique key value generated corresponds to some address of map resource, and This key value is buffered in Kryo Cache Framework, for by the sequence of pictures in map resource.
Judgment module 203, for according to unique key value, inquire Kryo Cache Framework it is whether buffered it is described only The corresponding data of one key value;If so, directly reading data from the Kryo Cache Framework, and in the current of the front end It is loaded in view;It is cached in the Kryo Cache Framework if it is not, then obtaining corresponding map resource from Map Services address, then It is read from the Kryo Cache Framework and is loaded into the front end.
In the present embodiment, Kryo Cache Framework is Java object figure sequence frame rapidly and efficiently, it is desirable to provide Quickly, efficient and easy-to-use API.No matter file, database or network data Kryo can complete to serialize at any time.Kryo sequence Column mechanism is faster than the Java of default serializing mechanism speed, and the data after serializing are smaller, is probably Java serializing The 1/10 of mechanism.So the data of network transmission can be allowed to tail off, the memory expended in the cluster after Kryo serializing optimization Resource greatly reduces.The speed of serializing can be improved in Kryo in the corresponding data buffer storage of key value, more out the speed of figure.
The implementation of the embodiments of the present invention has the following beneficial effects:
The invention discloses a kind of map Dynamic Slicing and caching method, device, terminal device and storage medium are serialized, This method is suitable for executing in a computer, comprising: the unique URL request generated when obtaining front end load map;To described unique URL request is parsed, and obtains the address of map resource corresponding with the unique URL request, and generate only according to the address One key value;According to unique key value, the corresponding number of the whether buffered unique key value of Kryo Cache Framework is inquired According to;If so, directly reading data from the Kryo Cache Framework, and loaded in the active view of the front end;If it is not, Corresponding map resource then is obtained from Map Services address to be cached in the Kryo Cache Framework, then caches frame from the Kryo It is read in frame and is loaded into the front end.Implement the embodiment of the present invention, can reach in the case where data volume is big quick and high Quality goes out figure effect.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art For, without departing from the principle of the present invention, several improvement and deformations can also be made, these improvement and deformations are also considered as Protection scope of the present invention.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..

Claims (10)

1. a kind of map Dynamic Slicing and serializing caching method, suitable for executing in a computer characterized by comprising
The unique URL request generated when obtaining front end load map;Unique URL request is parsed, obtain with it is described The address of the corresponding map resource of unique URL request, and unique key value is generated according to the address;
According to unique key value, the corresponding data of the whether buffered unique key value of Kryo Cache Framework are inquired;
If so, directly reading data from the Kryo Cache Framework, and loaded in the active view of the front end;
It is cached in the Kryo Cache Framework if it is not, then obtaining corresponding map resource from Map Services address, then from described It is read in Kryo Cache Framework and is loaded into the front end.
2. map Dynamic Slicing according to claim 1 and serializing caching method, which is characterized in that before the acquisition Before the unique URL request generated when the load map of end, further includes:
Front end uses ArcGIS for JavaScript to delay in a manner of figure to data generated when loading map dynamically to cut It deposits.
3. map Dynamic Slicing according to claim 1 and serializing caching method, which is characterized in that the Kryo caching Frame is Java object figure sequence frame rapidly and efficiently.
4. map Dynamic Slicing according to claim 1 and serializing caching method, which is characterized in that delay the front end Deposit data is stored in local memory, the data cached disk directory for being stored in server of the Kryo Cache Framework In.
5. a kind of map Dynamic Slicing and serializing buffer storage characterized by comprising
Module is obtained, the unique URL request generated when for obtaining front end load map;
Generation module obtains map corresponding with the unique URL request and provides for parsing to unique URL request The address in source, and unique key value is generated according to the address;
Judgment module, for inquiring the whether buffered unique key value of Kryo Cache Framework according to unique key value Corresponding data;If so, directly reading data from the Kryo Cache Framework, and add in the active view of the front end It carries;It is cached in the Kryo Cache Framework if it is not, then obtaining corresponding map resource from Map Services address, then from described It is read in Kryo Cache Framework and is loaded into the front end.
6. map Dynamic Slicing according to claim 5 and serializing buffer storage, which is characterized in that before the acquisition Before the unique URL request generated when the load map of end, further includes:
In obtaining module, front end uses ArcGIS for JavaScript to be produced in a manner of figure to when loading map dynamically to cut Raw data are cached.
7. map Dynamic Slicing according to claim 5 and serializing buffer storage, which is characterized in that the Kryo caching Frame is Java object figure sequence frame rapidly and efficiently.
8. map Dynamic Slicing according to claim 5 and serializing caching method, which is characterized in that delay the front end Deposit data is stored in local memory, the data cached disk directory for being stored in server of the Kryo Cache Framework In.
9. a kind of map Dynamic Slicing and serializing buffer storage, including processor, memory and it is stored in the memory In and be configured as the computer program executed by the processor, the processor is realized such as when executing the computer program Map Dynamic Slicing described in any one of Claims 1-4 and serializing caching method.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes the calculating of storage Machine program, wherein equipment where controlling the computer readable storage medium in computer program operation is executed as weighed Benefit require any one of 1 to 4 described in map Dynamic Slicing and serializing caching method.
CN201810941496.0A 2018-08-17 2018-08-17 A kind of map Dynamic Slicing and serializing caching method, device and storage medium Pending CN109241219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810941496.0A CN109241219A (en) 2018-08-17 2018-08-17 A kind of map Dynamic Slicing and serializing caching method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810941496.0A CN109241219A (en) 2018-08-17 2018-08-17 A kind of map Dynamic Slicing and serializing caching method, device and storage medium

Publications (1)

Publication Number Publication Date
CN109241219A true CN109241219A (en) 2019-01-18

Family

ID=65071465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810941496.0A Pending CN109241219A (en) 2018-08-17 2018-08-17 A kind of map Dynamic Slicing and serializing caching method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109241219A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159322A (en) * 2019-12-17 2020-05-15 广西交通设计集团有限公司 Dynamic slicing and server side caching method for map
CN112800364A (en) * 2021-02-19 2021-05-14 上海中通吉网络技术有限公司 Gis large-data-volume message response processing method and device based on file server

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7631155B1 (en) * 2007-06-30 2009-12-08 Emc Corporation Thin provisioning of a file system and an iSCSI LUN through a common mechanism
CN102968442A (en) * 2012-10-22 2013-03-13 武大吉奥信息技术有限公司 Network map tile service aggregation method and system
CN104599032A (en) * 2014-11-28 2015-05-06 国家电网公司 Distributed memory power grid construction method and system for resource management
CN105426407A (en) * 2015-11-02 2016-03-23 浪潮软件集团有限公司 Web data acquisition method based on content analysis
CN105608191A (en) * 2015-12-23 2016-05-25 云南电网有限责任公司 EnersunWebCache based method for dynamically generating cached power grid map tiles
CN107590173A (en) * 2017-07-28 2018-01-16 武汉市测绘研究院 Backtracking and the control methods online of two-dimension time-space geography information
CN107590083A (en) * 2016-07-07 2018-01-16 北京四维新世纪信息技术有限公司 A kind of magnanimity remote sensing tile data release quickly method based on OWGA memory caches
CN108197160A (en) * 2017-12-12 2018-06-22 腾讯科技(深圳)有限公司 A kind of picture loading method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7631155B1 (en) * 2007-06-30 2009-12-08 Emc Corporation Thin provisioning of a file system and an iSCSI LUN through a common mechanism
CN102968442A (en) * 2012-10-22 2013-03-13 武大吉奥信息技术有限公司 Network map tile service aggregation method and system
CN104599032A (en) * 2014-11-28 2015-05-06 国家电网公司 Distributed memory power grid construction method and system for resource management
CN105426407A (en) * 2015-11-02 2016-03-23 浪潮软件集团有限公司 Web data acquisition method based on content analysis
CN105608191A (en) * 2015-12-23 2016-05-25 云南电网有限责任公司 EnersunWebCache based method for dynamically generating cached power grid map tiles
CN107590083A (en) * 2016-07-07 2018-01-16 北京四维新世纪信息技术有限公司 A kind of magnanimity remote sensing tile data release quickly method based on OWGA memory caches
CN107590173A (en) * 2017-07-28 2018-01-16 武汉市测绘研究院 Backtracking and the control methods online of two-dimension time-space geography information
CN108197160A (en) * 2017-12-12 2018-06-22 腾讯科技(深圳)有限公司 A kind of picture loading method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
顾立平等: "《数据馆员的SPARK简明手册》", 31 October 2017 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159322A (en) * 2019-12-17 2020-05-15 广西交通设计集团有限公司 Dynamic slicing and server side caching method for map
CN112800364A (en) * 2021-02-19 2021-05-14 上海中通吉网络技术有限公司 Gis large-data-volume message response processing method and device based on file server

Similar Documents

Publication Publication Date Title
US9576067B2 (en) Enhancing client-side object caching for web based applications
CN108055302B (en) Picture caching processing method and system and server
US20100115064A1 (en) Content request optimization
US8041893B1 (en) System and method for managing large filesystem-based caches
CN102904887A (en) Method and system for data synchronization of Web client and server
CN104468807A (en) Processing method, cloud end device, local devices and system for webpage cache
WO2019041670A1 (en) Method, device and system for reducing frequency of functional page requests, and storage medium
CN105868234A (en) Update method and device of caching data
US20170359434A1 (en) Web caching with image and local storage
CN109241219A (en) A kind of map Dynamic Slicing and serializing caching method, device and storage medium
CN105610917B (en) Method and system for realizing synchronous data repair in system
CN111294372A (en) Method, device and system for realizing cache in proxy server
CN114327302B (en) Method, device and system for processing object storage access
JP2008070949A (en) Web page generation system, web page generation device and web page generation method
JP7477251B2 (en) Method, system, and program for improving cacheability of single-page applications
CN107153574A (en) Picture code-transferring method and system
CN109284428A (en) Data processing method, device and storage medium
CN113076067B (en) Method and device for eliminating cache data
CN112688982B (en) User request processing method and device
CN107609030B (en) Picture management method and system
CN117478535B (en) Log storage method and device
CN112949326A (en) Information query method, device, equipment and computer readable medium
CN113849255B (en) Data processing method, device and storage medium
US12093295B2 (en) Systems and methods for an interactive content management system
KR101233109B1 (en) System and method of reducing traffic among multi-cores used to meet cache coherence

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190118

RJ01 Rejection of invention patent application after publication