CN116263984A - Three-dimensional map visualization method and device, electronic equipment and storage medium - Google Patents

Three-dimensional map visualization method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116263984A
CN116263984A CN202211475825.XA CN202211475825A CN116263984A CN 116263984 A CN116263984 A CN 116263984A CN 202211475825 A CN202211475825 A CN 202211475825A CN 116263984 A CN116263984 A CN 116263984A
Authority
CN
China
Prior art keywords
region
map
vulnerability
value
dimensional
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
CN202211475825.XA
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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202211475825.XA priority Critical patent/CN116263984A/en
Publication of CN116263984A publication Critical patent/CN116263984A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Remote Sensing (AREA)
  • Instructional Devices (AREA)

Abstract

The embodiment of the application provides a three-dimensional map visualization method, a three-dimensional map visualization device, electronic equipment and a computer readable storage medium, wherein the three-dimensional map visualization method comprises the following steps: obtaining scalable vector graphic data of a global map, and forming map arrays respectively corresponding to regions based on the scalable vector graphic data; obtaining vulnerability information of each region, and determining a vulnerability maximum value and a vulnerability minimum value according to the vulnerability quantity of each region; respectively determining the color attribute value of the map array of each region according to the maximum value of the loopholes, the minimum value of the loopholes and the number of loopholes corresponding to each region, and rendering the map according to the color attribute value; traversing the map array, sequentially determining target regions based on position attribute values in the map array, acquiring vulnerability information corresponding to the target regions for each target region, and displaying the vulnerability information in a floating layer mode in association with the target regions.

Description

Three-dimensional map visualization method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer data processing technologies, and in particular, to a three-dimensional map visualization method, apparatus, electronic device, and computer readable storage medium.
Background
In general, a scalable vector graphic data map file manufactured according to a map sample is formed by loading a scalable vector file through a data interface by using a programming language tool to form a visualized two-dimensional map; however, the method is limited to a planar pattern, and has relatively weak expressive force of cool dazzling effect, and visual effect is not visually shocked. For thermodynamic diagram display, an open source visual library is mostly adopted to generate a bitmap, wherein the bitmap consists of single points called pixels, and the color of each pixel point in a picture is described; when the bitmap is enlarged, single pixels are enlarged, so that the picture is blurred into a plurality of single blocks, and the shapes of lines are irregular, so that distortion is generated. For the three-dimensional earth model, a ready-made common bitmap overlay is generally adopted, such as a specified format picture developed by a joint image expert group or a portable network graphic format picture, or a map library is used for generating a world map and converting the world map into a picture; the interaction effect with the three-dimensional earth model is limited to the expansion and contraction of the sphere of the earth and dragging rotation.
Disclosure of Invention
In order to solve the existing technical problems, the application provides a three-dimensional map visualization method, a device, electronic equipment and a computer readable storage medium, wherein the three-dimensional map visualization method, the device, the electronic equipment and the computer readable storage medium can clearly and intuitively display the risk severity of each region and sequentially display specific vulnerability information of each region.
In order to achieve the above purpose, the technical solution of the embodiments of the present application is implemented as follows:
a three-dimensional map visualization method, comprising: obtaining scalable vector graphic data of a global map, and forming map arrays respectively corresponding to regions based on the scalable vector graphic data; the map array comprises identification attributes, color attribute values and position attribute values corresponding to regions; obtaining vulnerability information of each region, and determining a vulnerability maximum value and a vulnerability minimum value according to the vulnerability quantity of each region; respectively determining the color attribute value of the map array of each region according to the maximum value of the loopholes, the minimum value of the loopholes and the number of loopholes corresponding to each region, and rendering the map according to the color attribute value; traversing the map array, sequentially determining target regions based on position attribute values in the map array, acquiring vulnerability information corresponding to the target regions for each target region, and displaying the vulnerability information in a floating layer mode in association with the target regions.
Optionally, the obtaining scalable vector graphics data of the map, forming a map array corresponding to each region based on the scalable vector graphics data, includes: acquiring a manuscript file of a global map, and determining standard scalable vector graphic data of the global map; selecting a reference region from the global map, setting a color attribute value corresponding to the reference region as a first initial value, and setting a color attribute value corresponding to other regions except the reference region in the global map as a second initial value; and extracting the position data, the identification and the color attribute value of each region to form map arrays respectively corresponding to each region.
Optionally, the three-dimensional map visualization method further includes: traversing the map array, and reloading scalable vector graphic data of the global map to render and display the global map according to the position attribute value, the color attribute value and the identification attribute value of the map array corresponding to each region; wherein, the identification of the region is associated with the region for display.
Optionally, the determining the color attribute value of the map array of each region according to the maximum value of the holes, the minimum value of the holes and the number of holes corresponding to each region, and rendering the map according to the color attribute value, includes: determining the severity of the vulnerability of the corresponding region according to the relationship between the maximum value and the minimum value in the vulnerability information of each region; different marking information is adopted to display different vulnerability severity degrees of the regions in a distinguishing mode, color attribute values of the map array of each region are updated, and the map is rendered according to the updated color attribute values.
Optionally, determining the severity of the vulnerability of the corresponding region according to the magnitude relation between the maximum value and the minimum value in the vulnerability information of each region includes: if the maximum value and the minimum value in the vulnerability information of the regions are equal to each other and equal to zero, determining that the severity of the vulnerability of each region is a first class, and determining that the color attribute value of the map array of each region is a first preset value; if the maximum value and the minimum value in the vulnerability information of the regions are equal and are not zero, determining that the severity of the vulnerability of each region is of a second class, and determining that the color attribute value of the map array of each region is of a second preset value; and if the maximum value and the minimum value in the vulnerability information of the regions are unequal, determining the severity of the vulnerability of each region as a third category, and calculating the color attribute value of the region according to the first preset value, the second preset value, the maximum value, the minimum value and the vulnerability information of each region.
Optionally, traversing the map array, determining a target region sequentially based on a position attribute value in the map array, and for each target region, acquiring vulnerability information corresponding to the target region, and displaying the vulnerability information in a floating layer manner in association with the target region, including: traversing the map array based on scanning circular scanning, and sequentially determining a target region based on position attribute values in the map array; the scanning ring is formed by connecting registers corresponding to regions one by one end, and each register comprises a displacement attribute determined based on a position attribute value of the corresponding region and a dynamic rotation display attribute representing a rotation animation display effect; and aiming at each target region, obtaining vulnerability information corresponding to the target region, and displaying the vulnerability information in a floating layer mode in association with the target region.
Optionally, the method further comprises: constructing a first three-dimensional sphere model according to a preset three-dimensional drawing application program, and carrying out geographic layering and map scanning layering on the first three-dimensional sphere model based on the updated scalable vector graphic data; constructing a second three-dimensional sphere model according to the three-dimensional drawing application program, overlapping the second three-dimensional sphere model with the first three-dimensional sphere model and locating the second three-dimensional sphere model at the back of the first three-dimensional sphere model, wherein the size of the second three-dimensional sphere model is larger than that of the first three-dimensional sphere model; enabling an effect synthesizer to perform corresponding processing on the scene of the second three-dimensional sphere model, and displaying the first three-dimensional sphere model at the right center of the second three-dimensional sphere model.
The embodiment of the invention also provides a three-dimensional map visualization device, which comprises: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring scalable vector graphic data of a global map and forming map arrays respectively corresponding to regions based on the scalable vector graphic data; the map array comprises identification attributes, color attribute values and position attribute values corresponding to regions; the determining module is used for acquiring the vulnerability information of each region and determining a vulnerability maximum value and a vulnerability minimum value according to the vulnerability quantity of each region; the map data processing system is also used for respectively determining the color attribute value of the map array of each region according to the maximum value of the loopholes, the minimum value of the loopholes and the number of loopholes corresponding to each region, and rendering the map according to the color attribute value; the display module is used for traversing the map array, sequentially determining target regions based on the position attribute values in the map array, acquiring vulnerability information corresponding to the target regions aiming at each target region, and displaying the vulnerability information in a floating layer mode in association with the target regions.
The embodiment of the invention also provides electronic equipment, which comprises: a processor, a memory, and a communication bus for effecting a communication connection between the processor and the memory; the memory is used for storing programs; the processor is configured to execute the program in the memory to implement the steps of the three-dimensional map visualization method according to any one of the above embodiments.
Embodiments of the present invention also provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the three-dimensional map visualization method according to any of the above embodiments.
According to the three-dimensional map visualization method provided by the embodiment of the application, the scalable vector graphic data of the global map is obtained, and map arrays corresponding to all regions are formed based on the scalable vector graphic data; obtaining vulnerability information of each region, and determining a vulnerability maximum value and a vulnerability minimum value according to the vulnerability quantity of each region; respectively determining the color attribute value of the map array of each region according to the maximum value of the loopholes, the minimum value of the loopholes and the number of loopholes corresponding to each region, and rendering the map according to the color attribute value; traversing the map array, sequentially determining target regions based on position attribute values in the map array, acquiring vulnerability information corresponding to the target regions for each target region, and displaying the vulnerability information in a floating layer mode in association with the target regions, so that a three-dimensional earth digital model manufactured based on a scalable vector graph of a global map can solve the distortion problem caused by current three-dimensional model amplification based on bitmap rendering, clearly and intuitively present the risk severity of each region, and sequentially and circularly display specific vulnerability information of each region, thereby improving user experience.
The three-dimensional map visualization device, the electronic device, the computer readable storage medium and the three-dimensional map visualization method have the same specific technical characteristics, and have the same beneficial technical effects as the three-dimensional map visualization method, and are not described in detail herein.
Drawings
FIG. 1 is a flow chart of a three-dimensional map visualization method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a three-dimensional map visualization method according to another embodiment of the present application;
FIG. 3 is a schematic structural diagram of a three-dimensional map visualization device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further elaborated below by referring to the drawings in the specification and the specific embodiments.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the implementations of the present application. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, a three-dimensional map visualization method is provided in an embodiment of the present application, where the method includes:
s101: obtaining scalable vector graphic data of a global map, and forming map arrays respectively corresponding to regions based on the scalable vector graphic data; the map array comprises an identification attribute, a color attribute value and a position attribute value corresponding to the region.
SVG (Scalable Vector Graphics ) is an image file format used to describe two-dimensional vectors and vector/raster graphics. The scalable vector graphics data of the global map may refer to standard SVG data based on the global map. The regions refer to different sub-regions in the global area, such as countries, provinces, etc. The map array may refer to a data storage list storing corresponding information of each region. The identification attribute corresponding to the region may refer to a unique code of each region, for example, a country code of each country, and a province code of each province. The color attribute values may include a zone fill color for each zone, which is primarily used for display of thermodynamic diagrams. The location attribute value may refer to a center coordinate of each zone and a closed path of each zone, for example, a center coordinate of each province and a closed path. The step of obtaining the scalable vector graphic data of the global map, the step of forming map arrays respectively corresponding to regions based on the scalable vector graphic data may be that the step of obtaining the scalable vector graphic data of the global map by the electronic device, and the step of forming the map arrays respectively corresponding to the regions based on the scalable vector graphic data.
S102: and obtaining the vulnerability information of each region, and determining a vulnerability maximum value and a vulnerability minimum value according to the vulnerability quantity of each region.
Wherein, the vulnerability information of the region can comprise population density, region temperature, epidemic situation and the like of each region. The vulnerability quantity of each region represents the severity of vulnerability information of each region. The maximum value of the loopholes is max, and the minimum value of the loopholes is min. The obtaining the vulnerability information of each region, and determining the vulnerability maximum value and the vulnerability minimum value according to the vulnerability number of each region may refer to: after the global map rendering is completed, the electronic equipment invokes a server-side data interface to acquire the vulnerability situation of each region, traverses the region data through a javascript code, and finds out the maximum value max and the minimum value min of the vulnerability.
S103: and respectively determining the color attribute value of the map array of each region according to the maximum value of the loopholes, the minimum value of the loopholes and the number of loopholes corresponding to each region, and rendering the map according to the color attribute value.
Here, color attributes are defined in RGB (Red, green, blue) form, which include two sets of color attribute values, one of which is RGB1 (r 1, g, b) and the other of which is RGB2 (r 2, g, b); the two color channels of G and B have the same value, the serious condition of the loopholes is shown only by changing the value of r, the larger r indicates the larger number of the loopholes, namely, rgb1 and rgb2 respectively represent different severity degrees of the loopholes, and the assumption is that rgb1> rgb2. Rendering the map according to the color attribute values may refer to selecting a corresponding color attribute value according to vulnerability information of each region to perform color rendering on a corresponding region of the map. The step of respectively determining the color attribute values of the map array of each region according to the maximum value of the holes, the minimum value of the holes and the number of holes corresponding to each region, and the step of rendering the map according to the color attribute values may be that: the electronic equipment respectively determines the color attribute values of the map array of each region according to the vulnerability maximum value max, the vulnerability minimum value min and the vulnerability quantity num corresponding to each region, and renders the map according to the color attribute values.
S104: traversing the map array, sequentially determining target regions based on position attribute values in the map array, acquiring vulnerability information corresponding to the target regions for each target region, and displaying the vulnerability information in a floating layer mode in association with the target regions.
Here, the traversing the map array may refer to sequentially reading the map array. The target zone may refer to a zone on a global map corresponding to the location attribute value. The floating layer mode refers to a temporary view floating out of a certain area in the global map page. The displaying the vulnerability information in a floating layer manner and the target region in a related manner may mean that the vulnerability information of the target region is floating over the corresponding target region on the global map in a floating layer manner. Traversing the map array, sequentially determining target regions based on position attribute values in the map array, and obtaining vulnerability information corresponding to the target regions for each target region, wherein displaying the vulnerability information in a floating layer manner in association with the target regions may refer to: the electronic equipment sequentially reads the map array, sequentially determines target regions based on the position attribute value corresponding to each region in the map array, acquires vulnerability information corresponding to the target regions for each target region, and floats the vulnerability information of the target region on the global map in a floating layer manner right above the corresponding target region.
According to the three-dimensional map visualization method provided by the embodiment of the application, the scalable vector graphic data of the global map is obtained, and map arrays corresponding to all regions are formed based on the scalable vector graphic data; obtaining vulnerability information of each region, and determining a vulnerability maximum value and a vulnerability minimum value according to the vulnerability quantity of each region; respectively determining the color attribute value of the map array of each region according to the maximum value of the loopholes, the minimum value of the loopholes and the number of loopholes corresponding to each region, and rendering the map according to the color attribute value; traversing the map array, sequentially determining target regions based on position attribute values in the map array, acquiring vulnerability information corresponding to the target regions for each target region, and displaying the vulnerability information in a floating layer mode in association with the target regions, so that a three-dimensional earth digital model manufactured based on a scalable vector graph of a global map can solve the distortion problem caused by the current three-dimensional model based on bitmap rendering, clearly and intuitively present the risk severity of each region, and sequentially and associatively displaying the vulnerability information of the corresponding region in a floating layer mode, thereby facilitating users to intuitively acquire the vulnerability information of each region and improving user experience.
In some embodiments, the obtaining the scalable vector graphics data of the map, forming a map array corresponding to each region based on the scalable vector graphics data, includes: acquiring a manuscript file of a global map, and determining standard scalable vector graphic data of the global map; selecting a reference region from the global map, setting a color attribute value corresponding to the reference region as a first initial value, and setting a color attribute value corresponding to other regions except the reference region in the global map as a second initial value; and extracting the position data, the identification and the color attribute value of each region to form map arrays respectively corresponding to each region.
Here, the script file of the global map refers to a file that outputs a file that may be in SVG format. The reference region may refer to a region that is a reference object in a global map, for example, a chinese region is selected as the reference region. The other region outside the reference region may refer to a region other than the reference region in the global map, for example, korea, japan, etc. The acquiring the manuscript file of the global map, determining the standard scalable vector graphic data of the global map may refer to acquiring the SVG file of the global map by the electronic device, and determining the standard scalable vector graphic data of the global map. The selecting a reference region from the global map, setting a color attribute value corresponding to the reference region as a first initial value, setting a color attribute value corresponding to other regions except the reference region in the global map as a second initial value may mean that the electronic device selects the reference region from the global map, setting a color attribute value corresponding to the reference region as the first initial value, and setting a color attribute value corresponding to other regions except the reference region in the global map as the second initial value; for example, through the corresponding processing of the SVG map file by the transliteration script language javascript, the electronic device sets the filling transparency to 1 (i.e. completely opaque) on the global map for the middle region, and sets the filling transparency to 0 (i.e. completely transparent) on the global map for regions other than china. The extracting the position data, the identifier and the color attribute value of each region to form a map array corresponding to each region may refer to extracting the position data, the identifier and the color attribute value of each region by the electronic device to form a map array corresponding to each region. For example, the electronic device extracts the closed path element and the central region coordinates of each province region, and uniformly codes each province as a unique identifier thereof to define an initial color; and storing the information in an array map data to form a map array corresponding to each region. The data elements of the map array can be divided according to provinces, and each data element comprises a center coordinate and a region code of a region as position data, the region code as a unique identifier and a region filling color as a color attribute value.
According to the three-dimensional map visualization method provided by the embodiment of the application, the map arrays respectively corresponding to the regions are formed based on the scalable vector graphic data, so that preparation can be made for clear display of subsequent thermodynamic diagrams and automatic cyclic scanning and displaying of vulnerability conditions of the regions.
In some embodiments, the three-dimensional map visualization method further comprises: traversing the map array, and reloading scalable vector graphic data of the global map to render and display the global map according to the position attribute value, the color attribute value and the identification attribute of the map array corresponding to each region; wherein, the identification of the region is associated with the region for display.
Here, the traversing the map array, reloading the scalable vector graphics data of the global map according to the position attribute value, the color attribute value and the identification attribute value of the map array corresponding to each region, and rendering and displaying the global map may refer to traversing the map array by the electronic device, reloading the scalable vector graphics data of the global map according to the position attribute value, the color attribute value and the identification attribute of the map array corresponding to each region, and re-rendering and displaying each region in the global map. The associating the identification of the region with the region may mean that the electronic device performs associating display on the unique code of the region with the region name, for example, the electronic device performs displaying on the unique code of the target province and the province name while corresponding one to one.
According to the three-dimensional map visualization method provided by the embodiment of the application, the identification of the region and the region are displayed in a correlated mode, so that a user can intuitively acquire the current region when the global map is scanned by the wheel ring, and user experience is improved.
In some embodiments, the determining the color attribute value of the map array of each region according to the vulnerability maximum value, the vulnerability minimum value and the vulnerability number corresponding to each region, and rendering the map according to the color attribute value includes: determining the severity of the vulnerability of the corresponding region according to the relationship between the maximum value and the minimum value in the vulnerability information of each region; different marking information is adopted to display different vulnerability severity degrees of the regions in a distinguishing mode, color attribute values of the map array of each region are updated, and the map is rendered according to the updated color attribute values.
Here, determining the severity of the vulnerability of the corresponding region according to the magnitude relation between the maximum value and the minimum value in the vulnerability information of each region may refer to: and the electronic equipment compares the magnitude relation between the maximum value and the minimum value in the vulnerability information of each region, and determines the severity of the vulnerability of the corresponding region according to the magnitude relation between the maximum value and the minimum value in the vulnerability information of each region. For example, the electronic device compares the magnitude relation between the maximum value and the minimum value in the vulnerability information of each province in China, and determines the severity of the vulnerability in China according to the magnitude relation between the maximum value and the minimum value in the vulnerability information of each province in China. The labeling information refers to data representing the color attribute values corresponding to the regions. The step of using different labeling information to display different vulnerability severity of the regions in a distinguishing way, the step of updating the color attribute value of the map array of each region, and the step of rendering the map according to the updated color attribute value can be as follows: the electronic equipment adopts different colors to display different vulnerability severity degrees of the regions in a distinguishing mode, correspondingly updates the color attribute values of the map array of each region, and re-renders each region according to the color attribute values of the map array.
According to the three-dimensional map visualization method provided by the embodiment of the application, the specific processes of respectively determining the color attribute value of the map array of each region and rendering the map according to the color attribute value according to the maximum value and the minimum value of the loopholes and the number of the loopholes corresponding to each region are described, so that users can intuitively check the severity of the loopholes of each region when the global map is viewed, and user experience is improved.
In some embodiments, the determining the severity of the vulnerability of the corresponding territory according to the magnitude relation between the maximum value and the minimum value in the vulnerability information of the territory includes: if the maximum value and the minimum value in the vulnerability information of the regions are equal to each other and equal to zero, determining that the severity of the vulnerability of each region is a first class, and determining that the color attribute value of the map array of each region is a first preset value; if the maximum value and the minimum value in the vulnerability information of the regions are equal and are not zero, determining that the severity of the vulnerability of each region is of a second class, and determining that the color attribute value of the map array of each region is of a second preset value; and if the maximum value and the minimum value in the vulnerability information of the regions are unequal, determining the severity of the vulnerability of each region as a third category, and calculating the color attribute value of the region according to the first preset value, the second preset value, the maximum value, the minimum value and the vulnerability information of each region.
Here, if the maximum value and the minimum value in the vulnerability information of the regions are equal to each other and equal to zero, determining that the severity of the vulnerability of each region is the first category, and the color attribute value of the map array of each region is the first preset value may be: if max=min and all are 0 in each region vulnerability information, this means that each region vulnerability number is 0 and all region color attribute values are assigned as rgb2 (r 2 G, b). For example, if max=min in each province vulnerability information of china is 0, it means that each province vulnerability number is 0, and color attribute values of all provinces are assigned as rgb2 (r 2 G, b). If the maximum value and the minimum value in the vulnerability information of the regions are equal and are not zero, determining that the severity of the vulnerability of each region is of a second class, and the color attribute value of the map array of each region is a second preset value may be: if max=min and neither of the region vulnerability information is 0, this means that each region has vulnerabilities and the number is the same, and all region color attribute values are assigned as rgb1 (r 1 G, b). For example, if max=min in the vulnerability information of each province in china is not 0, this means that the number of vulnerabilities of each province is the same, and the color attribute value of all provinces is assigned as rgb1 (r 1 G, b). If the maximum value and the minimum value in the vulnerability information of the regions are not equal, determining that the severity of the vulnerability of each region is a third category, and calculating the color attribute value of the region according to the first preset value, the second preset value, the maximum value, the minimum value and the vulnerability information of each region may be: if max in the vulnerability information of each region is not equal to min, the vulnerability number of each region is not equal, and the calculation formula of the r-channel color value of the region color with the vulnerability number num is as follows:
Figure BDA0003959951550000101
wherein max is the vulnerability maximum value of each regionMin is the minimum value of loopholes in each region, r is 1 R channel color values when max=min and neither of the r channel color values is 0 in each region vulnerability information, wherein r is 2 And r channel color values when max=min and all are 0 in the vulnerability information of each region are obtained, wherein num is the vulnerability number of the target region.
The three-dimensional map visualization method provided by the embodiment of the invention specifically describes a specific process of respectively determining the color attribute values of the map array of each region according to the magnitude relation between the maximum value and the minimum value of the loopholes in the loopholes, is convenient for users to intuitively check the severity of the loopholes of each region when the global map is viewed, and improves user experience.
In some embodiments, traversing the map array, determining a target region sequentially based on a position attribute value in the map array, obtaining, for each target region, vulnerability information corresponding to the target region, and displaying the vulnerability information in a floating layer manner in association with the target region, including: traversing the map array based on scanning circular scanning, and sequentially determining a target region based on position attribute values in the map array; the scanning ring is formed by connecting registers corresponding to regions one by one end, and each register comprises a displacement attribute determined based on a position attribute value of the corresponding region and a dynamic rotation display attribute representing a rotation animation display effect; and aiming at each target region, obtaining vulnerability information corresponding to the target region, and displaying the vulnerability information in a floating layer mode in association with the target region.
Here, the determining, based on the position attribute value in the map array, the target region sequentially based on the scan loop round robin scanning to traverse the map array may specifically be: the electronic equipment acquires the central coordinate mark information of the current region based on the map array by traversing the map array, positions the scanning ring according to the central coordinate, and determines each region sequentially displayed in the scanning ring based on each region information in the global map. The determining that each region is sequentially displayed in the scanning ring based on each region information in the global map may be: a transform (x-value) function under a transform (function command) attribute is used to locate a display sequence of each region in the global map in a scan ring, wherein x-value is an x-axis offset length, and y-value is a y-axis offset length. The scanning ring is formed by connecting registers corresponding to regions in a head-to-tail mode, and each register comprises a displacement attribute determined based on a position attribute value of the corresponding region and a dynamic rotation display attribute representing a rotation animation display effect. The shape of the register may be a circular layer. The displacement attribute value may be a regional path. The dynamic rotation display attribute refers to an animation attribute added to a cyclic rotation animation effect. The step of obtaining vulnerability information corresponding to the target region for each target region, and displaying the vulnerability information in a floating layer manner in association with the target region may be: aiming at each target region, the electronic equipment acquires vulnerability information corresponding to the target region, and the vulnerability information is displayed in a floating layer mode in a correlated manner with the target region. For example, the electronic device calls a server data interface through a browser according to the current scanning province to acquire vulnerability information of the province, uses a rect tag in SVG to construct a floating layer, acquires central coordinate mark information of the current region based on the map array, positions the floating layer according to the central coordinate, and uses a text file tag to float the vulnerability information at the floating layer. And then, the electronic equipment counts the provinces which are already broadcasted in turn by using the animateConunt, the initial value is set to be 1, and when polling scanning is carried out, the current province is the information of map data [ animateConunt-1 ], and at the moment, the vulnerability information of the current province is displayed in the regional path of the current province in a floating layer mode. Then, after each province is circularly scanned and stays for 5 seconds, the next province is skipped. Every time a province is switched, animateConunt is added with 1, and when animateConunt is greater than the array mapData length, animateConunt is reset to 1, i.e. a new round of vulnerability scanning is started.
According to the three-dimensional map visualization method provided by the embodiment of the application, the map array is traversed based on scanning circular scanning, and the target region is determined sequentially based on the position attribute value in the map array; and aiming at each target region, obtaining the vulnerability information corresponding to the target region, and displaying the vulnerability information in a floating layer mode in association with the target region, so that a user can conveniently and intuitively check the vulnerability information of each region when the global map is not operated, and the vulnerability information of each region can be automatically scanned and displayed, and the user experience is improved.
In some embodiments, the three-dimensional map visualization method further comprises: constructing a first three-dimensional sphere model according to a preset three-dimensional drawing application program, and carrying out geographic layering and map scanning layering on the first three-dimensional sphere model based on the updated scalable vector graphic data; constructing a second three-dimensional sphere model according to the three-dimensional drawing application program, overlapping the second three-dimensional sphere model with the first three-dimensional sphere model and locating the second three-dimensional sphere model at the back of the first three-dimensional sphere model, wherein the size of the second three-dimensional sphere model is larger than that of the first three-dimensional sphere model; enabling an effect synthesizer to perform corresponding processing on the scene of the second three-dimensional sphere model, and displaying the first three-dimensional sphere model at the right center of the second three-dimensional sphere model.
Here, the constructing the first three-dimensional sphere model according to the preset three-dimensional drawing application program, and performing the geographic layering and the map scanning layering on the first three-dimensional sphere model based on the updated scalable vector graphics data means that the electronic device constructs the first three-dimensional sphere model according to the preset three-dimensional drawing application program, and performing the geographic layering and the map scanning layering on the first three-dimensional sphere model based on the updated scalable vector graphics data may specifically be: the electronic equipment uses an open source library thread of a WebGL (Web Graphics Library, web graphic library) three-dimensional engine to create a scene, selects a proper camera and illumination environment, constructs a first three-dimensional sphere model, selects a grid material MeshPhongMaterial to realize the material effect of a bright surface, loads a geographic overlay picture by using a texture loader textureLoader, and comprises a color overlay map, a normal line overlay MeshPhongMaterial and a specular reflection overlay specularMap, wherein the normal line overlay is used for simulating mountain ranges of the surface protrusions of the earth, and the specular reflection overlay simulates the reflection effect of the ocean on sunlight, and the three overlay sizes can be 4096 and 2048 respectively; meanwhile, the electronic equipment uses an open source library thread of a WebGL (Web Graphics Library, web graphic library) three-dimensional engine to create a scene, selects a proper camera and illumination environment, constructs a second first three-dimensional sphere model, loads a geographic overlay picture by using a texture loader textureLoader, enables the geographic overlay picture to be used as a color map in a base material MeshBasicMATERIAL to be attached to the surface of the earth, and selects a material transmissibility attribute of the sphere model as true, wherein the size of the color map is 4096 long and 2048 wide; overlapping the first three-dimensional sphere model and the second first three-dimensional sphere model to realize geographic layering and map scanning layering of the first three-dimensional sphere model. The constructing a second three-dimensional sphere model according to the three-dimensional drawing application program, overlapping the second three-dimensional sphere model with the first three-dimensional sphere model and being located at the back of the first three-dimensional sphere model may refer to: the electronic device builds a second three-dimensional sphere model according to the three-dimensional drawing application program, and overlaps the second three-dimensional sphere model with the first three-dimensional sphere model and is located at the back of the first three-dimensional sphere model, which may be specifically: the electronic equipment uses a thread.javascript to create a second scene, builds a second three-dimensional sphere model corresponding to the second scene according to a Mesh constructor function and a shader material, adjusts the size of the second three-dimensional sphere model to enable the size of the second three-dimensional sphere model to be slightly larger than the size of the first three-dimensional sphere model, and sets the position plane attribute of the material to be a BackSide (back surface), so that the material only applies to the back surface of the first three-dimensional sphere model and appears slightly larger than the sphere of the first three-dimensional sphere model. The enabling the effect synthesizer to perform corresponding processing on the scene of the second three-dimensional sphere model, and displaying the first three-dimensional sphere model at the midpoint of the second three-dimensional sphere model may refer to: the electronic device enables an effect synthesizer to perform corresponding processing on the scene of the second three-dimensional sphere model, and displays the first three-dimensional sphere model at the right center of the second three-dimensional sphere model, which can be specifically: and the electronic equipment performs post-processing on the second scene by utilizing an effect synthesizer EffectComposer, renderPass, shaderPass channel in the thread. Javascript engine, so that the rendering and displaying of the first three-dimensional sphere model are right in the middle of the aperture of the second three-dimensional sphere model.
According to the three-dimensional map visualization method provided by the embodiment of the application, the first three-dimensional sphere model and the second three-dimensional sphere model are created based on the WebGL three-dimensional engine, so that the aperture effect and the map scanning overlay of the first three-dimensional sphere model are realized, the cool effect of the global map in the expressive force aspect is increased, and the shock of a user in the visual effect aspect is improved.
In some embodiments, the three-dimensional map visualization method further comprises: receiving an operation event for selecting a region, and determining a current target region according to the operation event; aiming at the current target region, obtaining vulnerability information corresponding to the current target region, and displaying the vulnerability information in a floating layer mode in association with the current target region; and if a new operation event for selecting the region is not received within a preset period, returning to traverse the map array, sequentially determining target regions based on the position attribute values in the map array, acquiring vulnerability information corresponding to the target regions for each target region, and displaying the vulnerability information in a floating layer mode in association with the target region.
Here, the operation event for selecting a region may refer to a clicking operation in a path of an area where the region is located. Receiving an operation event for selecting a region, and determining a current target region according to the operation event; aiming at the current target region, obtaining vulnerability information corresponding to the current target region, and displaying the vulnerability information in a floating layer manner in association with the current target region may refer to: the electronic equipment receives an operation event for selecting a region, and determines a current target region according to the operation event; aiming at the current target region, obtaining vulnerability information corresponding to the current target region, and displaying the vulnerability information in a floating layer mode in association with the current target region; the method specifically comprises the following steps: the electronic equipment adds a monitoring event aiming at the SVG map file of the global map, when monitoring the selected operation of clicking a certain region by a mouse, closes the current polling scanning, acquires the region name of the clicked current region by analyzing map elements, acquires vulnerability information corresponding to the current region, and displays the vulnerability information in a floating layer mode in association with the current target region. If a new operation event for selecting a region is not received within a preset period, returning to traverse the map array, sequentially determining a target region based on a position attribute value in the map array, and obtaining vulnerability information corresponding to the target region for each target region, wherein the step of displaying the vulnerability information in a floating layer manner in association with the target region may refer to: if the electronic equipment does not receive a new operation event for selecting the region within a preset period, returning to traverse the map array, sequentially determining target regions based on the position attribute values in the map array, acquiring vulnerability information corresponding to the target regions aiming at each target region, and displaying the vulnerability information in a floating layer mode in association with the target region; the method specifically comprises the following steps: and if the electronic equipment does not receive other clicking operations within a preset period of time, for example, 10 seconds, automatically starting a new polling scan, and displaying the vulnerability information in a floating layer mode in association with the target region.
The three-dimensional map visualization method provided by the embodiment of the application solves the problem that besides the global map is enlarged, reduced and rotatable, the clickable operation of a user on the global map can be realized, so that the user can conveniently view vulnerability data of expected provinces, and the user experience is improved.
Referring to fig. 2, a flowchart of a three-dimensional map visualization method according to another embodiment of the present application is shown. The method is executed by an electronic device such as a computer, and the definition of the electronic device is explained. The method comprises the following steps:
s201: the method comprises the steps that electronic equipment obtains a manuscript file of a global map, standard scalable vector graphic data of the global map are determined, and map arrays corresponding to regions respectively are formed based on the scalable vector graphic data;
s202: the electronic equipment acquires the vulnerability information of each region, and determines a vulnerability maximum value and a vulnerability minimum value according to the vulnerability quantity of each region;
s203: the electronic equipment respectively determines the color attribute value of the map array of each region according to the maximum value of the loopholes, the minimum value of the loopholes and the number of loopholes corresponding to each region, and renders the map according to the color attribute value;
S204: the electronic equipment traverses the map array, and reloads the scalable vector graphic data of the global map to render and display the global map according to the position attribute value, the color attribute value and the identification attribute value of the map array corresponding to each region;
s205: the electronic equipment traverses the map array based on scanning circular scanning, and sequentially determines a target region based on a position attribute value in the map array; aiming at each target region, obtaining vulnerability information corresponding to the target region, and displaying the vulnerability information in a floating layer mode in association with the target region;
s206: the electronic equipment receives an operation event for selecting a region, and determines a current target region according to the operation event; aiming at the current target region, obtaining vulnerability information corresponding to the current target region, and displaying the vulnerability information in a floating layer mode in association with the current target region;
s207: the electronic equipment constructs a first three-dimensional sphere model according to a preset three-dimensional drawing application program, and carries out geographic layering and map scanning layering on the first three-dimensional sphere model based on the updated scalable vector graphic data;
S208: the electronic equipment builds a second three-dimensional sphere model according to the three-dimensional drawing application program, the second three-dimensional sphere model is overlapped with the first three-dimensional sphere model and is positioned on the back surface of the first three-dimensional sphere model, and the size of the second three-dimensional sphere model is larger than that of the first three-dimensional sphere model;
s209: enabling an effect synthesizer to perform corresponding processing on the scene of the second three-dimensional sphere model, and displaying the first three-dimensional sphere model at the right center of the second three-dimensional sphere model.
According to the three-dimensional map visualization method provided by the embodiment of the application, the scalable vector graphic data of the global map is obtained, and map arrays corresponding to all regions are formed based on the scalable vector graphic data; obtaining vulnerability information of each region, and determining a vulnerability maximum value and a vulnerability minimum value according to the vulnerability quantity of each region; respectively determining the color attribute value of the map array of each region according to the maximum value of the loopholes, the minimum value of the loopholes and the number of loopholes corresponding to each region, and rendering the map according to the color attribute value; traversing the map array, sequentially determining target regions based on position attribute values in the map array, acquiring vulnerability information corresponding to the target regions for each target region, and displaying the vulnerability information in a floating layer mode in association with the target regions, so that a three-dimensional earth digital model manufactured based on a scalable vector graph of a global map can solve the distortion problem caused by the current three-dimensional model amplification based on bitmap rendering, and clearly and intuitively presents the risk severity of each region; the clickable operation of the user on the global map can be realized, so that the user can conveniently view vulnerability data of expected provinces; and the aperture effect and map scanning overlay of the three-dimensional sphere model of the global map are realized, the cool effect of the global map in the aspect of expressive force is increased, and the impact of a user in the aspect of visual effect is improved.
Referring to fig. 3, an embodiment of the present invention further provides a three-dimensional map visualization apparatus, including:
an obtaining module 301, configured to obtain scalable vector graphics data of a global map, and form map arrays corresponding to regions respectively based on the scalable vector graphics data; the map array comprises identification attributes, color attribute values and position attribute values corresponding to regions;
the determining module 302 is configured to obtain vulnerability information of each region, and determine a vulnerability maximum value and a vulnerability minimum value according to the vulnerability number of each region; the map data processing system is also used for respectively determining the color attribute value of the map array of each region according to the maximum value of the loopholes, the minimum value of the loopholes and the number of loopholes corresponding to each region, and rendering the map according to the color attribute value;
the display module 303 is configured to traverse the map array, sequentially determine target regions based on the position attribute values in the map array, obtain, for each target region, vulnerability information corresponding to the target region, and display the vulnerability information in a floating layer manner in association with the target region.
The acquiring module 301 is further configured to acquire a sample file of a global map, and determine standard scalable vector graphics data of the global map; selecting a reference region from the global map, setting a color attribute value corresponding to the reference region as a first initial value, and setting a color attribute value corresponding to other regions except the reference region in the global map as a second initial value; and extracting the position data, the identification and the color attribute value of each region to form map arrays respectively corresponding to each region.
The display module 303 is further configured to traverse the map array, reload scalable vector graphics data of the global map according to a position attribute value, a color attribute value, and an identification attribute value of the map array corresponding to each region, and render and display the global map; wherein, the identification of the region is associated with the region for display.
The determining module 302 is further configured to determine a severity of the vulnerability of the corresponding region according to a magnitude relation between a maximum value and a minimum value in the vulnerability information of each region; different marking information is adopted to display different vulnerability severity degrees of the regions in a distinguishing mode, color attribute values of the map array of each region are updated, and the map is rendered according to the updated color attribute values.
The determining module 302 is further configured to determine that the severity of the vulnerability of each region is a first class, and the color attribute value of the map array of each region is a first preset value if the maximum value and the minimum value in the vulnerability information of the region are equal to each other and equal to zero; if the maximum value and the minimum value in the vulnerability information of the regions are equal and are not zero, determining that the severity of the vulnerability of each region is of a second class, and determining that the color attribute value of the map array of each region is of a second preset value; and if the maximum value and the minimum value in the vulnerability information of the regions are unequal, determining the severity of the vulnerability of each region as a third category, and calculating the color attribute value of the region according to the first preset value, the second preset value, the maximum value, the minimum value and the vulnerability information of each region.
The display module 303 is further configured to sequentially determine a target region based on the position attribute value in the map array based on scanning circular scanning to traverse the map array; the scanning ring is formed by connecting registers corresponding to regions one by one end, and each register comprises a displacement attribute determined based on a position attribute value of the corresponding region and a dynamic rotation display attribute representing a rotation animation display effect; and aiming at each target region, obtaining vulnerability information corresponding to the target region, and displaying the vulnerability information in a floating layer mode in association with the target region.
The three-dimensional map visualization device further comprises a construction module 304, configured to construct a first three-dimensional sphere model according to a preset three-dimensional drawing application program, and perform geographic layering and map scanning layering on the first three-dimensional sphere model based on the updated scalable vector graphic data; constructing a second three-dimensional sphere model according to the three-dimensional drawing application program, overlapping the second three-dimensional sphere model with the first three-dimensional sphere model and locating the second three-dimensional sphere model at the back of the first three-dimensional sphere model, wherein the size of the second three-dimensional sphere model is larger than that of the first three-dimensional sphere model; the display module 303 is further configured to enable an effect synthesizer to perform corresponding processing on a scene of the second three-dimensional sphere model, and display the first three-dimensional sphere model at a midpoint of the second three-dimensional sphere model.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and the embodiment of the present invention is not limited to the specific implementation of the electronic device. As shown in fig. 4, the electronic device may include: a processor (processor) 401, a memory (memory) 402, and a communication bus 403. Wherein the processor 401 and the memory 402 perform communication with each other through a communication bus 403. The processor 401 is configured to execute a program, and may specifically perform the relevant steps in the embodiment of the three-dimensional map visualization method described above.
In particular, the program may include program code comprising computer-executable instructions.
The processor 401 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors comprised by the terminal device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
A memory 402 for storing a program. Memory 402 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program may be specifically called by the processor 401 to cause the electronic device to:
obtaining scalable vector graphic data of a global map, and forming map arrays respectively corresponding to regions based on the scalable vector graphic data; the map array comprises identification attributes, color attribute values and position attribute values corresponding to regions; obtaining vulnerability information of each region, and determining a vulnerability maximum value and a vulnerability minimum value according to the vulnerability quantity of each region; respectively determining the color attribute value of the map array of each region according to the maximum value of the loopholes, the minimum value of the loopholes and the number of loopholes corresponding to each region, and rendering the map according to the color attribute value; traversing the map array, sequentially determining target regions based on position attribute values in the map array, acquiring vulnerability information corresponding to the target regions for each target region, and displaying the vulnerability information in a floating layer mode in association with the target regions.
In an alternative embodiment, the program may be specifically invoked by the processor 401 to cause the electronic device to: the obtaining the scalable vector graphic data of the map, forming a map array corresponding to each region based on the scalable vector graphic data, includes: acquiring a manuscript file of a global map, and determining standard scalable vector graphic data of the global map; selecting a reference region from the global map, setting a color attribute value corresponding to the reference region as a first initial value, and setting a color attribute value corresponding to other regions except the reference region in the global map as a second initial value; and extracting the position data, the identification and the color attribute value of each region to form map arrays respectively corresponding to each region.
In an alternative embodiment, the program may be specifically invoked by the processor 401 to cause the electronic device to: traversing the map array, and reloading scalable vector graphic data of the global map to render and display the global map according to the position attribute value, the color attribute value and the identification attribute value of the map array corresponding to each region; wherein, the identification of the region is associated with the region for display.
In an alternative embodiment, the program may be specifically invoked by the processor 401 to cause the electronic device to: determining the severity of the vulnerability of the corresponding region according to the relationship between the maximum value and the minimum value in the vulnerability information of each region; different marking information is adopted to display different vulnerability severity degrees of the regions in a distinguishing mode, color attribute values of the map array of each region are updated, and the map is rendered according to the updated color attribute values.
In an alternative embodiment, the program may be specifically invoked by the processor 401 to cause the electronic device to: if the maximum value and the minimum value in the vulnerability information of the regions are equal to each other and equal to zero, determining that the severity of the vulnerability of each region is a first class, and determining that the color attribute value of the map array of each region is a first preset value; if the maximum value and the minimum value in the vulnerability information of the regions are equal and are not zero, determining that the severity of the vulnerability of each region is of a second class, and determining that the color attribute value of the map array of each region is of a second preset value; and if the maximum value and the minimum value in the vulnerability information of the regions are unequal, determining the severity of the vulnerability of each region as a third category, and calculating the color attribute value of the region according to the first preset value, the second preset value, the maximum value, the minimum value and the vulnerability information of each region.
In an alternative embodiment, the program may be specifically invoked by the processor 401 to cause the electronic device to: traversing the map array based on scanning circular scanning, and sequentially determining a target region based on position attribute values in the map array; the scanning ring is formed by connecting registers corresponding to regions one by one end, and each register comprises a displacement attribute determined based on a position attribute value of the corresponding region and a dynamic rotation display attribute representing a rotation animation display effect; and aiming at each target region, obtaining vulnerability information corresponding to the target region, and displaying the vulnerability information in a floating layer mode in association with the target region.
In an alternative embodiment, the program may be specifically invoked by the processor 401 to cause the electronic device to: constructing a first three-dimensional sphere model according to a preset three-dimensional drawing application program, and carrying out geographic layering and map scanning layering on the first three-dimensional sphere model based on the updated scalable vector graphic data; constructing a second three-dimensional sphere model according to the three-dimensional drawing application program, overlapping the second three-dimensional sphere model with the first three-dimensional sphere model and locating the second three-dimensional sphere model at the back of the first three-dimensional sphere model, wherein the size of the second three-dimensional sphere model is larger than that of the first three-dimensional sphere model; enabling an effect synthesizer to perform corresponding processing on the scene of the second three-dimensional sphere model, and displaying the first three-dimensional sphere model at the right center of the second three-dimensional sphere model.
Embodiments of the present invention also provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the three-dimensional map visualization method according to any of the above embodiments.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component, and they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.

