CN112700547A - Map making method and related equipment - Google Patents

Map making method and related equipment Download PDF

Info

Publication number
CN112700547A
CN112700547A CN202110304960.7A CN202110304960A CN112700547A CN 112700547 A CN112700547 A CN 112700547A CN 202110304960 A CN202110304960 A CN 202110304960A CN 112700547 A CN112700547 A CN 112700547A
Authority
CN
China
Prior art keywords
tile
data
map
tile data
mountain shadow
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
Application number
CN202110304960.7A
Other languages
Chinese (zh)
Other versions
CN112700547B (en
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.)
Beijing Jianju Technology Co ltd
Original Assignee
Beijing Jianju Technology 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 Beijing Jianju Technology Co ltd filed Critical Beijing Jianju Technology Co ltd
Priority to CN202110304960.7A priority Critical patent/CN112700547B/en
Publication of CN112700547A publication Critical patent/CN112700547A/en
Application granted granted Critical
Publication of CN112700547B publication Critical patent/CN112700547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models

Abstract

The present disclosure provides a map making method, including: receiving a map making request; extracting first surface tile data corresponding to the tile hierarchy and the tile position information; extracting first mountain shadow tile data corresponding to the tile level and the tile position information; cutting the first surface tile data according to the geographic range information to obtain second surface tile data corresponding to the geographic range information, and cutting the first mountain shadow tile data to obtain second mountain shadow tile data corresponding to the geographic range information; rendering the second surface tile data according to the color system information to obtain rendered surface grid tiles; performing semi-transparent processing on the second mountain shadow tile data to obtain mountain shadow grid tiles; and superposing the ground surface grid tiles and the mountain shadow grid tiles to obtain the map grid tiles. Corresponding to the method, the disclosure also provides related equipment for realizing the map making method.

Description

