CN115858973A - Grid map analysis method, device, equipment and medium - Google Patents
Grid map analysis method, device, equipment and medium Download PDFInfo
- Publication number
- CN115858973A CN115858973A CN202310153941.8A CN202310153941A CN115858973A CN 115858973 A CN115858973 A CN 115858973A CN 202310153941 A CN202310153941 A CN 202310153941A CN 115858973 A CN115858973 A CN 115858973A
- Authority
- CN
- China
- Prior art keywords
- slice
- map
- page
- information
- raster
- 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
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The embodiment of the disclosure discloses a grid map analysis method, a grid map analysis device, grid map analysis equipment and a grid map analysis medium. One embodiment of the method comprises: accessing a raster map service address to obtain a raster map service file; analyzing the raster map service file to generate raster map service analysis information, wherein the raster map service analysis information comprises: requesting a slice group, coordinate system information, a map coverage, a slice origin and slice level information; acquiring page coordinate information of a current display page; according to the coordinate system information, carrying out source coordinate information conversion on the page coordinate information to obtain converted page coordinate information; generating a slice block number of each request slice in the request slice group according to the raster map service analysis information to obtain a slice block number group; and displaying a corresponding sliced grid map on the current display page according to the converted page coordinate information and the sliced block number group. This embodiment shortens the time of map loading.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a grid map analysis method, a device, equipment and a medium.
Background
The on-line map service access plug-in general service issuing manufacturers can be matched with the own access plug-in based on the characteristics of the own service. Such as mapbox for unity, unity map SDK, etc. A few plug-ins also provide access configurations for several service vendors, and also provide user-defined portals, such as Online Maps. At present, for map display under different coordinate systems, the commonly adopted method is as follows: and transforming the coordinate system into a WGS-84 coordinate system for map transformation.
However, in the above manner, there are generally the following technical problems:
firstly, the coordinate system and the transformation thereof have certain limitations, so that the map loading is slow;
second, the slices of the online grid map cannot be set adaptively, resulting in a mismatch between the loaded map and the page.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art in this country.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a grid map parsing method, apparatus, electronic device and computer readable medium to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a grid map parsing method applied to a target plug-in, where the method includes: accessing a grid map service address to obtain a grid map service file, wherein the grid map service file comprises: requesting slice links, coordinate system information, map coverage, slice origin and slice parameter information; analyzing the grid map service file to generate grid map service analysis information, wherein the grid map service analysis information comprises: requesting a slice group, coordinate system information, a map coverage, a slice origin and slice level information; acquiring page coordinate information of a current display page, wherein the page coordinate information comprises: the coordinates of the central point, the width of the page and the height of the page; according to the coordinate system information, carrying out source coordinate information conversion on the page coordinate information to obtain converted page coordinate information; generating a slice block number of each request slice in the request slice group according to the raster map service analysis information to obtain a slice block number group; and displaying a corresponding slicing grid map on the current display page according to the converted page coordinate information and the slicing block number group.
In a second aspect, some embodiments of the present disclosure provide a grid map parsing apparatus applied to a target plug-in, where the apparatus includes: an accessing unit configured to access a grid map service address to obtain a grid map service file, wherein the grid map service file includes: requesting slice links, coordinate system information, map coverage, slice origin and slice parameter information; an analysis unit configured to perform analysis processing on the raster map service file to generate raster map service analysis information, wherein the raster map service analysis information includes: requesting a slice group, coordinate system information, a map coverage range, a slice origin and slice level information; an obtaining unit configured to obtain page coordinate information of a currently displayed page, wherein the page coordinate information includes: the coordinates of the central point, the width of the page and the height of the page; a conversion unit configured to perform source coordinate information conversion on the page coordinate information according to the coordinate system information to obtain converted page coordinate information; a generating unit configured to generate a slice block number of each requested slice in the requested slice group according to the raster map service analysis information to obtain a slice block number group; and the display unit is configured to display a corresponding slice grid map on a current display page according to the converted page coordinate information and the slice block number group.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: by the grid map analysis method of some embodiments of the present disclosure, the time for map loading is shortened. In particular, the reason for the slower map loading is: the coordinate system and its transformation have certain limitations. Based on this, the grid map parsing method of some embodiments of the present disclosure first accesses the grid map service address to obtain the grid map service file. Wherein, the grid map service file includes: request slice link, coordinate system information, map coverage, slice origin and slice parameter information. And then, analyzing the raster map service file to generate raster map service analysis information. Wherein, the grid map service analysis information comprises: requesting slice groups, coordinate system information, map coverage, slice origin and slice level information. Data support is provided for loading maps under different coordinate systems. And then, acquiring the page coordinate information of the current display page. Wherein, the page coordinate information comprises: center point coordinates, page width, and page height. And then, according to the coordinate system information, carrying out source coordinate information conversion on the page coordinate information to obtain converted page coordinate information. Thus, the source coordinate information can be converted according to the attribute of the page. Thereby, loading of the sliced grid map is facilitated. And then, generating a slice block number of each request slice in the request slice group according to the raster map service analysis information to obtain a slice block number group. Therefore, the block number of the requested slice is convenient to determine, and the loading pushing to the page is convenient. And finally, displaying a corresponding slicing grid map on the current display page according to the coordinate information of the conversion page and the slicing block number group. From this, the slice displayable under the page can be determined. Thus, the slice map loading is completed.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a flow diagram of some embodiments of a grid map parsing method according to the present disclosure;
FIG. 2 is a schematic block diagram of some embodiments of a grid map parsing apparatus according to the present disclosure;
FIG. 3 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a flow diagram of some embodiments of a grid map parsing method according to the present disclosure. A flow 100 of some embodiments of a grid map parsing method according to the present disclosure is shown. The grid map analysis method is applied to a target plug-in, and comprises the following steps:
In some embodiments, an executing principal (e.g., a server) of the raster map parsing method may access a raster map service address to obtain a raster map service file. The grid map service address may be an address URL pointing to grid map service software. Wherein, the grid map service file includes: request slice link, coordinate system information, map coverage, slice origin and slice parameter information. Here, requesting a slice link may refer to a web address link to access a map slice. The coordinate system information may refer to information of a source coordinate system of the grid map, and may include a coordinate system type. The map coverage area may refer to a map coverage area, and may represent a map longitude and latitude area. The slice origin may represent a map origin. The slice parameter information may include a map slice level. The maps corresponding to different map slice levels have different sizes and different resolutions. A slice may refer to a map slice, i.e., a portion of a map that is cut out of the entire map. Here, the target plug-in may refer to a Unity plug-in, and may support access to a plurality of different map coordinate systems.
And 102, analyzing the raster map service file to generate raster map service analysis information.
In some embodiments, the execution subject may perform parsing processing on the raster map service file to generate raster map service parsing information. Wherein, the grid map service analysis information comprises: requesting slice groups, coordinate system information, map coverage, slice origin and slice level information. That is, the raster map service file may be an XML formatted file. The requested slice link, coordinate system information, map coverage, slice origin and slice parameter information included in the raster map service file may be extracted. The request slice in the request slice group may refer to one slice map after slicing the grid map.
And 103, acquiring page coordinate information of the current display page.
In some embodiments, the execution body may obtain page coordinate information of a currently displayed page. Wherein, the page coordinate information comprises: center point coordinates, page width, and page height. Here, the currently displayed page may be an interface currently displayed by the execution main body described above. The center point coordinates may refer to the center coordinates of the page.
And 104, converting the source coordinate information of the page coordinate information according to the coordinate system information to obtain converted page coordinate information.
In some embodiments, the execution body may perform source coordinate information conversion on the page coordinate information according to the coordinate system information to obtain converted page coordinate information. In practice, the source coordinate information conversion can be performed on the page coordinate information according to a pre-established coordinate conversion rule to obtain the converted page coordinate information. For example, the coordinate system of the grid map may be first determined as the source coordinate system (coordinate system information). Next, the page coordinate information may be determined as a target coordinate system. The target coordinate system is assumed to be the WGS84 coordinate system, so that coordinate conversion can be performed based on the proj library. In the application process, the coordinate conversion needs to be carried out reversely, and the source coordinate system and the target coordinate system are exchanged, so that the reverse coordinate conversion can be established. This provides a two-way coordinate transformation for the application. Therefore, the coordinate system corresponding to the page coordinate information can be converted into the coordinate system corresponding to the coordinate system information.
And 105, generating a slice block number of each request slice in the request slice group according to the raster map service analysis information to obtain a slice block number group.
In some embodiments, the execution body may generate a slice number of each requested slice in the requested slice group according to the raster map service parsing information to obtain a slice number group. The map coverage includes: map latitude maximum and map longitude maximum. The slice level information includes: slice level, reference ellipsoid radius, standard pixel size. The standard pixel size may refer to an international standard size pixelSize.
In practice, the execution body may generate the slice block number of each requested slice in the requested slice group by:
firstly, according to the standard pixel size, the set scale denominator, the circumference ratio, the slice level and the reference ellipsoid radius, the map resolution is generated. Here, the scale denominator may refer to a denominator of a one centimeter to actual length scale on the map. For example, a slice level of 2, the map resolution may be:
r =0.00028 x 1.479146777272828e8/((3.1415926 x 2 x 6378137)/360). Where R may represent a map resolution. 1.4791467772728E8 is the scale denominator. 6378137 may represent a reference ellipsoid radius. 3.1415926 may represent a circumference ratio.
And secondly, determining the map latitude and the map longitude corresponding to the request slice. That is, the map latitude and map longitude of the center point of the requested slice may be determined.
And a third step of generating a slice block number of the requested slice according to the map resolution, the map latitude and the map longitude.
In practice, the third step may include the following sub-steps:
a first substep of generating a line number of the requested slice based on the maximum map latitude, the map latitude, and the map resolution. First, a difference between the maximum map latitude and the map latitude may be determined as a latitude difference. Next, the product of the above-described map resolution and the target value may be determined as a resolution product. Then, rounding up may be performed on a ratio of the latitude difference value multiplied by the resolution to obtain a row number of the requested slice. The target value may be 256.
A second substep of generating a column number of the requested slice based on the maximum map longitude, the map longitude, and the map resolution. First, a difference between the maximum value of the map longitude and the map longitude may be determined as a longitude difference. Next, the product of the above-described map resolution and the target value may be determined as a resolution product. Then, rounding up may be performed on a ratio of the longitude difference to the resolution product to obtain a column number of the requested slice. The target value may be 256.
A third substep of combining the row number and the column number into a slice block number of the requested slice.
And 106, displaying a corresponding slicing grid map on a current display page according to the converted page coordinate information and the slicing block number group.
In some embodiments, the execution body may display a corresponding slice grid map on a current display page according to the converted page coordinate information and the slice block number group. Wherein, the above-mentioned conversion page coordinate information includes: and converting the coordinates of the central point, the width of the page and the height of the page. The conversion center point coordinate may be a center point coordinate converted into a coordinate system corresponding to the coordinate system information.
In practice, the executing body may display a corresponding sliced grid map on the current display page through the following steps:
firstly, determining a line number interval according to the abscissa of the coordinate of the conversion central point and the width of the conversion page. First, a ratio of the converted page width to the first value may be determined as a first ratio. And determining the difference value between the abscissa and the first ratio as the lower limit value of the line number interval. And determining the sum of the abscissa and the first ratio as an upper limit value of the line number interval. The line number interval is composed of a lower limit value and an upper limit value. The first value may refer to the product of 256 and 2.
And secondly, determining a column number interval according to the vertical coordinate of the conversion central point and the height of the conversion page. First, the ratio of the above converted page height to the first value may be determined as a second ratio. And determining the difference value between the high coordinate and the second ratio as the lower limit value of the column number interval. And determining the sum of the high coordinate and the second ratio as an upper limit value of the column number interval. The lower limit value and the upper limit value form a column number interval.
And thirdly, selecting a slice block number sequence to be displayed from the slice block number group according to the line number interval and the column number interval. That is, the respective integer row numbers included in the above-described row number section are determined, and the respective integer column numbers included in the column number section are determined. Then, for each integer row number in the integer row numbers, the integer row numbers and the integer column numbers are combined to generate a slice block number sequence group, and a slice block number sequence group is obtained. And selecting each slice block number corresponding to the slice block number sequence group from the slice block number group as a slice block number sequence.
And fourthly, displaying each request slice corresponding to the slice block number sequence on a current display page.
The related content in the step 106 is an inventive point of the present disclosure, and solves the technical problem mentioned in the background art that "the loaded map is not matched with the page. ". The factors that cause the loaded map to not match the page tend to be as follows: the slice of the online grid map cannot be set adaptively. If the factors are solved, the loaded map and the loaded page can be matched. To achieve this, first, a line number section is determined based on the abscissa of the coordinate of the conversion center point and the width of the conversion page. And then, determining a column number interval according to the vertical coordinate of the transformation central point coordinate and the transformation page height. Therefore, the number of the request slices which can be displayed by the current page can be determined according to the page width and the page height. That is, the size at which the tile map can be shown is determined. Then, according to the line number interval and the column number interval, selecting a slice block number sequence to be displayed from the slice block number group; and displaying each request slice corresponding to the slice block number sequence on a current display page. Therefore, the exposable request slice is selected according to the page width and the page height. Therefore, the map loaded on the page is ensured to be matched with the page. Excessive or insufficient loading of the map is avoided.
With further reference to fig. 2, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a grid map parsing apparatus, which correspond to those shown in fig. 1, and which may be applied in various electronic devices in particular.
As shown in fig. 2, the grid map resolution device 200 of some embodiments includes: an accessing unit 201, a parsing unit 202, an obtaining unit 203, a converting unit 204, a generating unit 205, and a displaying unit 206. The accessing unit 201 is configured to access a grid map service address to obtain a grid map service file, where the grid map service file includes: requesting slice links, coordinate system information, map coverage, slice origin and slice parameter information; an analysis unit 202, configured to perform analysis processing on the raster map service file to generate raster map service analysis information, where the raster map service analysis information includes: requesting a slice group, coordinate system information, a map coverage, a slice origin and slice level information; an obtaining unit 203 configured to obtain page coordinate information of a currently displayed page, where the page coordinate information includes: the coordinates of the central point, the width of the page and the height of the page; a conversion unit 204 configured to perform source coordinate information conversion on the page coordinate information according to the coordinate system information to obtain converted page coordinate information; a generating unit 205 configured to generate a slice block number of each requested slice in the requested slice group according to the raster map service analysis information, so as to obtain a slice block number group; and a display unit 206 configured to display a corresponding slice grid map on a current display page according to the converted page coordinate information and the slice block number group.
Optionally, the map coverage includes: a map latitude maximum value and a map longitude maximum value, wherein the slice level information includes: slice level, reference ellipsoid radius, standard pixel size.
Optionally, the generating unit 205 is further configured to: generating a map resolution according to the standard pixel size, the set scale denominator, the circumference ratio, the slice level and the reference ellipsoid radius; determining a map latitude and a map longitude corresponding to the request slice; and generating a slice block number of the requested slice according to the map resolution, the map latitude and the map longitude.
Optionally, the generating unit 205 is further configured to: generating a line number of the request slice according to the maximum map latitude value, the map latitude and the map resolution; generating a column number of the request slice according to the maximum map longitude value, the map longitude and the map resolution; and combining the row number and the column number into the slice block number of the requested slice.
Optionally, the generating unit 205 is further configured to: determining the difference between the maximum map latitude and the map latitude as a latitude difference; determining the product of the map resolution and the target value as a resolution product; and rounding up the ratio of the latitude difference value to the product of the resolution ratio to obtain the line number of the requested slice.
Optionally, the generating unit 205 is further configured to: determining the difference between the maximum map longitude value and the map longitude as a longitude difference; determining the product of the map resolution and the target value as a resolution product; and performing rounding-up processing on the ratio of the longitude difference value to the resolution product to obtain the column number of the request slice.
Optionally, the converting the page coordinate information includes: the coordinates of the conversion center point, the width of the conversion page and the height of the conversion page.
Optionally, the display unit 206, further configured to: determining a line number interval according to the abscissa of the coordinate of the conversion central point and the width of the conversion page; determining a column number interval according to the vertical coordinate of the transformation central point coordinate and the height of the transformation page; selecting a slice block number sequence to be displayed from the slice block number group according to the line number interval and the column number interval; and displaying each requested slice corresponding to the slice block number sequence on a current display page.
It is understood that the units described in the grid map analysis device 200 correspond to the respective steps in the method described with reference to fig. 1. Therefore, the operations, features and advantageous effects described above for the method are also applicable to the grid map analysis device 200 and the units included therein, and are not repeated herein.
Referring now to fig. 3, a block diagram of an electronic device (e.g., a server) 300 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device in some embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM302, and the RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate with other devices, wireless or wired, to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be alternatively implemented or provided. Each block shown in fig. 3 may represent one device or may represent multiple devices, as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. The computer program, when executed by the processing apparatus 301, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: accessing a grid map service address to obtain a grid map service file, wherein the grid map service file comprises: requesting slice links, coordinate system information, map coverage, slice origin and slice parameter information; analyzing the grid map service file to generate grid map service analysis information, wherein the grid map service analysis information comprises: requesting a slice group, coordinate system information, a map coverage, a slice origin and slice level information; acquiring page coordinate information of a current display page, wherein the page coordinate information comprises: the coordinates of the central point, the width of the page and the height of the page; according to the coordinate system information, carrying out source coordinate information conversion on the page coordinate information to obtain converted page coordinate information; generating a slice block number of each request slice in the request slice group according to the raster map service analysis information to obtain a slice block number group; and displaying a corresponding slicing grid map on the current display page according to the converted page coordinate information and the slicing block number group.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, which may be described as: a processor includes an access unit, a parsing unit, an acquisition unit, a conversion unit, a generation unit, and a display unit. The names of these cells do not constitute a limitation to the cell itself in some cases, and for example, the display cell may be described as "a cell displaying a corresponding tile grid map on a current display page according to the above conversion page coordinate information and the above tile block number group".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.
Claims (7)
1. A grid map parsing method is applied to a target plug-in and comprises the following steps:
accessing a raster map service address to obtain a raster map service file, wherein the raster map service file comprises: requesting slice links, coordinate system information, map coverage, slice origin and slice parameter information;
analyzing the raster map service file to generate raster map service analysis information, wherein the raster map service analysis information comprises: requesting a slice group, coordinate system information, a map coverage, a slice origin and slice level information;
acquiring page coordinate information of a current display page, wherein the page coordinate information comprises: the coordinates of the central point, the width of the page and the height of the page;
according to the coordinate system information, carrying out source coordinate information conversion on the page coordinate information to obtain converted page coordinate information;
generating a slice block number of each request slice in the request slice group according to the raster map service analysis information to obtain a slice block number group;
and displaying a corresponding slice grid map on the current display page according to the conversion page coordinate information and the slice block number group.
2. The method of claim 1, wherein the map coverage comprises: map latitude maximum and map longitude maximum, the slice level information including: slice level, reference ellipsoid radius, standard pixel size; and
the generating a slice block number of each request slice in the request slice group according to the raster map service analysis information includes:
generating a map resolution according to the standard pixel size, a set scale denominator, a circumference ratio, a slicing level and the reference ellipsoid radius;
determining a map latitude and a map longitude corresponding to the request slice;
and generating the slice block number of the requested slice according to the map resolution, the map latitude and the map longitude.
3. The method of claim 2, wherein the generating a tile number for the requested tile as a function of the map resolution, the map latitude, and the map longitude comprises:
generating a line number of the request slice according to the maximum map latitude value, the map latitude and the map resolution;
generating the column number of the request slice according to the maximum map longitude value, the map longitude and the map resolution;
and combining the row number and the column number into a slice block number of the request slice.
4. The method of claim 3, wherein the generating the row number for the requested slice as a function of the map latitude maximum, the map latitude, and the map resolution comprises:
determining the difference between the maximum map latitude and the map latitude as a latitude difference;
determining a product of the map resolution and a target value as a resolution product;
and rounding up the ratio of the latitude difference value to the product of the resolution ratio to obtain the line number of the request slice.
5. A grid map analysis device is applied to a target plug-in unit and comprises:
an accessing unit configured to access a raster map service address to obtain a raster map service file, wherein the raster map service file includes: requesting slice links, coordinate system information, map coverage, slice origin and slice parameter information;
an analysis unit configured to perform analysis processing on the raster map service file to generate raster map service analysis information, wherein the raster map service analysis information includes: requesting a slice group, coordinate system information, a map coverage range, a slice origin and slice level information;
an acquisition unit configured to acquire page coordinate information of a currently displayed page, wherein the page coordinate information includes: the coordinates of the central point, the width of the page and the height of the page;
the conversion unit is configured to perform source coordinate information conversion on the page coordinate information according to the coordinate system information to obtain converted page coordinate information;
the generating unit is configured to generate a slice block number of each request slice in the request slice group according to the raster map service analysis information to obtain a slice block number group;
and the display unit is configured to display a corresponding slice grid map on a current display page according to the conversion page coordinate information and the slice block number group.
6. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.
7. A computer-readable medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, carries out the method according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310153941.8A CN115858973B (en) | 2023-02-23 | 2023-02-23 | Grid map analysis method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310153941.8A CN115858973B (en) | 2023-02-23 | 2023-02-23 | Grid map analysis method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115858973A true CN115858973A (en) | 2023-03-28 |
CN115858973B CN115858973B (en) | 2023-06-13 |
Family
ID=85658756
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310153941.8A Active CN115858973B (en) | 2023-02-23 | 2023-02-23 | Grid map analysis method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115858973B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117171288A (en) * | 2023-11-02 | 2023-12-05 | 中国地质大学(武汉) | Grid map analysis method, device, equipment and medium |
CN117437654A (en) * | 2023-12-19 | 2024-01-23 | 中国地质大学(武汉) | Semantic recognition-based grid map analysis method, device and medium |
CN117688122A (en) * | 2024-02-04 | 2024-03-12 | 民航成都电子技术有限责任公司 | Coordinate conversion method, device, equipment and medium for slice map |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170040004A1 (en) * | 2015-08-07 | 2017-02-09 | International Business Machines Corporation | Facile and precise georeferencing and overlaying of map tiles |
CN107239531A (en) * | 2017-05-31 | 2017-10-10 | 国电南瑞科技股份有限公司 | A kind of extension GeoServer issues the implementation method of self-defined tile WMS services |
CN111753041A (en) * | 2020-06-30 | 2020-10-09 | 重庆紫光华山智安科技有限公司 | Data aggregation rendering method, device and system, electronic equipment and storage medium |
CN112214562A (en) * | 2019-07-12 | 2021-01-12 | 杭州海康威视系统技术有限公司 | Data processing method and device, electronic equipment and machine-readable storage medium |
CN113568994A (en) * | 2021-06-16 | 2021-10-29 | 数简科技(苏州)有限公司 | Real data acquisition method based on grid tile map |
-
2023
- 2023-02-23 CN CN202310153941.8A patent/CN115858973B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170040004A1 (en) * | 2015-08-07 | 2017-02-09 | International Business Machines Corporation | Facile and precise georeferencing and overlaying of map tiles |
CN107239531A (en) * | 2017-05-31 | 2017-10-10 | 国电南瑞科技股份有限公司 | A kind of extension GeoServer issues the implementation method of self-defined tile WMS services |
CN112214562A (en) * | 2019-07-12 | 2021-01-12 | 杭州海康威视系统技术有限公司 | Data processing method and device, electronic equipment and machine-readable storage medium |
CN111753041A (en) * | 2020-06-30 | 2020-10-09 | 重庆紫光华山智安科技有限公司 | Data aggregation rendering method, device and system, electronic equipment and storage medium |
CN113568994A (en) * | 2021-06-16 | 2021-10-29 | 数简科技(苏州)有限公司 | Real data acquisition method based on grid tile map |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117171288A (en) * | 2023-11-02 | 2023-12-05 | 中国地质大学(武汉) | Grid map analysis method, device, equipment and medium |
CN117171288B (en) * | 2023-11-02 | 2024-01-12 | 中国地质大学(武汉) | Grid map analysis method, device, equipment and medium |
CN117437654A (en) * | 2023-12-19 | 2024-01-23 | 中国地质大学(武汉) | Semantic recognition-based grid map analysis method, device and medium |
CN117437654B (en) * | 2023-12-19 | 2024-03-08 | 中国地质大学(武汉) | Semantic recognition-based grid map analysis method, device and medium |
CN117688122A (en) * | 2024-02-04 | 2024-03-12 | 民航成都电子技术有限责任公司 | Coordinate conversion method, device, equipment and medium for slice map |
CN117688122B (en) * | 2024-02-04 | 2024-04-30 | 民航成都电子技术有限责任公司 | Coordinate conversion method, device, equipment and medium for slice map |
Also Published As
Publication number | Publication date |
---|---|
CN115858973B (en) | 2023-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115858973B (en) | Grid map analysis method, device, equipment and medium | |
CN111930534A (en) | Data calling method and device and electronic equipment | |
CN111309304B (en) | Method, device, medium and electronic equipment for generating IDL file | |
CN115293657B (en) | Carbon emission index information generation method, apparatus, electronic device, and medium | |
CN110809189A (en) | Video playing method and device, electronic equipment and computer readable medium | |
CN111858381B (en) | Application fault tolerance capability test method, electronic device and medium | |
CN110209748B (en) | Method and apparatus for indexing geofences | |
CN115640285B (en) | Power abnormality information transmission method, device, electronic equipment and medium | |
CN112367241A (en) | Message generation and message transmission method, device, equipment and computer readable medium | |
CN111782329A (en) | Node dragging method, device, equipment and computer readable medium | |
CN113190517B (en) | Data integration method and device, electronic equipment and computer readable medium | |
CN113761097B (en) | Map tile loading method, device, equipment and medium for browser end | |
CN114428925A (en) | Page rendering method and device, electronic equipment and computer readable medium | |
CN111262907B (en) | Service instance access method and device and electronic equipment | |
CN111355784B (en) | Method, device, medium and electronic equipment for processing request information | |
CN111798251A (en) | Verification method and device of house source data and electronic equipment | |
CN111338827A (en) | Method and device for pasting table data and electronic equipment | |
CN113204557B (en) | Electronic form importing method, device, equipment and medium | |
CN112507676B (en) | Method and device for generating energy report, electronic equipment and computer readable medium | |
CN116483808B (en) | Data migration method, device, electronic equipment and computer readable medium | |
CN116319322B (en) | Power equipment node communication connection method, device, equipment and computer medium | |
CN115328811B (en) | Program statement testing method and device for industrial control network simulation and electronic equipment | |
CN116227391B (en) | Fault-tolerant Josephson junction array, dynamic ternary design method and equipment | |
CN111400322B (en) | Method, apparatus, electronic device and medium for storing data | |
CN112380821B (en) | Graphic display method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |