CN112818269A - Chart calling method and device - Google Patents
Chart calling method and device Download PDFInfo
- Publication number
- CN112818269A CN112818269A CN202110096660.4A CN202110096660A CN112818269A CN 112818269 A CN112818269 A CN 112818269A CN 202110096660 A CN202110096660 A CN 202110096660A CN 112818269 A CN112818269 A CN 112818269A
- Authority
- CN
- China
- Prior art keywords
- chart
- tile
- wmts
- calling
- data source
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000008569 process Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000000354 decomposition reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000006798 recombination Effects 0.000 description 2
- 238000005215 recombination Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
Images
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/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a chart calling method and a chart calling device, wherein the method comprises the following steps: obtaining a chart data source; generating a Web map tile service WMTS tile chart according to the chart data source; and calling the WMTS tile sea chart at a web end. The scheme of the invention can realize the display of the chart at the web end, improve the offline access capability of the chart and facilitate the deployment in the local area network.
Description
Technical Field
The invention relates to the technical field of chart processing, in particular to a chart calling method and device.
Background
For web applications, maps and satellite maps are usually used as base maps. There is currently no way to support the display of a chart on the web side, and only some third party api (application program interface) for maps are available. Such an api can only be used in the context of the internet and cannot be used in a local area network.
Disclosure of Invention
The invention aims to provide a chart calling method and device. The method and the system can realize the display of the chart on the web end, improve the offline access capability of the chart and facilitate the deployment in the local area network.
In order to solve the technical problems, the technical scheme of the invention is as follows:
a chart calling method, the method comprising:
obtaining a chart data source;
generating a Web map tile service WMTS tile chart according to the chart data source;
and calling the WMTS tile sea chart at a web end.
Optionally, generating a Web map tile service WMTS tile chart according to the chart data source includes:
and separating various elements in the chart data source according to a standard WMTS tile service to obtain a multilayer WMTS tile chart.
Optionally, in the horizontal direction, in each layer of WMTS tile chart, a distance between two adjacent WMTS tile charts is: stile=C·cos(latitude)/2zoomlevel
Wherein, C is the equatorial circumference, Zoomlevel is the picture zoom level, and latitude is the latitude.
Optionally, on the same WMTS tile chart, the distance between two pixels is:
Spixel=Stile/256=C·cos(latitude)/2(zoomlevel+8)
wherein, C is the equatorial circumference, Zoomlevel is the map zoom level, and latitude is the latitude.
Optionally, the chart calling method further includes: saving the multi-layer WMTS tile sea map into different paths.
Optionally, invoking the WMTS tile sea chart at the web end includes:
loading the WMTS tile sea map from different paths by starting a nginx web server.
The embodiment of the present invention further provides a chart calling apparatus, including:
the acquisition module is used for acquiring a chart data source;
the generating module is used for generating a Web map tile service WMTS tile chart according to the chart data source;
and the calling module is used for calling the WMTS tile sea chart at a web end.
Optionally, the generating module is specifically configured to separate multiple elements in the chart data source according to a standard WMTS tile service, so as to obtain a multi-layer WMTS tile chart.
Optionally, the apparatus further comprises:
the storage module is used for storing the multilayer WMTS tile sea chart into different paths;
and the calling module loads the WMTS tile chart from different paths by starting an nginx web server.
Embodiments of the present invention also provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method as described above.
The scheme of the invention at least comprises the following beneficial effects:
obtaining a chart data source; generating a Web map tile service WMTS tile chart according to the chart data source; and calling the WMTS tile sea chart at a web end. The method and the system can realize the display of the chart on the web end, improve the offline access capability of the chart and facilitate the deployment in the local area network. Furthermore, the WMTS tile chart can be cached, the web client can be automatically cached to the local after being accessed for the first time, network transmission data is smaller, and efficiency is higher.
Drawings
FIG. 1 is a flow chart diagram of a chart calling method according to an embodiment of the invention;
FIG. 2 is a detailed flowchart of a chart calling method according to an embodiment of the present invention;
fig. 3 is a block diagram of a chart calling apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, an embodiment of the present invention provides a chart calling method, where the method includes:
and step 13, calling the WMTS tile sea chart at a web end.
The embodiment is implemented by obtaining a chart data source; generating a Web map tile service WMTS tile chart according to the chart data source; and calling the WMTS tile sea chart at a web end. The method and the system can realize the display of the chart on the web end, improve the offline access capability of the chart and facilitate the deployment in the local area network.
In an alternative embodiment of the present invention, step 12 may include:
and separating various elements in the chart data source according to a standard WMTS tile service to obtain a multilayer WMTS tile chart. The elements can be elements such as sea surface, land surface, buoy, lighthouse, etc., but are not limited to these elements, and can also include other elements in the chart;
here, WMTS is a standardized solution for publishing digital map services using a predefined tile method. WMTS is intended to enhance scalability by providing static data (base maps) whose range boxes and scales are defined within individual tiles. These fixed tile sets allow for implementation of WMTS services using a Web server that simply returns existing files, while allowing scalability with some standard network mechanisms such as distributed caching. Wmts can be regarded as a kind of picture folder with directory hierarchy, and each file is typically a picture in png format of 256 × 256.
In an alternative embodiment of the present invention, in the horizontal direction, in each layer of WMTS tile charts, the distance between two adjacent WMTS tile charts is: stile=C·cos(latitude)/2zoomlevel
Wherein, C is the equatorial circumference, Zoomlevel is the picture zoom level, and latitude is the latitude.
In an optional embodiment of the present invention, on the same WMTS tile chart, the distance between two pixels is: spixel=Stile/256=C·cos(latitude)/2(zoomlevel+8);
Wherein, C is the equatorial circumference, Zoomlevel is the map zoom level, and latitude is the latitude.
In an optional embodiment of the present invention, the chart calling method may further include:
and step 121, storing the multilayer WMTS tile sea chart into different paths.
In an optional embodiment of the present invention, the step 13 may include:
and step 131, loading the WMTS tile chart from different paths by starting an nginx web server.
The following describes a specific implementation process of the above method with reference to fig. 2:
1. preparation of authorization data: the chart data source is obtained by purchasing raw data.
2. And (3) separating layers: the parts such as the sea surface, the land and the ground, the buoy, the lighthouse and the like are separated firstly through different level parameters to obtain a multilayer WMTS tile chart, and then the chart is stored in different paths.
3. Configuring an http server: and starting after configuring the multi-layer WMTS tile chart generation directory by starting a nginx web server. Here, nginx web servers are high performance HTTP and reverse proxy web servers;
4. the WMTS tile chart can be loaded from different paths as required by using a third-party open source framework such as OpenLayers on a web side.
The embodiment of the invention generates the multi-layer WMTS tile chart (namely static tile) by analyzing the chart data source so as to be used in the web.
The embodiment of the invention can realize the display of the chart at the web end, improve the offline access capability of the chart and facilitate the deployment in the local area network. Furthermore, the WMTS tile chart can be cached, the web client can be automatically cached to the local after being accessed for the first time, network transmission data is smaller, and efficiency is higher.
As shown in fig. 3, an embodiment of the present invention further provides a chart invoking device 30, including:
an obtaining module 31, configured to obtain a chart data source;
a generating module 32, configured to generate a Web map tile service WMTS tile chart according to the chart data source;
and the calling module 33 is used for calling the WMTS tile sea chart at a web end.
Optionally, the generating module 32 is specifically configured to separate multiple elements in the chart data source according to a standard WMTS tile service, so as to obtain a multi-layer WMTS tile chart.
Optionally, in the horizontal direction, in each layer of WMTS tile chart, a distance between two adjacent WMTS tile charts is: stile=C·cos(latitude)/2zoomlevel;
Wherein, C is the equatorial circumference, Zoomlevel is the picture zoom level, and latitude is the latitude.
Optionally, on the same WMTS tile chart, the distance between two pixels is:
Spixel=Stile/256=C·cos(latitude)/2(zoomlevel+8);
wherein, C is the equatorial circumference, Zoomlevel is the map zoom level, and latitude is the latitude.
Optionally, the apparatus 30 further includes: a storage module 34, configured to store the multi-layer WMTS tile sea map into different paths;
the calling module 33 loads the WMTS tile chart from the different paths by starting a nginx web server.
It should be noted that the apparatus is an apparatus corresponding to the above method, and all the implementations in the above method embodiment are applicable to the embodiment of the apparatus, and the same technical effects can be achieved.
Embodiments of the present invention also provide a computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method as described above. All the implementation manners in the above method embodiment are applicable to this embodiment, and the same technical effect can be achieved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
Furthermore, it is to be noted that in the device and method of the invention, it is obvious that the individual components or steps can be decomposed and/or recombined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention. Also, the steps of performing the series of processes described above may naturally be performed chronologically in the order described, but need not necessarily be performed chronologically, and some steps may be performed in parallel or independently of each other. It will be understood by those skilled in the art that all or any of the steps or elements of the method and apparatus of the present invention may be implemented in any computing device (including processors, storage media, etc.) or network of computing devices, in hardware, firmware, software, or any combination thereof, which can be implemented by those skilled in the art using their basic programming skills after reading the description of the present invention.
Thus, the objects of the invention may also be achieved by running a program or a set of programs on any computing device. The computing device may be a general purpose device as is well known. The object of the invention is thus also achieved solely by providing a program product comprising program code for implementing the method or the apparatus. That is, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. It is to be understood that the storage medium may be any known storage medium or any storage medium developed in the future. It is further noted that in the apparatus and method of the present invention, it is apparent that each component or step can be decomposed and/or recombined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention. Also, the steps of executing the series of processes described above may naturally be executed chronologically in the order described, but need not necessarily be executed chronologically. Some steps may be performed in parallel or independently of each other.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. A chart calling method, characterized in that the method comprises:
obtaining a chart data source;
generating a Web map tile service WMTS tile chart according to the chart data source;
and calling the WMTS tile sea chart at a web end.
2. The chart calling method according to claim 1, wherein generating a Web map tile service WMTS tile chart according to the chart data source comprises:
and separating various elements in the chart data source according to a standard WMTS tile service to obtain a multilayer WMTS tile chart.
3. The chart calling method according to claim 2, wherein in the horizontal direction, in each layer of WMTS tile charts, the distance between two adjacent WMTS tile charts is:
Stile=C·cos(latitude)/2zoomlevel
wherein, C is the equatorial circumference, Zoomlevel is the picture zoom level, and latitude is the latitude.
4. The chart calling method of claim 2, wherein the distance between two pixels on the same WMTS tile chart is:
Spixel=Stile/256=C·cos(latitude)/2(zoomlevel+8)
wherein, C is the equatorial circumference, Zoomlevel is the map zoom level, and latitude is the latitude.
5. The chart calling method according to claim 2, further comprising:
saving the multi-layer WMTS tile sea map into different paths.
6. The chart calling method of claim 5, wherein calling the WMTS tile chart on a web side comprises:
loading the WMTS tile sea map from different paths by starting a nginx web server.
7. A chart calling apparatus, comprising:
the acquisition module is used for acquiring a chart data source;
the generating module is used for generating a Web map tile service WMTS tile chart according to the chart data source;
and the calling module is used for calling the WMTS tile sea chart at a web end.
8. The apparatus according to claim 7, wherein the generating module is specifically configured to separate multiple elements in the chart data source according to a standard WMTS tile service to obtain a multi-layered WMTS tile chart.
9. The chart invoking device according to claim 8,
the storage module is used for storing the multilayer WMTS tile sea chart into different paths;
and the calling module loads the WMTS tile chart from different paths by starting an nginx web server.
10. A computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110096660.4A CN112818269A (en) | 2021-01-25 | 2021-01-25 | Chart calling method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110096660.4A CN112818269A (en) | 2021-01-25 | 2021-01-25 | Chart calling method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112818269A true CN112818269A (en) | 2021-05-18 |
Family
ID=75859542
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110096660.4A Pending CN112818269A (en) | 2021-01-25 | 2021-01-25 | Chart calling method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112818269A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108052642A (en) * | 2017-12-22 | 2018-05-18 | 重庆邮电大学 | Electronic Chart Display method based on tile technology |
CN108279402A (en) * | 2017-12-18 | 2018-07-13 | 中国电子科技集团公司第二十八研究所 | Browser end radar video display methods based on WMTS |
-
2021
- 2021-01-25 CN CN202110096660.4A patent/CN112818269A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108279402A (en) * | 2017-12-18 | 2018-07-13 | 中国电子科技集团公司第二十八研究所 | Browser end radar video display methods based on WMTS |
CN108052642A (en) * | 2017-12-22 | 2018-05-18 | 重庆邮电大学 | Electronic Chart Display method based on tile technology |
Non-Patent Citations (1)
Title |
---|
孙岩松: ""基于矢量瓦片的Web电子海图研究"", 《中国优秀博硕士学位论文全文数据库(硕士)工程科技Ⅱ辑》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9972125B2 (en) | Split tile map rendering | |
US9842123B2 (en) | Dynamic, parameterized image resource selection | |
WO2016066147A2 (en) | Method and device for processing image | |
US11741582B1 (en) | Video enhancement using a neural network | |
CN103927498A (en) | System and method for internal and external network data communication under physical isolation status | |
CN103634343A (en) | Wallpaper arranging method and terminal | |
CN111935425B (en) | Video noise reduction method and device, electronic equipment and computer readable medium | |
CN106157247A (en) | A kind of image processing method and system | |
CN110163866A (en) | A kind of image processing method, electronic equipment and computer readable storage medium | |
US20030138161A1 (en) | Method and apparatus for enhancing an image using a wavelet-based retinex algorithm | |
CN114041171A (en) | Viewing images on digital maps | |
Noor et al. | Strategizing secured image storing and efficient image retrieval through a new cloud framework | |
Boschetti et al. | Using NASA's World Wind virtual globe for interactive internet visualization of the global MODIS burned area product | |
US9360339B2 (en) | Rendering maps with canvas elements | |
Brunner et al. | Distributed geospatial data processing functionality to support collaborative and rapid emergency response | |
CN111833269A (en) | Video noise reduction method and device, electronic equipment and computer readable medium | |
US8913073B2 (en) | Interpolation according to a function represented using unevenly spaced samples of the function | |
US20160342372A1 (en) | Dynamic generation of test images for ambient light testing | |
CN113791751A (en) | Carousel graph display method and system, storage medium and terminal equipment | |
CN112818269A (en) | Chart calling method and device | |
CN108924587A (en) | A kind of rendering method and system based on cloud server | |
CN110799969A (en) | Semantic vector sheet | |
CN113538468B (en) | Method and device for constructing high-definition satellite map vector slice based on svg format | |
CN111966853B (en) | Management method of remote sensing image | |
Zhang et al. | Video Superresolution Reconstruction Using Iterative Back Projection with Critical‐Point Filters Based Image Matching |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210518 |