Map making method and related equipment
Technical Field
The present disclosure relates to the field of electronic map technologies, and in particular, to a map making method and related devices.
Background
Digital Elevation Models (DEMs) belong to a raster graphic representation of a continuous surface, usually referenced to the real earth surface. The DEM realizes digital simulation of ground terrain through limited terrain elevation data, namely digital expression of terrain surface morphology, and is an entity ground model for expressing ground elevation in a group of ordered numerical array forms.
The DEM drawing has an important role in map drawing, for example, in an internet electronic map, mountain shadows can be generated through the DEM, and the readability and the attractiveness of the map are enhanced. In addition, in some professional fields such as mapping in the meteorological field, the demand of DEM mapping also exists, namely, by superposing meteorological element data on a DEM layer, the information amount and readability of mapping results are increased.
At present, the DEM drawing usually uses desktop version professional software such as QGIS, ArcGIS and the like, has high professional degree and complex operation, and requires a user to store DEM data locally in advance. Because the DEM data is generally large in volume, the efficiency of the current DEM drawing is low. In addition, if a DEM map of a specific area (such as Beijing) is made, the DEM data needs to be cut first. The existing DEM drawing product cannot meet the requirements of flexibly specifying a specific area according to actual needs and rendering a drawing in real time.
Disclosure of Invention
In view of this, one or more embodiments of the present disclosure provide a map making method. The method can comprise the following steps:
receiving a mapping request from a mapping client; the map making request comprises a tile level, tile position information, geographical range information and color system information corresponding to the requested map;
according to the tile level and the tile position information, extracting first surface tile data corresponding to the tile level and the tile position information from surface data stored in a surface database;
according to the tile level and the tile position information, extracting first mountain shadow tile data corresponding to the tile level and the tile position information from mountain shadow data stored in a mountain shadow database;
cutting the first surface tile data according to the geographical range information to obtain second surface tile data corresponding to the geographical range information;
cutting the first mountain shadow tile data according to the geographic range information to obtain second mountain shadow tile data corresponding to the geographic range information;
rendering the second surface tile data according to the color system information to obtain rendered surface grid tiles;
performing semi-transparent processing on the second mountain shadow tile data to obtain mountain shadow grid tiles;
and superposing the ground surface grid tile and the mountain shadow grid tile to obtain a map grid tile and returning the map grid tile to the map making client.
The first surface tile data is Digital Elevation Model (DEM) tile data; or, the first surface tile data is surface covering tile data.
Wherein said cropping the first surface tile data according to the geographic range information comprises: masking the first surface tile data using the geographic range information; wherein, after the masking, the pixel value of the second surface tile data outside the geographical range information is assigned with a null value; and
the cropping the first mountain shadow tile data according to the geographic range information comprises: masking the first mountain shadow tile data using the geographic range information; wherein, after the masking, pixel values of the second mountain shadow tile data outside the geographical range information are assigned null values.
Wherein said masking said first surface tile data using said geographic range information comprises: generating mask data according to the geographic range information; mask data corresponding to the geographic range represented by the geographic range information in the mask data is 1, and mask data corresponding to the geographic range represented by the geographic range information outside the geographic range is 0; and performing Boolean calculation on pixels corresponding to the mask data and the first surface tile data.
Wherein the rendering the second surface tile data according to the color system information comprises: for each pixel in the second surface tile data, calculating to obtain a color corresponding to the pixel according to the color system information and the pixel value of the pixel; and rendering the pixel to the color.
The second surface tile data is DEM tile data, and the obtaining of the color corresponding to the pixel by calculating according to the color system information and the pixel value thereof includes: calculating according to the color system information and the DEM elevation value to obtain the color corresponding to the pixel; or the second surface tile data is surface covering tile data, and the calculating the color corresponding to the pixel according to the color system information and the pixel value thereof includes: and calculating to obtain the color corresponding to the pixel according to the color system information and the earth surface coverage type value.
Wherein said superimposing said surface grid tiles with said mountain shadow grid tiles comprises: and adding the pixel values of the pixels corresponding to the surface grid tile and the mountain shadow grid tile.
Wherein the surface data is stored in a surface database in a pyramid structure; and storing the mountain shadow data in a mountain shadow database in a pyramid structure.
Corresponding to the map making method, one or more embodiments of the present disclosure also provide a map making engine. The mapping engine may include:
the request receiving module is used for receiving a map making request from a map making client; the map making request comprises a tile level, tile position information, geographical range information and color system information corresponding to the requested map;
the surface tile data extraction module is used for extracting first surface tile data corresponding to the tile hierarchy and the tile position information from surface data stored in a surface database according to the tile hierarchy and the tile position information;
the mountain shadow tile data extraction module is used for extracting first mountain shadow tile data corresponding to the tile level and the tile position information from mountain shadow data stored in a mountain shadow database according to the tile level and the tile position information;
the first cutting module is used for cutting the first surface tile data according to the geographical range information to obtain second surface tile data corresponding to the geographical range information;
the second cropping module is used for cropping the first mountain shadow tile data according to the geographic range information to obtain second mountain shadow tile data corresponding to the geographic range information;
the first rendering module is used for rendering the second surface tile data according to the color system information to obtain rendered surface grid tiles;
the second rendering module is used for performing semi-transparent processing on the second mountain shadow tile data to obtain mountain shadow grid tiles; and
and the superposition module is used for superposing the ground surface grid tiles and the mountain shadow grid tiles to obtain map grid tiles and returning the map grid tiles to the map making client.
One or more embodiments of the present disclosure also provide a map making system, including: the map making system comprises a map making client, a ground database, a mountain shadow database and the map making engine; the map making client is used for providing a user interface for a user, acquiring the geographical range and the color system of a map requested by the user through the user interface, and generating a map making request according to the geographical range and the color system of the requested map; the map making request comprises the tile level, the tile position information, the geographic range information and the color system information corresponding to the requested map.
One or more embodiments of the present disclosure also provide an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the above mapping method when executing the program.
One or more embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the above-described map making method.
Therefore, the map making method and the map making system can read the earth surface data and the mountain shadow data as required by storing the data through the pyramid structure, thereby greatly reducing the data reading time and improving the data reading efficiency. Secondly, in the map making method, the map making engine can generate the grid tiles in real time according to any geographical range specified by the user, namely, the map making in any geographical range can be realized. In the map making method, the map making engine can render the map according to the color system information selected by the user, and can generate mountain shadow effects of different color systems, so that the requirements of the user on the map color and the shadow effect are met.
Drawings
In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a mapping system according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart illustrating an implementation of a map making method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a mapping engine according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the disclosure.
Detailed Description
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
It is to be noted that technical terms or scientific terms used in the embodiments of the present disclosure should have a general meaning as understood by those having ordinary skill in the art to which the present disclosure belongs, unless otherwise defined. The use of "first," "second," and similar terms in the embodiments of the disclosure is not intended to indicate any order, quantity, or importance, but rather to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
As mentioned above, existing DEM mapping products require a user to store DEM data locally in advance, and do not support mapping of a specific area. In view of this, some embodiments of the present disclosure provide a map making scheme, which can not only achieve a display effect of mountain shadows in a map, support setting of different rendering colors, but also support making of a map in any specific area.
The mapping method according to one or more embodiments of the present disclosure may be applied to a mapping system as shown in fig. 1. As shown in fig. 1, a mapping system according to an embodiment of the present disclosure may include: a mapping client 102, a mapping engine 104, a surface database 106, and a mountain shadow database 108.
The mapping client 102 generally refers to a software or hardware product used locally by a user. For example, the mapping client 102 may be an application installed on a general-purpose computing device, may be an application implemented by a browser, and may even be a user terminal device having mapping and display functions.
The mapping engine 104 described above may generally refer to server-side software or a server device in communication with the mapping client 102 for implementing mapping according to the requirements of the mapping client 102.
The surface database 106 is mainly used for storing surface data. In some embodiments of the present disclosure, the surface data may refer to data reflecting the morphology of the earth surface, for example, the surface data may be both DEM data and surface coverage data. In the embodiment of the disclosure, the DEM data is mostly used in map mapping related to weather; the surface coverage data is mostly used for drawing an internet map.
The mountain shadow database 108 is mainly used for storing mountain shadow data. The three-dimensional shape of the terrain can be better expressed through the mountain shadow data.
It should be noted that, in some embodiments of the present disclosure, the mapping system described above supports deployment in a common server stand-alone and cluster environment; meanwhile, deployment in a cloud computing environment is supported, flexible horizontal expansion in the cloud computing environment is supported, and client requests of different scales are responded. In particular, the mapping client 102 and the mapping engine 104 may be in a client/server mode, wherein the mapping engine 104 may be implemented by one or more servers or cluster servers. In this case, the surface database 106 and the mountain shadow database 108 may be disposed on the server side. In addition, in other embodiments of the present disclosure, the mapping engine 104 surface database 106 and the mountain shadow database 108 may also be implemented by cloud technology.
In addition, in order to implement the method according to the embodiment of the present disclosure, the above-mentioned ground surface data and the mountain shadow data need to be processed into data of a pyramid structure in advance, that is, the ground surface tile data (DEM tile data and ground surface covering tile data) and the mountain shadow tile data are obtained. And then stored in the above-mentioned land database 106 and the mountain shadow database 108, respectively. Specifically, the processed surface data and mountain shadow data may include a plurality of pieces of tile data, where each piece of tile data may be uniquely marked by the tile level Z and the tile position information (i.e., the row and column numbers X and Y). Moreover, each tile typically contains data within a pre-set rectangular geographic range. Specifically, in the method according to the embodiment of the present disclosure, Cloud Optimized GeoTIFF (COG) may be used as a storage format of the DEM data, the surface coverage data, and the mountain shadow data. COG provides, among other things, a way to store raster data using a block and pyramid structure and supports on-demand reading. Specifically, the COG file may be stored in a file manner, or may be stored in an object storage manner. The COG supports hypertext transfer protocol (HTTP) Range operation, and in combination with object storage, data in the COG can be read as required in an HTTP mode.
After the surface data or the mountain shadow data are stored by the method, the surface data and the mountain shadow data support a storage mode of dividing the surface data or the mountain shadow data into a plurality of files according to latitude and longitude ranges, and the map making engine 104 can realize automatic splicing of the tile data when reading the tile data.
Further, the mapping engine 104 can support reading of the surface data and the mountain shadow data as needed by the storage manner of the pyramid structure, thereby effectively solving the problem of large file reading efficiency. This is because DEM data or surface coverage data is typically voluminous, e.g., can reach hundreds of Gigabits (GB), and therefore reading such data typically takes a significant amount of time. After the data is stored according to the pyramid structure, the mapping engine 104 may read only a portion of the data (e.g., one or more tile data, usually tens of thousands of bits) according to the user's requirement, so as to greatly improve the data reading efficiency and reduce the mapping time.
After the preparation, the map making engine 104 may process the basic data, which is the ground surface data and the mountain shadow data, according to the drawing request received from the map making client 102, so as to render the grid tiles with the mountain shadow effect customized by the user and feed the grid tiles back to the map making client 102.
Fig. 2 shows an implementation process of a map making method according to an embodiment of the present disclosure. The mapping method may be performed by the mapping engine 104 described above. As shown in fig. 2, the method may include:
at step 202, receiving a mapping request from a mapping client 102; the map making request comprises the tile level, the tile position information, the geographic range information and the color system information corresponding to the requested map.
In some embodiments of the present disclosure, the mapping client 102 may provide a user interface for the user to set mapping parameters. In particular, the user may select the geographic range and color system, etc. of the requested map via the user interface provided by the mapping client 102 described above. After obtaining the information, the mapping client 102 generates a mapping request according to the geographic range and color system of the requested map. As mentioned above, the map making request includes the tile level, the tile position information, the geographical range information and the color system information corresponding to the requested map.
Specifically, for the geographic range of the map to be drawn, the user may select one of a plurality of preset areas, such as administrative areas of the yellow river basin or beijing city, from the geographic area list provided by the map making client 102. The user may also select the geographic range of the requested map by drawing a circle, rectangle, polygon, etc. with a drawing tool on a background map having a larger geographic range provided by the mapping client 102. After obtaining the geographic range of the requested map, the mapping client 102 may convert the geographic range of the requested map to obtain a geographic coordinate sequence corresponding to the geographic range, that is, longitude and latitude coordinates of a series of points. In an embodiment of the present disclosure, the geographical coordinate sequence may be used as the geographical range information. Specifically, in the conversion process, the map making client 102 may directly obtain the geographic coordinate sequence corresponding to the geographic range of the requested map according to the preset geographic coordinate sequences of the geographic areas; the mapping client 102 may also determine coordinates of each point of an area covered by a graphic drawn on the user interface by the user on the display interface; converting the coordinates of the points into longitude and latitude of a plurality of points on a currently displayed map on the interface; and finally, taking the longitude and latitude of the plurality of points as the geographical range information.
Similarly, for color systems, the user may select one of a plurality of color bars from the list of color bars provided by the mapping client 102 described above. The user may also customize the ribbon on the ribbon configuration interface provided by mapping client 102 described above. After obtaining the color bars of the map to be drawn, the mapping client 102 may convert the color bars into a sequence of color values. In an embodiment of the present disclosure, the geographic coordinate sequence may be used as the color system information (colormaps). The color system information may be a sequence of colors, or may be simply considered as an array, where each value in the array represents a color.
As mentioned above, the land surface data and the mountain shadow data are stored in a pyramid structure, and specifically, each tile data in the land surface data and the mountain application data can be uniquely marked by the tile level Z and the tile position information, i.e., the row and column numbers X and Y. Therefore, the corresponding tile data can be obtained from the earth database and the mountain shadow database through the tile hierarchy and the tile position information. Based on the above situation, in some embodiments of the present disclosure, in step 202, the mapping client 102 may determine, according to the geographical range information corresponding to the map requested by the user, the tile hierarchy and the tile location information corresponding to the requested map based on the storage rule of the pyramid structure.
In step 204, according to the tile level and the tile position information, first surface tile data corresponding to the tile level and the tile position information are extracted from the surface data stored in the surface database 106.
In some embodiments of the present disclosure, the first surface tile data is generally data within a preset rectangular geographic range.
As mentioned above, the surface data may be DEM tile data. In this case, the first surface tile data mentioned above specifically refers to the first DEM tile data.
Furthermore, the surface data may be surface coverage tile data. In this case, the first surface tile data is specifically referred to as first surface coverage tile data.
In step 206, according to the tile level and the tile position information, first mountain shadow tile data corresponding to the tile level and the tile position information is extracted from mountain shadow data stored in the mountain shadow database 108.
In some embodiments of the present disclosure, the first mountain shadow tile data is typically data within a preset rectangular geographic range.
It should be noted that, although the reference numerals of the step 204 and the step 206 are given in sequence, the execution order of the two steps is not limited in the present disclosure, that is, the two steps may be executed in any order, sequentially, or in parallel.
In step 208, the first surface tile data is cropped according to the geographical range information to obtain second surface tile data corresponding to the geographical range information.
In an embodiment of the present disclosure, the cutting specifically may include: and masking the first surface tile data by using the geographical range information. The masking processing is to generate mask data according to the geographical range information, and then process the first surface tile data as target data by using the mask data. In this case, the processing specifically includes: the pixels in the first surface tile data that fall within the mask range of the mask data retain their values, while the pixels outside the mask range are assigned null values (NoData). In some embodiments, the mask data is raster data having a size equal to the first surface tile data, and has a value of 0 or 1. Where 0 indicates outside the mask range and 1 indicates inside the mask range. In this case, the mask processing may specifically perform boolean calculations for the mask data and the pixels corresponding to the first surface tile data. In an embodiment of the present disclosure, the mask range may adopt a geographic range corresponding to the geographic range information, and specifically, in the process of generating the mask data, the mask data corresponding to the geographic range within the geographic range represented by the geographic range information is set to be 1, and the mask data corresponding to the geographic range outside the geographic range represented by the geographic range information is set to be 0. Since the geographical range information is usually in a vector data format, it is necessary to perform rasterization processing on the geographical range information before performing masking processing. After the masking, the pixel values of the second surface tile data that are outside the geographical range information are assigned with null values (nondata). In the embodiment of the present disclosure, the null value represents that there is no data, and the null value is displayed as a transparent pixel point when being reflected on the tile of the ground surface.
In step 210, the mountain shadow tile data is cropped according to the geographical range information to obtain a second mountain shadow tile data corresponding to the geographical range information.
In an embodiment of the present disclosure, the cutting specifically may include: masking the first mountain shadow tile data using the geographical range information. After the masking, the pixel values outside the geographical range information in the second mountain shadow tile data are assigned with null values (NoData). In the embodiment of the present disclosure, the null value represents that there is no data, and the null value is displayed as a transparent pixel point when reflected on the mountain shadow tile.
It should be noted that, although the reference numerals of the step 208 and the step 210 are given sequentially, the execution order of the two steps is not limited in the present disclosure, that is, the two steps may be executed sequentially according to any order or may be executed in parallel.
In step 212, the second surface tile data is rendered according to the color system information in the map making request, so as to obtain a rendered surface grid tile.
In an embodiment of the disclosure, for each pixel in the second surface tile data, a color corresponding to the pixel is obtained through calculation according to the color system information and a pixel value thereof, and then the pixel is rendered into the color, so that the second surface tile data is rendered, and a rendered surface grid tile is obtained.
Specifically, for DEM tile data, the method in the above step supports giving different colors to different DEM elevation values, that is, the color corresponding to each pixel can be calculated according to the color system information and the DEM elevation value of each pixel, so as to generate the mountain shadow effect of different color systems; for the data of the ground surface covering tiles, the method described in the above steps supports giving different colors to different ground surface covering type values (such as vegetation, desert, mountain, etc.), that is, the color corresponding to each pixel can be calculated according to the color system information and the ground surface covering type value of each pixel, so as to generate the mountain shadow effect of different color systems.
In step 214, the data of the second mountain shadow tile is semi-transparent processed to obtain a mountain shadow grid tile.
Specifically, in the embodiment of the present disclosure, the second mountain shadow tile data may be subjected to the translucency processing by setting the transparency of the second mountain shadow tile data to 0.5 or other preset transparency values, such as 0.4 or 0.6, which may be displayed as a translucency effect.
It should be noted that, although the above step 212 and step 214 are labeled sequentially, the execution order of the above two steps is not limited in this disclosure, that is, the above two steps may be executed sequentially in any order or may be executed in parallel.
In step 216, the above-mentioned ground grid tile and the above-mentioned mountain shadow grid tile are superimposed to obtain a map grid tile and returned to the map making client 102.
In an embodiment of the present disclosure, the ground grid tile and the mountain shadow grid tile have the same specification size, because the ground grid tile and the mountain shadow grid tile are extracted from a database according to the same information and cropped according to the same information. In this step, the superimposition operation can be realized by adding the pixel values of the pixels corresponding to the surface grid tile and the mountain shadow grid tile. Through the operation, the mountain shadow effect of the finally obtained grid tile is formed by superposing the following two parts: one part is the effect obtained by rendering DEM tile data or ground surface covering tile data into different colors; the second part is the effect of rendering the mountain shadow semi-transparent.
According to the map making method, the data are stored in the pyramid structure, so that the earth surface data and the mountain shadow data can be read as required, the data reading time is greatly shortened, and the data reading efficiency is improved. Secondly, in the above map making method, the map making engine 104 may generate the grid tiles in real time according to any geographical range specified by the user, that is, may implement map making in any geographical range. Thirdly, in the map making method, the map can be rendered according to the color system information selected by the user, and meanwhile, the mountain shadow effect of different color systems can be generated, so that the requirements of the user on the map color and the shadow effect are met.
It should be noted that the method of the embodiments of the present disclosure may be executed by a single device, such as a computer or a server. The method of the embodiment can also be applied to a distributed scene and completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the devices may only perform one or more steps of the method of the embodiments of the present disclosure, and the devices may interact with each other to complete the method.
It should be noted that the above describes some embodiments of the disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same inventive concept, the present disclosure also provides a map making engine corresponding to the map making method described in any of the above embodiments.
Referring to fig. 3, the mapping engine may include:
a request receiving module 302 for receiving a map making request from the map making client 102; the map making request comprises the tile level, the tile position information, the geographic range information and the color system information corresponding to the requested map.
A surface tile data extraction module 304, configured to extract, according to the tile hierarchy and the tile location information of the requested map in the map making request, first surface tile data corresponding to the tile hierarchy and the tile location information from the surface data in the surface database storage 106.
In some embodiments of the present disclosure, the first surface tile data is generally data within a preset rectangular geographic range.
As mentioned above, the surface data may be DEM tile data. In this case, the first surface tile data mentioned above specifically refers to the first DEM tile data. Furthermore, the surface data may be surface coverage tile data. In this case, the first surface tile data is specifically referred to as first surface coverage tile data.
The massif shadow tile data extraction module 306 is configured to extract, according to the tile hierarchy and the tile position information of the requested map in the map making request, first massif shadow tile data corresponding to the tile hierarchy and the tile position information from the massif shadow data stored in the massif shadow database 108.
In some embodiments of the present disclosure, the first mountain shadow tile data is typically data within a preset rectangular geographic range.
The first cropping module 308 is configured to crop the first surface tile data according to the geographic range information in the map making request, so as to obtain second surface tile data corresponding to the geographic range information.
In an embodiment of the present disclosure, the cutting specifically may include: and masking the first surface tile data by using the geographical range information. After the masking, the pixel values of the second surface tile data that are outside the geographical range information are assigned with null values (nondata). In the embodiment of the present disclosure, the null value represents that there is no data, and the null value is displayed as a transparent pixel point when being reflected on the tile of the ground surface.
The second cropping module 310 crops the mountain shadow tile data according to the geographic range information in the map making request to obtain a second mountain shadow tile data corresponding to the geographic range information.
In an embodiment of the present disclosure, the cutting specifically may include: masking the first mountain shadow tile data using the geographical range information. After the masking, the pixel values outside the geographical range information in the second mountain shadow tile data are assigned with null values (NoData). In the embodiment of the present disclosure, the null value represents that there is no data, and the null value is displayed as a transparent pixel point when reflected on the mountain shadow tile.
And a first rendering module 312, configured to render the second surface tile data according to the color system information in the map making request, so as to obtain a rendered surface grid tile.
In an embodiment of the disclosure, for each pixel in the second surface tile data, a color corresponding to the pixel is obtained through calculation according to the color system information and a pixel value thereof, and then the pixel is rendered into the color, so that the second surface tile data is rendered, and a rendered surface grid tile is obtained.
Specifically, for DEM tile data, the first rendering module 312 supports giving different colors to different DEM elevation values, so as to generate mountain shadow effects of different color systems; for the tile data of the ground cover, the first rendering module 312 supports different colors given to different values of the ground cover type (such as vegetation, desert, mountain, etc.), so as to generate the mountain shadow effect of different color systems.
And the second rendering module 314 is configured to perform semi-transparent processing on the second mountain shadow tile data to obtain a mountain shadow grid tile.
It should be noted that, although the above step 212 and step 214 are labeled sequentially, the execution order of the above two steps is not limited in this disclosure, that is, the above two steps may be executed sequentially in any order or may be executed in parallel.
And the superposition module 316 is configured to superpose the ground grid tiles and the mountain shadow grid tiles to obtain map grid tiles, and return the map grid tiles to the map making client 102.
Based on the map making engine, the present disclosure also provides a map making system, which may include: the map making system comprises a map making client, a ground database, a mountain shadow database and the map making engine; the map making client is used for providing a user interface for a user, acquiring the geographical range and the color system of a map requested by the user through the user interface, and generating a map making request according to the geographical range and the color system of the requested map; the map making request comprises the tile level, the tile position information, the geographical range information and the color system information corresponding to the requested map.
According to the scheme, the data are stored in the pyramid structure, so that the earth surface data and the mountain shadow data can be read as required, the data reading time is greatly shortened, and the data reading efficiency is improved. Secondly, the map making engine can generate the grid tiles in real time according to any geographical range specified by the user, and map making in any geographical range can be realized. And thirdly, the map drawing engine can render the map according to the color system information selected by the user, and can generate mountain shadow effects of different color systems, thereby meeting the requirements of the user on the map color and the shadow effect.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations of the present disclosure.
The apparatus of the foregoing embodiment may implement the corresponding map making method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above-described embodiment methods and the map making engine, the present disclosure also provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and operable on the processor, and when the processor executes the program, the map making method according to any of the above embodiments is implemented.
Fig. 4 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device of the above embodiment may implement the corresponding map making method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above-described embodiment methods and mapping engines, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the mapping method according to any of the above-described embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the map making method according to any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, and are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the present disclosure, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures for simplicity of illustration and discussion, and so as not to obscure the embodiments of the disclosure. Furthermore, devices may be shown in block diagram form in order to avoid obscuring embodiments of the present disclosure, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the present disclosure are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that the embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive. While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The disclosed embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalents, improvements, and the like that may be made within the spirit and principles of the embodiments of the disclosure are intended to be included within the scope of the disclosure.

Claims (12)

1. A map making method, comprising:
receiving a map making request; the map making request comprises a tile level, tile position information, geographical range information and color system information corresponding to the requested map;
according to the tile level and the tile position information, extracting first surface tile data corresponding to the tile level and the tile position information from surface data stored in advance;
according to the tile level and the tile position information, extracting first mountain shadow tile data corresponding to the tile level and the tile position information from mountain shadow data stored in advance;
cutting the first surface tile data according to the geographical range information to obtain second surface tile data corresponding to the geographical range information;
cutting the first mountain shadow tile data according to the geographic range information to obtain second mountain shadow tile data corresponding to the geographic range information;
rendering the second surface tile data according to the color system information to obtain rendered surface grid tiles;
performing semi-transparent processing on the second mountain shadow tile data to obtain mountain shadow grid tiles;
and superposing the ground surface grid tile and the mountain shadow grid tile to obtain a map grid tile and returning the map grid tile to the map making client.
2. The method of claim 1 wherein the first surface tile data is Digital Elevation Model (DEM) tile data; or, the first surface tile data is surface covering tile data.
3. The method of claim 1 wherein said cropping said first surface tile data according to said geographic range information comprises: masking the first surface tile data using the geographic range information; wherein, after the masking, pixel values of the second surface tile data outside the geographical range information are assigned with null values; and
the cropping the first mountain shadow tile data according to the geographic range information comprises: masking the first mountain shadow tile data using the geographic range information; wherein pixel values of the second mountain shadow tile data outside the geographic range information are assigned null values after the masking process.
4. The method of claim 3, wherein said masking the first surface tile data using the geographic range information comprises:
generating mask data according to the geographic range information; mask data corresponding to the geographic range represented by the geographic range information in the mask data is 1, and mask data corresponding to the geographic range represented by the geographic range information outside the geographic range is 0; and
and performing Boolean calculation on pixels corresponding to the mask data and the first surface tile data.
5. The method of claim 1, wherein the rendering the second surface tile data according to the color family information comprises:
for each pixel in the second surface tile data, calculating to obtain a color corresponding to the pixel according to the color system information and the pixel value of the pixel; and rendering the pixel to the color.
6. The method of claim 5, wherein the second surface tile data is DEM tile data, and the calculating the color corresponding to the pixel according to the color system information and the pixel value thereof comprises: calculating according to the color system information and the DEM elevation value to obtain the color corresponding to the pixel; alternatively, the first and second electrodes may be,
the second surface tile data is surface covering tile data, and the calculating the color corresponding to the pixel according to the color system information and the pixel value thereof comprises: and calculating to obtain the color corresponding to the pixel according to the color system information and the earth surface coverage type value.
7. The method of claim 1, wherein the overlaying the ground grid tile with the mountain shadow grid tile comprises: and adding the pixel values of the pixels corresponding to the surface grid tile and the mountain shadow grid tile.
8. The method of claim 1, wherein the surface data is stored in a surface database in a pyramid structure; and storing the mountain shadow data in a mountain shadow database in a pyramid structure.
9. A map drawing engine, comprising:
the request receiving module is used for receiving a map making request from a map making client; the map making request comprises a tile level, tile position information, geographical range information and color system information corresponding to the requested map;
the surface tile data extraction module is used for extracting first surface tile data corresponding to the tile hierarchy and the tile position information from surface data stored in a surface database according to the tile hierarchy and the tile position information;
the mountain shadow tile data extraction module is used for extracting first mountain shadow tile data corresponding to the tile level and the tile position information from mountain shadow data stored in a mountain shadow database according to the tile level and the tile position information;
the first cutting module is used for cutting the first surface tile data according to the geographical range information to obtain second surface tile data corresponding to the geographical range information;
the second cropping module is used for cropping the first mountain shadow tile data according to the geographic range information to obtain second mountain shadow tile data corresponding to the geographic range information;
the first rendering module is used for rendering the second surface tile data according to the color system information to obtain rendered surface grid tiles;
the second rendering module is used for performing semi-transparent processing on the second mountain shadow tile data to obtain mountain shadow grid tiles; and
and the superposition module is used for superposing the ground surface grid tiles and the mountain shadow grid tiles to obtain map grid tiles and returning the map grid tiles to the map making client.
10. A map making system, comprising: a mapping client, a surface database, a mountain shadow database, and the mapping engine of claim 9; wherein the content of the first and second substances,
the map making client is used for providing a user interface for a user, acquiring the geographical range and the color system of the map requested by the user through the user interface, and generating a map making request according to the geographical range and the color system of the requested map; the map making request comprises the tile level, the tile position information, the geographic range information and the color system information corresponding to the requested map.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a mapping method as claimed in any one of claims 1 to 8 when executing the program.
12. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the mapping method of any one of claims 1 to 8.
CN202110304960.7A 2021-03-23 2021-03-23 Map making method and related equipment Active CN112700547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110304960.7A CN112700547B (en) 2021-03-23 2021-03-23 Map making method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110304960.7A CN112700547B (en) 2021-03-23 2021-03-23 Map making method and related equipment

