CN114090715A - Map construction method and device, computer equipment and storage medium - Google Patents

Map construction method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114090715A
CN114090715A CN202111408543.3A CN202111408543A CN114090715A CN 114090715 A CN114090715 A CN 114090715A CN 202111408543 A CN202111408543 A CN 202111408543A CN 114090715 A CN114090715 A CN 114090715A
Authority
CN
China
Prior art keywords
target area
scene
map
target
scene element
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111408543.3A
Other languages
Chinese (zh)
Inventor
姬宏江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network 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 Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202111408543.3A priority Critical patent/CN114090715A/en
Publication of CN114090715A publication Critical patent/CN114090715A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present disclosure provides a map construction method, apparatus, computer device and storage medium, wherein the method comprises: acquiring an initial map and at least one group of screening conditions corresponding to the initial map; each group of screening conditions comprises at least one screening condition, and each screening condition corresponds to an attribute feature of a map element in the initial map; aiming at each group of screening conditions in the at least one group of screening conditions, determining a target area to be edited which is in accordance with the group of screening conditions; and aiming at each determined target area, adding target scene elements which accord with the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area so as to construct a scene map corresponding to the initial map.

Description

Map construction method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a map construction method, apparatus, computer device, and storage medium.
Background
In scenes such as world games and the meta universe, when a world map is constructed, in order to make the constructed world map more vivid and bring immersive experience to users, it is generally required that art developers set objects in each scene through a scene development tool and in combination with a manual editing mode according to actual requirements of each scene in the map, and set specific rendering details such as materials of each object, and this process usually consumes a large amount of labor cost and time cost, so that the construction efficiency of the world map is low.
Disclosure of Invention
The embodiment of the disclosure at least provides a map construction method, a map construction device, computer equipment and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a map construction method, including:
acquiring an initial map and at least one group of screening conditions corresponding to the initial map; each group of screening conditions comprises at least one screening condition, and each screening condition corresponds to an attribute feature of a map element in the initial map;
aiming at each group of screening conditions in the at least one group of screening conditions, determining a target area to be edited which is in accordance with the group of screening conditions;
and aiming at each determined target area, adding target scene elements which accord with the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area so as to construct a scene map corresponding to the initial map.
In one possible embodiment, the attribute features include at least one of:
height features, shadow features, orientation features, category features, edge features, slope features.
In a possible embodiment, after determining the target area to be edited that meets the set of filtering conditions, the method further includes:
obtaining a regional optimization strategy;
and adjusting the area range of the target area based on the area optimization strategy.
In a possible embodiment, the adjusting the area range of the target area based on the area optimization policy includes:
deleting a target region with an area smaller than a region minimum area threshold contained in the region optimization strategy; and/or the presence of a gas in the gas,
and adjusting the included non-target area in the maximum area range corresponding to the target area into the target area.
In a possible implementation manner, for each determined target area, adding a target scene element that conforms to the scene element distribution characteristic in the target area according to the scene element distribution characteristic corresponding to the target area includes:
determining the type of the scene element to be screened corresponding to the area type of the target area, and randomly adding the scene element to be screened in the target area according to the type of the scene element to be screened;
and screening the scene elements to be screened in the target area based on the scene element distribution characteristics, and determining the target scene elements which accord with the scene element distribution characteristics in the scene elements to be screened.
In a possible implementation, the scene element distribution characteristics include homogeneous scene element distribution characteristics, and/or heterogeneous scene element distribution characteristics.
In a possible implementation manner, the screening the scene elements to be screened in the target region based on the scene element distribution feature includes:
and aiming at least two scene elements to be screened in the target area, screening the at least two scene elements to be screened based on the attribute information of the at least two scene elements to be screened and the distribution characteristics of the scene elements.
In a second aspect, an embodiment of the present disclosure further provides a map building apparatus, including:
the system comprises an acquisition module, a selection module and a selection module, wherein the acquisition module is used for acquiring an initial map and at least one group of screening conditions corresponding to the initial map; each group of screening conditions comprises at least one screening condition, and each screening condition corresponds to an attribute feature of a map element in the initial map;
the determining module is used for determining a target area to be edited which accords with each group of screening conditions in the at least one group of screening conditions;
and the adding module is used for adding the target scene elements which accord with the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area aiming at each determined target area so as to construct the scene map corresponding to the initial map.
In one possible embodiment, the attribute features include at least one of:
height features, shadow features, orientation features, category features, edge features, slope features.
In a possible implementation manner, after determining the target area to be edited that meets the set of filtering conditions, the determining module is further configured to:
obtaining a regional optimization strategy;
and adjusting the area range of the target area based on the area optimization strategy.
In a possible implementation, the determining module, when adjusting the region range of the target region based on the region optimization strategy, is configured to:
deleting a target region with an area smaller than a region minimum area threshold contained in the region optimization strategy; and/or the presence of a gas in the gas,
and adjusting the included non-target area in the maximum area range corresponding to the target area into the target area.
In a possible implementation manner, when, for each determined target area, adding a target scene element that meets the scene element distribution characteristic in the target area according to the scene element distribution characteristic corresponding to the target area, the adding module is configured to:
determining the type of the scene element to be screened corresponding to the area type of the target area, and randomly adding the scene element to be screened in the target area according to the type of the scene element to be screened;
and screening the scene elements to be screened in the target area based on the scene element distribution characteristics, and determining the target scene elements which accord with the scene element distribution characteristics in the scene elements to be screened.
In a possible implementation, the scene element distribution characteristics include homogeneous scene element distribution characteristics, and/or heterogeneous scene element distribution characteristics.
In a possible implementation manner, when the scene element to be filtered in the target region is filtered based on the scene element distribution feature, the adding module is configured to:
and aiming at least two scene elements to be screened in the target area, screening the at least two scene elements to be screened based on the attribute information of the at least two scene elements to be screened and the distribution characteristics of the scene elements.
In a third aspect, an embodiment of the present disclosure further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.
In a fourth aspect, this disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
The map construction method, the map construction device, the computer equipment and the storage medium provided by the embodiment of the disclosure can screen the map based on the screening condition corresponding to the attribute feature of the map element, and can determine the target area meeting the screening condition, so that the target area in the map can be quickly positioned according to the development requirement of a user; and adding the target scene elements which accord with the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area aiming at each determined target area, so that the scene elements can be automatically added in the target area, and the added scene elements all accord with the scene element distribution characteristics, thereby rapidly constructing the map on the premise of ensuring the map quality and improving the construction efficiency of the map in the world.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
FIG. 1 is a flow chart illustrating a map building method provided by an embodiment of the present disclosure;
fig. 2a is a schematic diagram illustrating a target area before adjustment in a mapping method provided by an embodiment of the present disclosure;
fig. 2b is a schematic diagram illustrating an adjusted target area in the map building method according to the embodiment of the disclosure;
fig. 3 is a flowchart illustrating a specific method for adding a target scene element in a map building method provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating an architecture of a map building apparatus provided by an embodiment of the present disclosure;
fig. 5 shows a schematic structural diagram of a computer device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The term "and/or" herein merely describes an associative relationship, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Research shows that in scenes such as world games and the meta universe, in order to make the constructed world map more vivid and bring immersive experience to users when constructing the world map, art developers are usually required to set objects in each scene through a scene development tool and in combination with a manual editing mode according to actual requirements of each scene in the map, and set specific rendering details such as materials of each object, and the process usually consumes a large amount of labor cost and time cost, so that the construction efficiency of the world map is low.
Based on the research, the map construction method can screen the map based on the screening conditions corresponding to the attribute features of the map elements, and can determine the target area meeting the screening conditions, so that the target area in the map can be quickly positioned according to the development requirements of the user; and adding the target scene elements which accord with the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area aiming at each determined target area, so that the scene elements can be automatically added in the target area, and the added scene elements all accord with the scene element distribution characteristics, thereby rapidly constructing the map on the premise of ensuring the map quality and improving the construction efficiency of the map in the world.
To facilitate understanding of the present embodiment, a map construction method disclosed in the embodiments of the present disclosure is first described in detail, and an execution subject of the map construction method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability, where the computer device includes, for example: a terminal device, which may be a User Equipment (UE), a mobile device, a User terminal, or a server or other processing devices. In some possible implementations, the mapping method may be implemented by a processor invoking computer readable instructions stored in a memory.
Referring to fig. 1, a flowchart of a map construction method provided in the embodiment of the present disclosure is shown, where the method includes S101 to S103, where:
s101: acquiring an initial map and at least one group of screening conditions corresponding to the initial map; each group of screening conditions comprises at least one screening condition, and each screening condition corresponds to one attribute feature of the map elements in the initial map.
S102: and aiming at each group of screening conditions in the at least one group of screening conditions, determining a target area to be edited which meets the group of screening conditions.
S103: and aiming at each determined target area, adding target scene elements which accord with the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area so as to construct a scene map corresponding to the initial map.
The following is a detailed description of the above steps.
For S101, the map elements are elements included in the initial map, or elements constituting the initial map, such as land, river, and the like, and the attribute features include at least one of a height feature, a shadow feature, an orientation feature, a category feature, an edge feature, and a gradient feature.
The height feature is used for representing the height of the map element, and the corresponding screening condition can be, for example, the height is higher than 100 meters, so that the map element with the height higher than 100 meters can be determined from the initial map; the shadow feature is used for representing the shadow of the map element, and the corresponding screening condition can be that the shadow area is larger than 10 square meters, so that a shadow area with the shadow area larger than 10 square meters can be determined from the initial map; the orientation feature is used for representing the orientation of the map element, and the corresponding screening condition may be, for example, map elements whose orientations are east and whose left and right are respectively spread by an angle of thirty degrees (i.e., 60 ° north to 30 ° east), so that the map elements meeting the orientation angle requirement can be determined from the initial map; the category features are used to characterize categories of the map elements, such as land, river, etc.; the edge feature is used for representing the edge of the map element, and the corresponding screening condition can be that the edge of the map element of which the type is the target type is obtained from the initial map; the gradient feature is used for representing the gradient of the map element, and the corresponding screening condition can be that the gradient is 20-50 degrees, so that the map element meeting the gradient requirement can be determined from the initial map.
In practical application, the screening conditions can be combined by a user at will according to requirements, and each group of combined screening conditions can screen the area of the initial map from the dimension of at least one attribute feature, so that the target area to be edited, which meets the screening conditions, is obtained.
Therefore, by setting various attribute characteristics for the user to carry out free combination and parameter setting, the target area meeting the requirements in the initial map can be quickly and accurately positioned according to the development requirements of the user, and the construction efficiency of the map in the world is improved.
S102: and aiming at each group of screening conditions in the at least one group of screening conditions, determining a target area to be edited which meets the group of screening conditions.
For example, taking development requirements as an example for editing in a basin in an initial map, a set of screening conditions that can be obtained according to the development requirements includes: the height is less than 0 meter (namely below sea level), and the gradient range is 0-10 degrees (namely the terrain is flat and the fluctuation is small). And screening the initial map according to the set of screening conditions, namely determining the basin to be edited from the initial map.
In a possible implementation manner, after the target area to be edited which meets the set of screening conditions is determined, an area optimization strategy can be further obtained; and adjusting the area range of the target area based on the area optimization strategy.
Here, the region optimization strategy includes target parameters for adjusting the region range, such as a minimum area threshold, and the region to be adjusted can be determined by the target parameters in the region optimization strategy.
Specifically, the area range of the target area may be adjusted by:
mode 1, deleting a target region whose area is smaller than a minimum area threshold of a region included in the region optimization strategy.
Here, since the target area is determined according to the screening condition, some areas with a smaller area may be determined from the initial map, and these areas often do not meet the actual development requirement, so that the minimum area threshold of the area may be set, and the target area that does not meet the area requirement of the area may be deleted.
For example, taking the minimum area threshold of the region as 1 square meter as an example, the target region with an area smaller than 1 square meter may be deleted.
And 2, adjusting the included non-target area in the maximum area range corresponding to the target area to be the target area.
Here, due to the uncertainty of the map elements in the initial map, when a target area is determined according to a screening condition, a non-target area may exist in a maximum area range corresponding to the target area, where the maximum area range corresponding to the target area indicates an area including the target area and having a maximum area, which is formed by an area edge of the target area.
For example, a schematic diagram of the target area before adjustment may be as shown in fig. 2a, a shaded area is a target area, a blank area is a non-target area, and the schematic diagram of the target area after adjustment may be as shown in fig. 2b, where in a maximum area range corresponding to the target area, after the included non-target area is adjusted to the target area, the maximum area range corresponding to the entire target area is the target area.
In this way, the target area after the area range is adjusted can be tidier, so that the scene element can be added to the target area in the following process.
S103: and aiming at each determined target area, adding target scene elements which accord with the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area so as to construct a scene map corresponding to the initial map.
Here, the scene element may be a ground surface material map of the target area, and the ground surface material map may be rendered on the ground surface of the target area to better show regional features of the target area.
For example, taking the target area as the basin as an example, a surface texture map corresponding to the basin may be added to the surface of the target area, so that the display effect of the target area is more realistic, and an immersive world-wide tour experience is provided for a user.
In addition, the scene element can also be a model of various organisms, such as prefabricated models of organisms such as flowers, grasses, trees, sparrows and the like, wherein the prefabricated models comprise rendering parameters of the scene element, and after any scene element is added in the target area, the scene element can be rendered according to the rendering parameters in the prefabricated models corresponding to the scene element; the scene element distribution characteristics may include homogeneous scene element distribution characteristics, and/or heterogeneous scene element distribution characteristics.
For example, the homogeneous scene element distribution characteristic may be that a distance between a root of a tree a and a root of a tree B is greater than a first preset value, where the first preset value may be a sum of half of a lateral length of a crown of the tree a and half of a lateral length of a crown of the tree B, that is, the crown of the tree a and the crown of the tree B in the target area do not intersect; the different scene element distribution characteristics may be that a distance between a root of the tree C and a grass root of the grass D is greater than a second preset value, the second preset value may be a radius of the root of the tree C, that is, the grass D may be placed at any ground surface position other than the root of the tree C.
Therefore, by setting the scene element distribution characteristics, the distribution of each scene element in the target area can be ensured to meet the actual condition, and the constructed scene map can be more vivid.
In one possible implementation, as shown in fig. 3, the target scene element may be added by:
s301: determining the type of the scene element to be screened corresponding to the area type of the target area, and randomly adding the scene element to be screened in the target area according to the type of the scene element to be screened.
Here, the area type of the target area may be determined by the attribute feature corresponding to the screening condition, for example, the area type of the target area may be determined to be a high-altitude area, a low-altitude area, or the like according to the height feature; when the type of the scene element to be screened corresponding to the area type of the target area is determined, the type may be determined according to a preset mapping relationship between the scene type and the type of the scene element to be screened, for example, the scene element to be screened distributed in the target area where the scene type is a high altitude area may be a mountain plant.
Specifically, when the scene elements to be filtered are randomly added to the target area according to the types of the scene elements to be filtered, the position information of each scene element to be filtered in the target area may be randomly generated, and the parameter values of the rendering parameters corresponding to each scene element to be filtered are randomly generated within a preset parameter range, where the number of each type of scene element to be filtered may be randomly generated within the preset parameter range, or may be set by a user, for example, the user may set 5 trees and 10 grasses to be randomly generated within the target area.
S302: and screening the scene elements to be screened in the target area based on the scene element distribution characteristics, and determining the target scene elements which accord with the scene element distribution characteristics in the scene elements to be screened.
In a possible implementation manner, when the scene elements to be filtered are filtered, the at least two scene elements to be filtered in the target area may be filtered based on the attribute information of the at least two scene elements to be filtered and the scene element distribution characteristics.
Here, the attribute information of the scene element may be represented by the rendering parameter, for example, if a tree height in the rendering parameter is 5 meters, the attribute information of the tree a may represent that the tree height is 5 meters, and when the at least two scene elements to be filtered are filtered, if the at least two scene elements to be filtered are the same kind of scene elements, the at least two scene elements to be filtered may be filtered by using a filtering condition corresponding to the distribution characteristic of the same kind of scene elements; if the at least two scene elements to be screened are scene elements of different types, screening the at least two scene elements to be screened by using screening conditions corresponding to the distribution characteristics of the scene elements of different types; and if the scene elements with the same type and the scene elements with different types exist in the at least two scene elements to be screened at the same time, screening conditions corresponding to the distribution characteristics of the scene elements with different types can be used for screening the scene elements with different types in the at least two scene elements to be screened, and screening conditions corresponding to the distribution characteristics of the scene elements with the same type can be used for screening the scene elements with the same type in the at least two scene elements to be screened.
For example, taking the scene elements to be screened as tree a, tree B, tree C, and grass a as examples, whether the tree a and the tree B, the tree a and the tree C, and the tree B and the tree C meet the screening conditions corresponding to the distribution characteristics of the same kind of scene elements, and whether the tree a and the grass a, the tree B and the grass a, and the tree C and the grass a meet the screening conditions corresponding to the distribution characteristics of the different kinds of scene elements may be respectively determined.
Specifically, when it is determined that the attribute information corresponding to the at least two scene elements to be filtered respectively does not meet the filtering condition corresponding to the scene element distribution characteristic, any scene element to be filtered in the at least two scene elements to be filtered may be deleted; or, according to a preset correspondence relationship between the importance degrees of the scene elements, deleting the scene element to be screened with the lowest importance degree of the at least two scene elements to be screened, for example, if the importance degree of the tree is high, the importance degree of the shrub is medium, and the importance degree of the grass is low, preferentially deleting the grass with the low importance degree of the at least two scene elements to be screened; or, the attribute information of the scene elements to be filtered may be adjusted according to the scene element distribution characteristics, so that the at least two scene elements to be filtered conform to the scene element distribution characteristics.
It should be noted that, after the scene element to be filtered is deleted (or the attribute information of the scene element to be filtered is adjusted), if the scene element to be filtered in the target region from which the scene element to be filtered is deleted (or the attribute information of the scene element to be filtered is adjusted) still does not conform to the scene element distribution feature, the process (deleting the scene element to be filtered and/or adjusting the attribute information of the scene element to be filtered) may be continuously performed until the scene element to be filtered existing in the target region conforms to the scene element distribution feature.
The map construction method provided by the embodiment of the disclosure can screen the map based on the screening condition corresponding to the attribute feature of the map element, and can determine the target area meeting the screening condition, so that the target area in the map can be quickly positioned according to the development requirement of a user; and adding the target scene elements which accord with the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area aiming at each determined target area, so that the scene elements can be automatically added in the target area, and the added scene elements all accord with the scene element distribution characteristics, thereby rapidly constructing the map on the premise of ensuring the map quality and improving the construction efficiency of the map in the world.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, a map construction device corresponding to the map construction method is also provided in the embodiments of the present disclosure, and because the principle of solving the problem of the device in the embodiments of the present disclosure is similar to the map construction method in the embodiments of the present disclosure, the implementation of the device can refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 4, an architecture diagram of a map building apparatus provided in an embodiment of the present disclosure is shown, where the apparatus includes: an acquisition module 401, a determination module 402, and an addition module 403; wherein the content of the first and second substances,
an obtaining module 401, configured to obtain an initial map and at least one set of screening conditions corresponding to the initial map; each group of screening conditions comprises at least one screening condition, and each screening condition corresponds to an attribute feature of a map element in the initial map;
a determining module 402, configured to determine, for each of the at least one set of screening conditions, a target area to be edited that meets the set of screening conditions;
an adding module 403, configured to add, for each determined target area, a target scene element that meets the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area, so as to construct a scene map corresponding to the initial map.
In one possible embodiment, the attribute features include at least one of:
height features, shadow features, orientation features, category features, edge features, slope features.
In a possible implementation manner, after determining the target area to be edited that meets the set of filtering conditions, the determining module 402 is further configured to:
obtaining a regional optimization strategy;
and adjusting the area range of the target area based on the area optimization strategy.
In a possible implementation, the determining module 402, when adjusting the region range of the target region based on the region optimization strategy, is configured to:
deleting a target region with an area smaller than a region minimum area threshold contained in the region optimization strategy; and/or the presence of a gas in the gas,
and adjusting the included non-target area in the maximum area range corresponding to the target area into the target area.
In a possible implementation manner, the adding module 403, when, for each determined target area, adding a target scene element that conforms to the scene element distribution characteristic in the target area according to the scene element distribution characteristic corresponding to the target area, is configured to:
determining the type of the scene element to be screened corresponding to the area type of the target area, and randomly adding the scene element to be screened in the target area according to the type of the scene element to be screened;
and screening the scene elements to be screened in the target area based on the scene element distribution characteristics, and determining the target scene elements which accord with the scene element distribution characteristics in the scene elements to be screened.
In a possible implementation, the scene element distribution characteristics include homogeneous scene element distribution characteristics, and/or heterogeneous scene element distribution characteristics.
In a possible implementation manner, the adding module 403, when filtering the scene elements to be filtered in the target area based on the scene element distribution feature, is configured to:
and aiming at least two scene elements to be screened in the target area, screening the at least two scene elements to be screened based on the attribute information of the at least two scene elements to be screened and the distribution characteristics of the scene elements.
The map construction device provided by the embodiment of the disclosure can screen the map based on the screening condition corresponding to the attribute feature of the map element, and can determine the target area meeting the screening condition, so that the target area in the map can be quickly positioned according to the development requirement of a user; and adding the target scene elements which accord with the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area aiming at each determined target area, so that the scene elements can be automatically added in the target area, and the added scene elements all accord with the scene element distribution characteristics, thereby rapidly constructing the map on the premise of ensuring the map quality and improving the construction efficiency of the map in the world.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Based on the same technical concept, the embodiment of the disclosure also provides computer equipment. Referring to fig. 5, a schematic structural diagram of a computer device 500 provided in the embodiment of the present disclosure includes a processor 501, a memory 502, and a bus 503. The memory 502 is used for storing execution instructions and includes a memory 5021 and an external memory 5022; the memory 5021 is also referred to as an internal memory, and is used for temporarily storing operation data in the processor 501 and data exchanged with an external storage 5022 such as a hard disk, the processor 501 exchanges data with the external storage 5022 through the memory 5021, and when the computer device 500 operates, the processor 501 communicates with the storage 502 through the bus 503, so that the processor 501 executes the following instructions:
acquiring an initial map and at least one group of screening conditions corresponding to the initial map; each group of screening conditions comprises at least one screening condition, and each screening condition corresponds to an attribute feature of a map element in the initial map;
aiming at each group of screening conditions in the at least one group of screening conditions, determining a target area to be edited which is in accordance with the group of screening conditions;
and aiming at each determined target area, adding target scene elements which accord with the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area so as to construct a scene map corresponding to the initial map.
In a possible implementation manner, in the instructions of the processor 501, the attribute feature includes at least one of the following:
height features, shadow features, orientation features, category features, edge features, slope features.
In a possible implementation manner, after determining the target area to be edited that meets the set of filtering conditions, the instructions of the processor 501 further include:
obtaining a regional optimization strategy;
and adjusting the area range of the target area based on the area optimization strategy.
In a possible implementation manner, the adjusting the area range of the target area based on the area optimization policy in the instructions of the processor 501 includes:
deleting a target region with an area smaller than a region minimum area threshold contained in the region optimization strategy; and/or the presence of a gas in the gas,
and adjusting the included non-target area in the maximum area range corresponding to the target area into the target area.
In a possible implementation manner, in the instructions of the processor 501, for each determined target area, adding a target scene element that meets the scene element distribution characteristic in the target area according to the scene element distribution characteristic corresponding to the target area includes:
determining the type of the scene element to be screened corresponding to the area type of the target area, and randomly adding the scene element to be screened in the target area according to the type of the scene element to be screened;
and screening the scene elements to be screened in the target area based on the scene element distribution characteristics, and determining the target scene elements which accord with the scene element distribution characteristics in the scene elements to be screened.
In a possible implementation manner, in the instructions of the processor 501, the scene element distribution characteristics include homogeneous scene element distribution characteristics and/or heterogeneous scene element distribution characteristics.
In a possible implementation manner, in the instructions of the processor 501, the filtering the scene elements to be filtered in the target area based on the scene element distribution feature includes:
and aiming at least two scene elements to be screened in the target area, screening the at least two scene elements to be screened based on the attribute information of the at least two scene elements to be screened and the distribution characteristics of the scene elements.
The embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the map building method described in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the map building method described in the foregoing method embodiments, which may be referred to specifically for the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A map construction method, comprising:
acquiring an initial map and at least one group of screening conditions corresponding to the initial map; each group of screening conditions comprises at least one screening condition, and each screening condition corresponds to an attribute feature of a map element in the initial map;
aiming at each group of screening conditions in the at least one group of screening conditions, determining a target area to be edited which is in accordance with the group of screening conditions;
and aiming at each determined target area, adding target scene elements which accord with the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area so as to construct a scene map corresponding to the initial map.
2. The method of claim 1, wherein the attribute features comprise at least one of:
height features, shadow features, orientation features, category features, edge features, slope features.
3. The method of claim 1, wherein after determining the target area to be edited that meets the set of filtering criteria, the method further comprises:
obtaining a regional optimization strategy;
and adjusting the area range of the target area based on the area optimization strategy.
4. The method of claim 3, wherein the adjusting the zone extent of the target zone based on the zone optimization strategy comprises:
deleting a target region with an area smaller than a region minimum area threshold contained in the region optimization strategy; and/or the presence of a gas in the gas,
and adjusting the included non-target area in the maximum area range corresponding to the target area into the target area.
5. The method according to any one of claims 1 to 4, wherein the adding, for each determined target area, a target scene element that meets the scene element distribution characteristic in the target area according to the scene element distribution characteristic corresponding to the target area, comprises:
determining the type of the scene element to be screened corresponding to the area type of the target area, and randomly adding the scene element to be screened in the target area according to the type of the scene element to be screened;
and screening the scene elements to be screened in the target area based on the scene element distribution characteristics, and determining the target scene elements which accord with the scene element distribution characteristics in the scene elements to be screened.
6. The method according to claim 5, wherein the scene element distribution characteristics comprise homogeneous scene element distribution characteristics and/or heterogeneous scene element distribution characteristics.
7. The method according to claim 5, wherein the screening the scene elements to be screened in the target region based on the scene element distribution feature comprises:
and aiming at least two scene elements to be screened in the target area, screening the at least two scene elements to be screened based on the attribute information of the at least two scene elements to be screened and the distribution characteristics of the scene elements.
8. A map building apparatus, comprising:
the system comprises an acquisition module, a selection module and a selection module, wherein the acquisition module is used for acquiring an initial map and at least one group of screening conditions corresponding to the initial map; each group of screening conditions comprises at least one screening condition, and each screening condition corresponds to an attribute feature of a map element in the initial map;
the determining module is used for determining a target area to be edited which accords with each group of screening conditions in the at least one group of screening conditions;
and the adding module is used for adding the target scene elements which accord with the scene element distribution characteristics in the target area according to the scene element distribution characteristics corresponding to the target area aiming at each determined target area so as to construct the scene map corresponding to the initial map.
9. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when a computer device is run, the machine-readable instructions when executed by the processor performing the steps of the mapping method of any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, performs the steps of the mapping method according to one of claims 1 to 7.
CN202111408543.3A 2021-11-24 2021-11-24 Map construction method and device, computer equipment and storage medium Pending CN114090715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111408543.3A CN114090715A (en) 2021-11-24 2021-11-24 Map construction method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111408543.3A CN114090715A (en) 2021-11-24 2021-11-24 Map construction method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114090715A true CN114090715A (en) 2022-02-25