Claims (10)

1. A method of visualizing a three-dimensional map, comprising:
obtaining scalable vector graphic data of a global map, and forming map arrays respectively corresponding to regions based on the scalable vector graphic data; the map array comprises identification attributes, color attribute values and position attribute values corresponding to regions;
Obtaining vulnerability information of each region, and determining a vulnerability maximum value and a vulnerability minimum value according to the vulnerability quantity of each region;
respectively determining the color attribute value of the map array of each region according to the maximum value of the loopholes, the minimum value of the loopholes and the number of loopholes corresponding to each region, and rendering the map according to the color attribute value;
traversing the map array, sequentially determining target regions based on position attribute values in the map array, acquiring vulnerability information corresponding to the target regions for each target region, and displaying the vulnerability information in a floating layer mode in association with the target regions.
2. The three-dimensional map visualization method according to claim 1, wherein the obtaining scalable vector graphics data of the map, forming map arrays respectively corresponding to the regions based on the scalable vector graphics data, comprises:
acquiring a manuscript file of a global map, and determining standard scalable vector graphic data of the global map;
selecting a reference region from the global map, setting a color attribute value corresponding to the reference region as a first initial value, and setting a color attribute value corresponding to other regions except the reference region in the global map as a second initial value;
And extracting the position data, the identification and the color attribute value of each region to form map arrays respectively corresponding to each region.
3. The three-dimensional map visualization method of claim 1, further comprising:
traversing the map array, and reloading scalable vector graphic data of the global map to render and display the global map according to the position attribute value, the color attribute value and the identification attribute value of the map array corresponding to each region; wherein, the identification of the region is associated with the region for display.
4. The three-dimensional map visualization method of claim 1, wherein the determining the color attribute value of the map array for each region according to the vulnerability maximum value, the vulnerability minimum value, and the vulnerability number corresponding to each region, respectively, and rendering the map according to the color attribute values comprises:
determining the severity of the vulnerability of the corresponding region according to the relationship between the maximum value and the minimum value in the vulnerability information of each region;
different marking information is adopted to display different vulnerability severity degrees of the regions in a distinguishing mode, color attribute values of the map array of each region are updated, and the map is rendered according to the updated color attribute values.
5. The three-dimensional map visualization method of claim 4, wherein determining the severity of the vulnerability of the corresponding zone according to the magnitude relation between the maximum value and the minimum value in the vulnerability information of each zone comprises:
if the maximum value and the minimum value in the vulnerability information of the regions are equal to each other and equal to zero, determining that the severity of the vulnerability of each region is a first class, and determining that the color attribute value of the map array of each region is a first preset value;
if the maximum value and the minimum value in the vulnerability information of the regions are equal and are not zero, determining that the severity of the vulnerability of each region is of a second class, and determining that the color attribute value of the map array of each region is of a second preset value;
and if the maximum value and the minimum value in the vulnerability information of the regions are unequal, determining the severity of the vulnerability of each region as a third category, and calculating the color attribute value of the region according to the first preset value, the second preset value, the maximum value, the minimum value and the vulnerability information of each region.
6. The method of claim 1, wherein traversing the map array, determining target regions sequentially based on the position attribute values in the map array, obtaining vulnerability information corresponding to the target regions for each target region, and displaying the vulnerability information in association with the target regions in a floating layer manner comprises:
Traversing the map array based on scanning circular scanning, and sequentially determining a target region based on position attribute values in the map array; the scanning ring is formed by connecting registers corresponding to regions one by one end, and each register comprises a displacement attribute determined based on a position attribute value of the corresponding region and a dynamic rotation display attribute representing a rotation animation display effect;
and aiming at each target region, obtaining vulnerability information corresponding to the target region, and displaying the vulnerability information in a floating layer mode in association with the target region.
7. The three-dimensional map visualization method of claim 1, further comprising:
constructing a first three-dimensional sphere model according to a preset three-dimensional drawing application program, and carrying out geographic layering and map scanning layering on the first three-dimensional sphere model based on the updated scalable vector graphic data;
constructing a second three-dimensional sphere model according to the three-dimensional drawing application program, overlapping the second three-dimensional sphere model with the first three-dimensional sphere model and locating the second three-dimensional sphere model at the back of the first three-dimensional sphere model, wherein the size of the second three-dimensional sphere model is larger than that of the first three-dimensional sphere model;
Enabling an effect synthesizer to perform corresponding processing on the scene of the second three-dimensional sphere model, and displaying the first three-dimensional sphere model at the right center of the second three-dimensional sphere model.
8. A three-dimensional map visualization apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring scalable vector graphic data of a global map and forming map arrays respectively corresponding to regions based on the scalable vector graphic data; the map array comprises identification attributes, color attribute values and position attribute values corresponding to regions;
the determining module is used for acquiring the vulnerability information of each region and determining a vulnerability maximum value and a vulnerability minimum value according to the vulnerability quantity of each region; the map data processing system is also used for respectively determining the color attribute value of the map array of each region according to the maximum value of the loopholes, the minimum value of the loopholes and the number of loopholes corresponding to each region, and rendering the map according to the color attribute value;
the display module is used for traversing the map array, sequentially determining target regions based on the position attribute values in the map array, acquiring vulnerability information corresponding to the target regions aiming at each target region, and displaying the vulnerability information in a floating layer mode in association with the target regions.
9. An electronic device, comprising: a processor, a memory and a communication bus,
the communication bus is used for realizing communication connection between the processor and the memory;
the memory is used for storing programs;
the processor is configured to execute a program in the memory to implement the steps of the three-dimensional map visualization method as defined in any one of claims 1 to 7.
10. A computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the three-dimensional map visualization method of any of claims 1-7.
CN202211475825.XA 2022-11-23 2022-11-23 Three-dimensional map visualization method and device, electronic equipment and storage medium Pending CN116263984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211475825.XA CN116263984A (en) 2022-11-23 2022-11-23 Three-dimensional map visualization method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211475825.XA CN116263984A (en) 2022-11-23 2022-11-23 Three-dimensional map visualization method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116263984A true CN116263984A (en) 2023-06-16