Publications (2)

Publication Number Publication Date
CN112700547A true CN112700547A (en) 2021-04-23
CN112700547B CN112700547B (en) 2021-06-29

Family

ID=75515351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110304960.7A Active CN112700547B (en) 2021-03-23 2021-03-23 Map making method and related equipment

Country Status (1)

Country Link
CN (1) CN112700547B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113779167A (en) * 2021-08-20 2021-12-10 北京百度网讯科技有限公司 Map data processing method, device, equipment and storage medium
CN117726707A (en) * 2024-02-08 2024-03-19 北京未来宇航空间科技研究院有限公司 Method and device for displaying custom region in electronic map and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060197781A1 (en) * 2005-03-03 2006-09-07 Arutunian Ethan B System and method utilizing enhanced imagery and associated overlays
CN101887595A (en) * 2009-05-14 2010-11-17 武汉如临其境科技创意有限公司 Three-dimensional digital earth-space data organizing and rendering method based on quad-tree index
CN102622738A (en) * 2012-03-08 2012-08-01 北京师范大学 Method for recovering spectral information of hill shade area of Landsat thematic mapper/enhanced thematic mapper plus (TM/ETM+) image
CN105608222A (en) * 2016-01-12 2016-05-25 中国人民解放军国防科学技术大学 Rapid building method of tile pyramid for large-scale raster data set
CN107341837A (en) * 2017-06-26 2017-11-10 华中师范大学 Grid and vector data conversion and continuous yardstick expression based on image pyramid
CN109086286A (en) * 2017-12-07 2018-12-25 中国科学院电子学研究所苏州研究院 A kind of production of Pictorial Map and dissemination method
CN109472864A (en) * 2017-09-07 2019-03-15 广州极飞科技有限公司 A kind of generation method and device of elevation tile map
CN109671149A (en) * 2018-12-03 2019-04-23 南京师范大学 Landform sketch map automatic drafting method based on DEM
CN112084283A (en) * 2020-09-11 2020-12-15 广州南方智能技术有限公司 Terrain image slicing method based on pyramid structure and hierarchical detail model
CN112395445A (en) * 2020-11-17 2021-02-23 高崟 Vector data online calculation method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060197781A1 (en) * 2005-03-03 2006-09-07 Arutunian Ethan B System and method utilizing enhanced imagery and associated overlays
CN101887595A (en) * 2009-05-14 2010-11-17 武汉如临其境科技创意有限公司 Three-dimensional digital earth-space data organizing and rendering method based on quad-tree index
CN102622738A (en) * 2012-03-08 2012-08-01 北京师范大学 Method for recovering spectral information of hill shade area of Landsat thematic mapper/enhanced thematic mapper plus (TM/ETM+) image
CN105608222A (en) * 2016-01-12 2016-05-25 中国人民解放军国防科学技术大学 Rapid building method of tile pyramid for large-scale raster data set
CN107341837A (en) * 2017-06-26 2017-11-10 华中师范大学 Grid and vector data conversion and continuous yardstick expression based on image pyramid
CN109472864A (en) * 2017-09-07 2019-03-15 广州极飞科技有限公司 A kind of generation method and device of elevation tile map
CN109086286A (en) * 2017-12-07 2018-12-25 中国科学院电子学研究所苏州研究院 A kind of production of Pictorial Map and dissemination method
CN109671149A (en) * 2018-12-03 2019-04-23 南京师范大学 Landform sketch map automatic drafting method based on DEM
CN112084283A (en) * 2020-09-11 2020-12-15 广州南方智能技术有限公司 Terrain image slicing method based on pyramid structure and hierarchical detail model
CN112395445A (en) * 2020-11-17 2021-02-23 高崟 Vector data online calculation method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AARATHI RAMESH MUPPALLA 等: "Study of open source web map rendering software for rendering Bhuvan High Resolution Satellite data", 《2019 IEEE RECENT ADVANCES IN GEOSCIENCE AND REMOTE SENSING: TECHNOLOGIES, STANDARDS AND APPLICATIONS(TENGARSS)》 *
袁建锋: "海量地形数据的组织模型和调度策略研究", 《中国优秀硕士学位论文全文数据库 信息科技辑(月刊)》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113779167A (en) * 2021-08-20 2021-12-10 北京百度网讯科技有限公司 Map data processing method, device, equipment and storage medium
CN113779167B (en) * 2021-08-20 2023-11-07 北京百度网讯科技有限公司 Map data processing method, device, equipment and storage medium
CN117726707A (en) * 2024-02-08 2024-03-19 北京未来宇航空间科技研究院有限公司 Method and device for displaying custom region in electronic map and electronic equipment

Also Published As

Publication number Publication date
CN112700547B (en) 2021-06-29

Similar Documents

Publication Publication Date Title
CN112559667B (en) Map editor, map engine, map editing system, map editing method, and storage medium
CN112700547B (en) Map making method and related equipment
CN111369657B (en) Three-dimensional thermodynamic diagram generation method and device, computer equipment and storage medium
US11226431B2 (en) Method and device for filling invalid regions of terrain elevation model data
CN106575158B (en) Environment mapping virtualization mechanism
CN111784833A (en) WebGL-based flood evolution situation three-dimensional dynamic visualization display method
CN110706341A (en) High-performance rendering method and device of city information model and storage medium
CN112256790A (en) WebGL-based three-dimensional visualization display system and data visualization method
CN106611056B (en) Method and device for cutting three-dimensional simulation map
CN116109765A (en) Three-dimensional rendering method and device for labeling objects, computer equipment and storage medium
CN112765299B (en) Visualization method and device for irregular raster data, electronic equipment and storage medium
KR101487454B1 (en) method for parallel processing of LOD image
CN111950057A (en) Loading method and device of Building Information Model (BIM)
CN114817619A (en) Map generation method, system, medium, and apparatus based on grid re-projection
CN116797747A (en) Underwater detection data visualization method, device, computer equipment and storage medium
CN115619986A (en) Scene roaming method, device, equipment and medium
CN114742931A (en) Method and device for rendering image, electronic equipment and storage medium
CN106815359B (en) Vector map three-dimensional edge generation method based on mobile GIS platform
CN106033451B (en) A kind of instant rendering method of the density map of cellular traffic and device
CN112785699A (en) Image drawing method and apparatus
CN113656633B (en) Geographical space information transmission method and device based on OFD (office file format) file
KR102285801B1 (en) Producing method, display method and system for meteorological image using geo-kompsat-2a
CN115774896B (en) Data simulation method, device, equipment and storage medium
CN113592999B (en) Rendering method of virtual luminous body and related equipment
CN111105488B (en) Imaging simulation method, imaging simulation device, electronic equipment and storage medium

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