Family

ID=80304857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111408543.3A Pending CN114090715A (en) 2021-11-24 2021-11-24 Map construction method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114090715A (en)

Similar Documents

Publication Publication Date Title
US10872417B1 (en) Automatic delineation agricultural field management zones using remote sensing and field data
CN109241580B (en) Land block design method and device, computer equipment and storage medium
WO2022227910A1 (en) Virtual scene generation method and apparatus, and computer device and storage medium
CN108057245B (en) Map generation method and device, storage medium and terminal
CN111617485B (en) Virtual terrain scene manufacturing method and device
CN111914047B (en) Geographic entity grid generation method, device and medium based on two-dimension code doorplate
Gain et al. EcoBrush: Interactive Control of Visually Consistent Large‐Scale Ecosystems
CN111524214B (en) Method and device for manufacturing vegetation biological community
CN112190948B (en) Game map generation method and device, electronic equipment and storage medium
CN110083720A (en) The construction method and device of outdoor scene semantic structure model
Pukkala Using ALS raster data in forest planning
CN111784817B (en) Shadow display method and device, storage medium and electronic device
CN114936502A (en) Forest fire spreading situation boundary analysis method, system, terminal and medium
CN111797190A (en) Method and device for extracting pattern spots
CN115457408A (en) Land monitoring method and device, electronic equipment and medium
CN112685429B (en) Tree structure model generation and loading method and device, storage medium and equipment
CN107665275B (en) Design method and system of natural garden landscape
CN114090715A (en) Map construction method and device, computer equipment and storage medium
CN111462343B (en) Data processing method and device, electronic equipment and storage medium
CN113516744B (en) Virtual scene generation method, interface interaction method, commodity display method and equipment
Huang et al. Application of 3D Virtual Scanning Technology in Landscape Planning of Complex Landscape Gardens
Marušič Landscape typology as the basis for landscape protection and development
CN114677482B (en) Terrain construction method and equipment
CN117315064A (en) Object rendering method and device
CN117197390B (en) Three-dimensional building model construction method, device 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