Family

ID=86722923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211475825.XA Pending CN116263984A (en) 2022-11-23 2022-11-23 Three-dimensional map visualization method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116263984A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116993857A (en) * 2023-08-11 2023-11-03 中国科学院西北生态环境资源研究院 Thematic map preparation method and device, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116993857A (en) * 2023-08-11 2023-11-03 中国科学院西北生态环境资源研究院 Thematic map preparation method and device, storage medium and electronic equipment
CN116993857B (en) * 2023-08-11 2024-04-02 中国科学院西北生态环境资源研究院 Thematic map preparation method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US20200184695A1 (en) System and method for digital markups of custom products
US11455773B2 (en) Image processing method and device
KR102001191B1 (en) Rendering a text image following a line
CN110163831B (en) Method and device for dynamically displaying object of three-dimensional virtual sand table and terminal equipment
GB2465793A (en) Estimating camera angle using extrapolated corner locations from a calibration pattern
CN106575448A (en) Image rendering of laser scan data
US9093006B2 (en) Image shader using style attribute references
CN106842160A (en) A kind for the treatment of method and apparatus of radar return sampled data
CN111639149B (en) Ocean data visualization method and device
CN115439609B (en) Three-dimensional model rendering method, system, equipment and medium based on map service
CN115512025A (en) Method and device for detecting model rendering performance, electronic device and storage medium
CN116263984A (en) Three-dimensional map visualization method and device, electronic equipment and storage medium
CN115409957A (en) Map construction method based on illusion engine, electronic device and storage medium
CN110363837B (en) Method and device for processing texture image in game, electronic equipment and storage medium
CN112132164A (en) Target detection method, system, computer device and storage medium
CN114742931A (en) Method and device for rendering image, electronic equipment and storage medium
CN114663324A (en) Fusion display method of BIM (building information modeling) model and GIS (geographic information system) information and related components
EP2804149A2 (en) Water representation by color gradients on a digital map
CN112288878A (en) Augmented reality preview method and preview device, electronic device and storage medium
US9092907B2 (en) Image shader using two-tiered lookup table for implementing style attribute references
JP7086180B2 (en) Dynamic styling of digital maps
CN115409962B (en) Method for constructing coordinate system in illusion engine, electronic device and storage medium
CN108280887B (en) Shadow map determination method and device
CN111563929B (en) 2.5D webpage development method based on browser
CN114018243A (en) Map data processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination