Method and device for constructing landform map, electronic equipment and readable storage medium
1. A method of constructing a relief map, comprising:
acquiring an image to be processed to obtain a gray image of the image to be processed;
classifying each pixel in the gray level image according to the gray level value to obtain binary images corresponding to different landform categories;
extracting the image spot contour of the image spot in the binary image, and taking the extracted image spot contour as a vector graph to obtain a vector graph set;
merging vector graphics corresponding to the same landform type in the vector graphics set according to the position information, and obtaining a first landform map according to merging results corresponding to different landform types;
and mapping vector graphics corresponding to different landform categories in the first landform map by using a preset landform style, and taking a mapping result as a second landform map.
2. The method of claim 1, wherein the classifying the pixels in the grayscale image according to the grayscale values to obtain binary images corresponding to different landform categories comprises:
determining the gray value of each pixel in the gray image;
setting the gray value of the pixel with the gray value in the gray image as 1 and the gray values of other pixels as 0 aiming at each gray value to obtain a binary image corresponding to the gray value;
and taking the landform category corresponding to the gray value as the landform category of the binary image.
3. The method of claim 1, further comprising,
after obtaining binary images corresponding to different landform categories, determining a binary image corresponding to a preset landform category;
and processing the determined binary image by using a processing mode corresponding to the preset landform category.
4. The method of claim 1, further comprising,
after a first landform map is obtained according to the merging result corresponding to different landform categories, the landform category of the vector graph with the area smaller than a first preset threshold value in the first landform map is changed into the landform category of the vector graph with the area adjacent to the first landform map larger than a second preset threshold value.
5. The method of claim 1, further comprising,
and after the mapping result is used as a second geographic map, displaying the vector graphics with smaller area on the vector graphics with larger area for two vector graphics with intersection conditions in the second geographic map.
6. The method of claim 1, further comprising,
after the mapping result is used as a second geographic map, acquiring a map base map as a template, and using the second geographic map as a mask;
and superposing the map base map and the second landform map, and taking the superposition result as a third landform map.
7. The method of claim 6, wherein the overlaying the map base map with the second relief map, the overlaying as a third relief map comprising:
setting different scales;
respectively superposing the map base map corresponding to the same scale and a second geographic map;
and taking the superposition result corresponding to different scales as the third landform map.
8. The method of claim 7, wherein the respectively overlaying the map base map and the second geographic map corresponding to the same scale comprises:
determining a superposition mode corresponding to the current scale:
and obtaining the vector graphics in the superposition result by using the determined superposition mode, and setting the landform type of each vector graphics in the superposition result.
9. An apparatus for constructing a relief map, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring an image to be processed to obtain a gray level image of the image to be processed;
the first processing unit is used for classifying each pixel in the gray image according to the gray value to obtain binary images corresponding to different landform categories;
the extraction unit is used for extracting the image spot profile of the image spot in the binary image, and the extracted image spot profile is used as a vector graph to obtain a vector graph set;
the merging unit is used for merging the vector graphics corresponding to the same landform type in the vector graphics set according to the position information and obtaining a first landform map according to merging results corresponding to different landform types;
and the mapping unit is used for mapping the vector graphics corresponding to different landform categories in the first landform map by using a preset landform style, and taking the mapping result as a second landform map.
10. The apparatus according to claim 9, wherein the first processing unit, when classifying each pixel in the grayscale image according to a grayscale value to obtain binary images corresponding to different feature categories, specifically performs:
determining the gray value of each pixel in the gray image;
setting the gray value of the pixel with the gray value in the gray image as 1 and the gray values of other pixels as 0 aiming at each gray value to obtain a binary image corresponding to the gray value;
and taking the landform category corresponding to the gray value as the landform category of the binary image.
11. The apparatus of claim 9, further comprising a second processing unit to perform,
after the first processing unit obtains binary images corresponding to different landform categories, determining a binary image corresponding to a preset landform category;
and processing the determined binary image by using a processing mode corresponding to the preset landform category.
12. The apparatus of claim 9, further comprising a first adjustment unit to perform,
after the merging unit obtains a first landform map according to the merging result corresponding to different landform types, the landform type of the vector graph with the area smaller than the first preset threshold value in the first landform map is changed into the landform type of the vector graph with the area larger than the second preset threshold value adjacent to the vector graph.
13. The apparatus according to claim 9, further comprising a second adjustment unit for performing,
and after the mapping unit takes the mapping result as a second geographic map, displaying the vector graphics with smaller area on the vector graphics with larger area for two vector graphics with intersection conditions in the second geographic map.
14. The apparatus of claim 9, further comprising a superimposing unit to perform,
after the mapping unit takes the mapping result as a second geographic map, acquiring a map base map as a template, and taking the second geographic map as a mask;
and superposing the map base map and the second landform map, and taking the superposition result as a third landform map.
15. The apparatus according to claim 14, wherein the superimposing unit, when superimposing the map base map and the second geographic map and taking a result of the superimposition as a third geographic map, specifically performs:
setting different scales;
respectively superposing the map base map corresponding to the same scale and a second geographic map;
and taking the superposition result corresponding to different scales as the third landform map.
16. The apparatus according to claim 15, wherein the superimposing unit, when superimposing the map base map corresponding to the same scale and the second geographic map respectively, specifically performs:
determining a superposition mode corresponding to the current scale:
and obtaining the vector graphics in the superposition result by using the determined superposition mode, and setting the landform type of each vector graphics in the superposition result.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-8.
19. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-8.
Background
In the current map application, no map information is expressed under a scale of 25km-1000km, and the landform information is lacked. The prior art has the problems of higher manual drawing cost and lower accuracy of geomorphic characteristics when a map containing geomorphic information is constructed.
Disclosure of Invention
According to a first aspect of the present disclosure, there is provided a method of constructing a relief map, comprising: acquiring an image to be processed to obtain a gray image of the image to be processed; classifying each pixel in the gray level image according to the gray level value to obtain binary images corresponding to different landform categories; extracting the image spot contour of the image spot in the binary image, and taking the extracted image spot contour as a vector graph to obtain a vector graph set; merging vector graphics corresponding to the same landform type in the vector graphics set according to the position information, and obtaining a first landform map according to merging results corresponding to different landform types; and mapping vector graphics corresponding to different landform categories in the first landform map by using a preset landform style, and taking a mapping result as a second landform map.
According to a second aspect of the present disclosure, there is provided an apparatus for constructing a relief map, comprising: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring an image to be processed to obtain a gray level image of the image to be processed; the first processing unit is used for classifying each pixel in the gray image according to the gray value to obtain binary images corresponding to different landform categories; the extraction unit is used for extracting the image spot profile of the image spot in the binary image, and the extracted image spot profile is used as a vector graph to obtain a vector graph set; the merging unit is used for merging the vector graphics corresponding to the same landform type in the vector graphics set according to the position information and obtaining a first landform map according to merging results corresponding to different landform types; and the mapping unit is used for mapping the vector graphics corresponding to different landform categories in the first landform map by using a preset landform style, and taking the mapping result as a second landform map.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described above.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method as described above.
According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method as described above.
According to the technical scheme, the image to be processed is converted into the vector data, and then the vector data is converted into the landform map, so that the automation in the process of constructing the landform map is realized, and the accuracy and the situation of the constructed landform map are improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram according to a first embodiment of the present disclosure;
FIG. 2 is a schematic diagram according to a second embodiment of the present disclosure;
FIG. 3a is a schematic diagram according to a third embodiment of the present disclosure;
FIG. 3b is a schematic diagram according to a fourth embodiment of the present disclosure;
FIG. 4 is a schematic diagram according to a fifth embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device for implementing a method of constructing a relief map according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram according to a first embodiment of the present disclosure. As shown in fig. 1, the method for constructing a relief map according to this embodiment may specifically include the following steps:
s101, acquiring an image to be processed to obtain a gray image of the image to be processed;
s102, classifying each pixel in the gray image according to the gray value to obtain binary images corresponding to different landform categories;
s103, extracting the image spot contour of the image spot in the binary image, and taking the extracted image spot contour as a vector graph to obtain a vector graph set;
s104, merging the vector graphics corresponding to the same landform type in the vector graphics set according to the position information, and obtaining a first landform map according to merging results corresponding to different landform types;
and S105, mapping vector graphics corresponding to different landform categories in the first landform map by using a preset landform style, and taking a mapping result as a second landform map.
According to the construction method of the landform map, after binary images corresponding to different landform categories are obtained according to the image to be processed, the image spot outlines of the image spots in the binary images are extracted to obtain a vector graphic set, conversion from raster data to vector data is completed, then the vector graphics in the vector graphic set are combined to obtain a first landform map, finally, a preset landform style is used for mapping the vector graphics in the first landform map, the obtained second landform map is used as a construction result of the landform map of the image to be processed, conversion from the vector data to the landform map is completed, automation in construction of the landform map can be achieved, and accuracy and existing performance of the constructed landform map are improved.
In this embodiment, when S101 is executed to acquire an image to be processed, a remote sensing image may be acquired as the image to be processed, and the data type of the acquired image to be processed is raster data; in addition, the number of the to-be-processed images acquired by executing S101 in this embodiment may be one or multiple.
In this embodiment, when the grayscale image of the to-be-processed image is obtained by executing S101, the to-be-processed image may be subjected to down-sampling processing and remapping processing, so as to convert the color to-be-processed image into the grayscale image; the resulting grayscale image has pixels with different grayscale values.
After the step S101 is executed to obtain the grayscale image of the image to be processed, the step S102 is executed to classify each pixel in the obtained grayscale image according to the grayscale value, so as to obtain binary images corresponding to different landform categories.
The embodiment can preset the corresponding relationship between the gray value and the landform type, and the landform type corresponding to the pixel can be determined through the gray value of the pixel.
Therefore, when S102 is executed to classify each pixel in the obtained grayscale image according to the grayscale value to obtain binary images corresponding to different landform categories, the present embodiment may adopt an optional implementation manner as follows: determining the gray value of each pixel in the gray image; aiming at each gray value, setting the gray value of the pixel with the gray value in the gray image as 1, and setting the gray values of other pixels as 0 to obtain a binary image corresponding to the gray value; and taking the landform category corresponding to the gray value as the landform category of the binary image.
That is to say, in this embodiment, after each pixel in the grayscale image is classified according to the grayscale value, a plurality of binary images corresponding to different landform categories can be obtained based on the classification result, so that different landforms can be distinguished, and the purpose of individually processing data belonging to different landform categories is achieved.
After S102 is executed to obtain binary images corresponding to different landform categories, the present embodiment may further include the following: determining a binary image corresponding to a preset landform category; and processing the determined binary image by using a processing mode corresponding to the preset landform category.
For example, if the preset geomorphic type in this embodiment is "water," and if the processing manner corresponding to "water" is expansion, the embodiment first determines a binary image whose geomorphic type is "water," and then performs expansion processing on the determined binary image.
That is, the present embodiment enables specific processing for a specific feature by way of the preset feature type, so as to highlight the feature of the preset feature type in the constructed feature map.
In the embodiment, after the step S102 is executed to obtain the binary images corresponding to different landform categories, the step S103 is executed to extract the image spot contours of the image spots in the obtained binary images, and the extracted image spot contours are used as vector graphics to obtain a vector graphics set; the image patch in this embodiment is an area formed by pixels with a gray scale value of 1 in the binary image.
In this embodiment, before the S103 is executed to extract the speckle contour of the speckle in the binary image, the preprocessing such as the on operation and the median filtering may also be performed on the binary image; performing opening operation on the binary image, and connecting fragmentary image spots in the binary image into slices; and performing median filtering on the binary image to remove the sporadic pixels in the binary image and smooth the edge of the image spot.
In addition, after the step S103 is executed to extract the speckle contour, the embodiment may further include the following steps: calculating a first coordinate of the contour, for example wgs84 coordinate of the contour, based on the coordinates of each pixel in the spot contour; and converting the calculated first coordinate into a second coordinate, for example, converting the wgs84 coordinate into a hundred degree 09 coordinate, thereby realizing the conversion of the contour coordinate and the encryption of the coordinate.
After the vector graphics set is obtained by executing S103, executing S104 to merge vector graphics corresponding to the same landform type in the vector graphics set according to the position information, and obtaining a first landform map according to a merging result corresponding to different landform types.
That is to say, in this embodiment, each vector graphic in the obtained vector graphic set is restored according to the position information, and each vector graphic is restored to the actual position where it is located, and the obtained first geomorphic map includes vector graphics corresponding to different geomorphic categories.
After S103 is executed to obtain the first geomorphic map according to the merging result corresponding to the different geomorphic categories, the embodiment may further include the following: and changing the landform type of the vector graphics with the area smaller than the first preset threshold value in the first landform map into the landform type of the vector graphics with the area larger than the second preset threshold value adjacent to the vector graphics.
That is to say, the embodiment can change the geographic category of the vector graphic with a smaller area in the first geographic map, so that the geographic category of the vector graphic with the smaller area is the same as the geographic category of the vector graphic with a large area adjacent to the vector graphic with the smaller area, thereby further improving the accuracy and consistency of the constructed first geographic map.
After the first relief map is obtained in step S104, step S105 is executed to map vector graphics corresponding to different relief categories in the first relief map by using a preset relief style, and the mapping result is used as the second relief map.
The preset landform patterns used in the embodiment correspond to different landform types, that is, different landform types have different landform patterns, and the preset landform patterns may include landform colors, landform shapes and other patterns.
The present embodiment may further include the following after executing S105 to use the mapping result as the second geographic map: and for two vector graphics with intersection conditions in the second geographic map, displaying the vector graphics with smaller area on the vector graphics with larger area.
That is, the present embodiment displays the vector graphics of a small area on the vector graphics of a large area for the intersection of the vector graphics, thereby ensuring that the vector graphics of a small area are not blocked, and ensuring the integrity of the second geographic map.
In the second geographic map obtained by the present embodiment executing S105, the vector graphics of different geographic categories correspond to different geographic styles, so that different geographic categories can be displayed in the second geographic map. By utilizing the method provided by the embodiment, the automatic construction of the landform map is realized, and the accuracy and the situation of the constructed landform map can be improved.
Fig. 2 is a schematic diagram according to a second embodiment of the present disclosure. As shown in fig. 2, after performing S105 to obtain the second geographic map, the method for constructing a geographic map according to the present embodiment may further include the following steps:
s201, acquiring a map base map as a template, and taking the second geographic map as a mask;
s202, overlapping the map base map and the second landform map, and taking an overlapping result as a third landform map.
Because only different types of landforms are displayed in the second landform map obtained by the embodiment and information such as roads is lacked, the second landform map is superposed with the second landform map by obtaining the known map base map, and the landform information contained in the second landform map is superposed on the map base map, so that the obtained third landform map contains map information such as the landform information and the road information, and the fine construction of the landform map is realized.
In executing S201, the present embodiment may acquire a map base map from a known map database, and superimpose the acquired map base map as a template.
In this embodiment, when the map base map and the second geographic map are superimposed in step S202 and the superimposed result is taken as the third geographic map, the optional implementation manners that may be adopted are: setting different scales; respectively superposing the map base map corresponding to the same scale and a second geographic map; and taking the superposition result corresponding to different scales as a third landform map, so that the third landform map can display the landform information under different scales.
In this embodiment, when S202 is executed to overlay the map base map corresponding to the same scale with the second geographic map, the optional implementation manners that can be adopted are as follows: determining a superposition mode corresponding to the current scale: and obtaining the vector graphics in the superposition result by using the determined superposition mode, and setting the landform type of each vector graphics in the superposition result.
The embodiment can preset the corresponding superposition mode of different scales, for example, the scale is 1: when the map is 500km, the superposition mode corresponding to the scale can be the intersection and the difference set between the map base map and the second geographic map; for example, when the scale is 1:1000km or more, the superposition mode corresponding to the scale may be to take the intersection between the map base map and the second geographic map.
In addition, in the embodiment, when S202 is executed to set the geomorphic type of each vector graphic in the superimposition result, the geomorphic type of each vector graphic in the superimposition result may be set using a processing manner corresponding to the superimposition manner.
For example, the present embodiment may set the landform category of the vector graphic taking the intersection as the landform category of the vector graphic in the second landform map; the embodiment can set the landform type of the vector graphics of the difference set as the landform type of the vector graphics with the largest area connected with the difference set in the superposition result; the embodiment may set the unarticulated vector graphics feature class as the feature class of the vector graphics closest thereto in the overlay result.
Fig. 3a is a schematic diagram according to a third embodiment of the present disclosure, the image in fig. 3a is a grayscale image of an image to be processed; fig. 3b is a schematic diagram according to a fourth embodiment of the present disclosure, where the image in fig. 3b is a binary image corresponding to different landform categories, and a white area in each binary image is an image spot.
Fig. 4 is a schematic diagram according to a fifth embodiment of the present disclosure. As shown in fig. 4, the apparatus 400 for constructing a relief map according to the present embodiment includes:
the acquiring unit 401 is configured to acquire an image to be processed, and obtain a grayscale image of the image to be processed;
the first processing unit 402 is configured to classify each pixel in the grayscale image according to a grayscale value to obtain binary images corresponding to different landform categories;
the extracting unit 403 is configured to extract a spot profile of a spot in the binary image, and obtain a vector graph set by using the extracted spot profile as a vector graph;
the merging unit 404 is configured to merge vector graphics corresponding to the same landform type in the vector graphics set according to the position information, and obtain a first landform map according to a merging result corresponding to different landform types;
the mapping unit 405 is configured to map vector graphics corresponding to different landform categories in the first landform map by using a preset landform style, and use a mapping result as a second landform map.
When acquiring an image to be processed, the acquiring unit 401 may acquire a remote sensing image as the image to be processed, where the data type of the acquired image to be processed is raster data; in addition, the number of the to-be-processed images acquired by the acquisition unit 401 may be one or more.
When obtaining a grayscale image of an image to be processed, the obtaining unit 401 may perform down-sampling processing and remapping processing on the image to be processed, so as to convert a color image to be processed into a grayscale image; the resulting grayscale image has pixels with different grayscale values.
In the embodiment, after the obtaining unit 401 obtains the grayscale image of the image to be processed, the first processing unit 402 classifies each pixel in the obtained grayscale image according to the grayscale value, so as to obtain binary images corresponding to different feature classes.
The embodiment can preset the corresponding relationship between the gray value and the landform type, and the landform type corresponding to the pixel can be determined through the gray value of the pixel.
Therefore, when the first processing unit 402 classifies each pixel in the obtained grayscale image according to the grayscale value to obtain binary images corresponding to different landform categories, the optional implementation manners that can be adopted are: determining the gray value of each pixel in the gray image; aiming at each gray value, setting the gray value of the pixel with the gray value in the gray image as 1, and setting the gray values of other pixels as 0 to obtain a binary image corresponding to the gray value; and taking the landform category corresponding to the gray value as the landform category of the binary image.
That is to say, after the first processing unit 402 classifies each pixel in the grayscale image according to the grayscale value, a plurality of binary images corresponding to different feature types can be obtained based on the classification result, so that different features can be distinguished, and the purpose of individually processing data belonging to different feature types is achieved.
The device 400 for constructing a relief map according to the present embodiment further includes a second processing unit 406, configured to, after the first processing unit 402 obtains binary images corresponding to different relief categories, execute the following: determining a binary image corresponding to a preset landform category; and processing the determined binary image by using a processing mode corresponding to the preset landform category.
That is, the second processing unit 406 can implement a specific process for a specific feature by way of the preset feature type, so as to highlight the feature of the preset feature type in the constructed feature map.
In the embodiment, after the first processing unit 402 obtains the binary images corresponding to different landform categories, the extracting unit 403 extracts the speckle contours of the speckles in the obtained binary images, and the extracted speckle contours are used as vector graphics to obtain a vector graphics set; the image patch in this embodiment is an area formed by pixels with a gray scale value of 1 in the binary image.
Before extracting the speckle contour of the speckle in the binary image, the extracting unit 403 may also perform preprocessing such as opening operation and median filtering on the binary image; performing opening operation on the binary image, and connecting fragmentary image spots in the binary image into slices; and performing median filtering on the binary image to remove the sporadic pixels in the binary image and smooth the edge of the image spot.
In addition, after the extraction unit 403 obtains the speckle contour, the following contents may be included: calculating a first coordinate of the contour, for example wgs84 coordinate of the contour, based on the coordinates of each pixel in the spot contour; and converting the calculated first coordinate into a second coordinate, for example, converting the wgs84 coordinate into a hundred degree 09 coordinate, thereby realizing the conversion of the contour coordinate and the encryption of the coordinate.
In this embodiment, after the vector graphics set is obtained by the extracting unit 403, the merging unit 404 merges the vector graphics corresponding to the same feature type in the vector graphics set according to the position information, and obtains the first feature map according to the merging result corresponding to different feature types.
That is to say, the merging unit 404 restores each vector graphic in the obtained vector graphic set according to the position information, and restores each vector graphic to the actual position where it is located, and the obtained first geomorphic map includes vector graphics corresponding to different geomorphic categories.
The device 400 for constructing a relief map according to the embodiment further includes a first adjusting unit 407, configured to perform the following operations after the merging unit 404 obtains the first relief map according to the merging result corresponding to the different relief categories: and changing the landform type of the vector graphics with the area smaller than the first preset threshold value in the first landform map into the landform type of the vector graphics with the area larger than the second preset threshold value adjacent to the vector graphics.
That is to say, the first adjusting unit 407 can change the feature type of the vector graphic with a smaller area in the first feature map, so that the feature type of the vector graphic with a smaller area is the same as the feature type of the vector graphic with a larger area adjacent to the vector graphic with a smaller area, thereby further improving the accuracy and consistency of the constructed first feature map.
In this embodiment, after the merging unit 404 obtains the first geographic map, the mapping unit 405 maps the vector graphics corresponding to different geographic categories in the first geographic map by using the preset geographic style, and uses the mapping result as the second geographic map.
The preset geomorphic patterns used in the mapping unit 405 correspond to different geomorphic categories, that is, different geomorphic categories have different geomorphic patterns, and the preset geomorphic patterns may include geomorphic colors, geomorphic shapes, and other patterns.
The device 400 for constructing a relief map according to the present embodiment further includes a second adjusting unit 408, configured to execute the following after the mapping unit 405 takes the mapping result as a second relief map: and for two vector graphics with intersection conditions in the second geographic map, displaying the vector graphics with smaller area on the vector graphics with larger area.
That is, the second adjusting unit 408 displays the small-area vector graphics on the large-area vector graphics for the intersection of the vector graphics, thereby ensuring that the small-area vector graphics are not occluded, thereby ensuring the integrity of the second relief map.
The device 400 for constructing a relief map according to the present embodiment further includes an overlaying unit 409, configured to execute the following after the mapping unit 405 takes the mapping result as the second relief map: acquiring a map base map as a template, and taking a second geographic map as a mask; and superposing the map base map and the second landform map, and taking the superposition result as a third landform map.
The overlay unit 409 may acquire the map base map from a known map database, and overlay the acquired map base map as a template.
When the overlay unit 409 overlays the map base map and the second geographic map and takes the overlay result as the third geographic map, the optional implementation manners that can be adopted are as follows: setting different scales; respectively superposing the map base map corresponding to the same scale and a second geographic map; and taking the superposition result corresponding to different scales as a third landform map, so that the third landform map can display the landform information under different scales.
When the overlay unit 409 overlays the map base map corresponding to the same scale with the second geographic map, the optional implementation manner that can be adopted is as follows: determining a superposition mode corresponding to the current scale: and obtaining the vector graphics in the superposition result by using the determined superposition mode, and setting the landform type of each vector graphics in the superposition result.
In addition, the superimposing unit 409 may set the feature type of each vector graphic in the superimposition result using a processing method corresponding to the superimposition method when setting the feature type of each vector graphic in the superimposition result.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
As shown in fig. 5, is a block diagram of an electronic device of a method of constructing a relief map according to an embodiment of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the apparatus 500 comprises a computing unit 501 which may perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the device 500 can also be stored. The calculation unit 501, the ROM502, and the RAM503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 501 performs the respective methods and processes described above, such as the method of constructing a relief map. For example, in some embodiments, the method of constructing a relief map may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508.
In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM502 and/or the communication unit 509. When the computer program is loaded into RAM503 and executed by the computing unit 501, one or more steps of the method of constructing a relief map described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the method of constructing a relief map by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.