CN110706354B - Data organization method suitable for three-dimensional dynamic display of flood risk graph - Google Patents

Data organization method suitable for three-dimensional dynamic display of flood risk graph Download PDF

Info

Publication number
CN110706354B
CN110706354B CN201911012019.7A CN201911012019A CN110706354B CN 110706354 B CN110706354 B CN 110706354B CN 201911012019 A CN201911012019 A CN 201911012019A CN 110706354 B CN110706354 B CN 110706354B
Authority
CN
China
Prior art keywords
grid
sub
triangular surface
mesh
time
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.)
Active
Application number
CN201911012019.7A
Other languages
Chinese (zh)
Other versions
CN110706354A (en
Inventor
王军良
张楠
王煜
彭少明
何刘鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yellow River Engineering Consulting Co Ltd
Original Assignee
Yellow River Engineering Consulting 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 Yellow River Engineering Consulting Co Ltd filed Critical Yellow River Engineering Consulting Co Ltd
Priority to CN201911012019.7A priority Critical patent/CN110706354B/en
Publication of CN110706354A publication Critical patent/CN110706354A/en
Application granted granted Critical
Publication of CN110706354B publication Critical patent/CN110706354B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • 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
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A10/00TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE at coastal zones; at river basins
    • Y02A10/40Controlling or monitoring, e.g. of flood or hurricane; Forecasting, e.g. risk assessment or mapping

Abstract

The invention discloses a data organization method suitable for three-dimensional dynamic display of a flood risk graph, comprising the following steps of S1, splitting a flood evolution grid according to a time sequence; s2, for each sub-mesh generated by splitting, if the number of the vertexes of each sub-mesh is greater than or equal to 65536, performing region division on each sub-mesh according to spatial distribution; s3, regarding each sub-mesh generated by the region division as a high-density mesh if the number of the vertexes of the sub-mesh is still larger than or equal to 65536, and further processing the high-density mesh to generate a corresponding simplified mesh; s4, for each grid, respectively storing the grid basic data and the state data at each moment; and S5, performing two-dimensional indexing on the flood evolution grid according to the spatial distribution and the time distribution. The invention fully utilizes the space-time characteristics of the flood risk graph, carries out targeted grid area division, can effectively realize the block loading of data, and reduces the data initialization time.

Description

Data organization method suitable for three-dimensional dynamic display of flood risk graph
Technical Field
The invention relates to the field of three-dimensional visualization of flood risk maps in three-dimensional digital earth platforms, in particular to a data organization method suitable for three-dimensional dynamic display of flood risk maps.
Background
The two-dimensional static flood risk graph widely used at present has certain limitations when representing information such as a flood evolution process, arrival time, submerging water depth, submerging range and the like, is not intuitive and convenient enough in representation form, and cannot be continuously displayed particularly in a time dimension. The three-dimensional flood risk graph can dynamically show the flood evolution process in an animation mode, integrates the functions of information query, data statistics, auxiliary analysis and the like, and greatly improves the application value in flood prevention work.
At present, the data organization method of the three-dimensional flood risk graph is less, and the prior art mainly has the following defects: 1. the flood routing grid consists of a large number of triangular surfaces, and a large amount of time is consumed for initialization operations such as reading, conversion and the like in the real-time loading process; 2. for flood routing data with large watershed and high precision, because the number of the triangular surfaces is too large, great pressure is formed on system hardware, and the real-time rendering performance is poor; 3. the data file occupies a large storage space, and occupies a large amount of bandwidth resources during network transmission, so that network deployment is difficult to realize; 4. the data random access efficiency is low, and the flood evolution process is not easy to demonstrate from the specified time.
Disclosure of Invention
The invention aims to provide a data organization method suitable for three-dimensional dynamic display of a flood risk graph.
In order to realize the purpose, the invention adopts the following technical scheme:
the invention discloses a data organization method suitable for three-dimensional dynamic display of a flood risk graph, which comprises the following steps of:
s1, splitting the flood evolution grid according to the time sequence:
s1.1, if the water depths of three vertexes of a triangular surface in a flood evolution grid are all 0 all the time, the triangular surface has no life cycle; otherwise, the triangular surface has a life cycle, the time when the water depths of the three vertexes of the triangular surface are not completely 0 for the first time is taken as the starting point of the life cycle of the triangular surface, and the time when the water depths of the three vertexes of the triangular surface are not completely 0 for the last time is taken as the end point of the life cycle of the triangular surface;
splitting the flood routing grid according to the difference of the life cycle starting points of the triangular surface to generate sub-grids at all times; deleting the triangular surface without the life cycle directly;
s1.2, merging the sub-grids with smaller adjacent time: taking the sub-grid at the first moment as the current sub-grid, and if the sub-grid at the next moment does not exist, directly returning; if the sub-grid at the next moment exists, judging whether the sum of the number of the vertexes of the current sub-grid and the sub-grid at the next moment is less than 65536, if so, merging the two sub-grids, taking the merged sub-grid as the current sub-grid, and repeating the process; if the current sub-grid is greater than or equal to 65536, directly taking the sub-grid at the next moment as the current sub-grid, and repeating the process;
s1.3, calculating each merged sub-grid to obtain the starting point time and the end point time of the life cycle of the sub-grid; the starting point time of the life cycle of the sub-grid is equal to the minimum value of the starting points of all the triangular surface life cycles contained in the grid, and the end point time of the life cycle of the sub-grid is equal to the maximum value of the starting points of all the triangular surface life cycles contained in the grid;
s2, for each sub-grid generated in S1.2, if the number of vertexes is greater than or equal to 65536, carrying out regional division on the sub-grid according to spatial distribution;
namely: dividing a global scope into a plurality of rectangular areas, and setting a number for each area; segmenting the sub-grids with the number of vertexes being larger than or equal to 65536 into corresponding rectangular areas by taking a triangular surface as a minimum unit, and recording area numbers;
s3, regarding each sub-mesh generated by the region division in S2, if the number of the vertexes of the sub-mesh is still larger than or equal to 65536, regarding the sub-mesh as a high-density mesh, and further processing the high-density mesh to generate a corresponding simplified mesh;
s4, for each grid, respectively storing the grid basic data and the state data of each time; the base data of the mesh includes vertex coordinates and triangle face index data; for the high-density grid, the triangular surface index data is coded by adopting an integer type of four bytes, and the other cases are coded by adopting an integer type of two bytes;
the state data of the grid comprise water depth, flow velocity, flow direction and sand content data of each vertex; starting from the 1 st moment of the whole flood evolution time, recording complete state data once every 10 moments, namely the original value of the state data; only relative state data are recorded at the middle 9 moments, namely the relative value of each state data relative to the previous moment; in addition, the first moment of the life cycle of the sub-grid is also recorded as complete state data;
s5, according to the space distribution and the time distribution, carrying out two-dimensional index to the flood evolution grid;
s5.1, firstly, indexing each time of flood evolution by spatial distribution;
s5.2, continuously arranging grids with different precisions in the same area during storage, and using a single index;
and S5.3, indexing the data information at each moment again.
2. The data organization method suitable for the three-dimensional dynamic display of the flood risk graph according to claim 1, wherein: in S3, the specific steps of generating a corresponding simplified mesh are as follows:
s3.1, carrying out priority ranking according to the position and the area of each triangular surface in the sub-grid, wherein the triangular surface positioned at the edge has the highest priority, and the triangular surface with larger area has higher priority; sequentially shrinking the triangular surface with the lowest priority, namely moving three vertexes of the triangular surface to the middle point of the triangular surface and combining the three vertexes into one vertex until the number of vertexes of the whole sub-mesh is less than 65536;
and S3.2, when the high-density grids are stored, simultaneously storing the original grids and the corresponding simplified grids.
The advantages of the invention are embodied in the following aspects:
1. the invention fully utilizes the space-time characteristics of the flood risk graph, carries out targeted grid area division, can effectively realize the block loading of data, and reduces the data initialization time.
2. The invention is designed for real-time rendering, necessary hierarchical optimization is carried out on the high-density grids, grids of corresponding levels can be selected for rendering according to the three-dimensional viewpoint distance, the real-time rendering performance is good, and the user experience is good.
3. The invention effectively reduces redundant information of the flood risk graph in time and space, occupies small storage space and is more beneficial to realizing networked deployment.
4. By means of the coding mode of combining the complete state data and the relative state data, both the sequential access and the random access of the data are effectively considered, so that a user can quickly position to a specified time for demonstration, the operation flexibility is achieved, and the random operation of the user is more friendly.
Drawings
FIG. 1 is a block flow diagram of the method of the present invention.
FIG. 2 is a block diagram of the data organization flow of the method of the present invention.
Detailed Description
The present invention is described in detail below with reference to the accompanying drawings, which illustrate the embodiments and specific operations of the present invention, but the scope of the present invention is not limited to the following embodiments.
As shown in fig. 1 and 2, the data organization method suitable for three-dimensional dynamic display of a flood risk graph includes the following steps:
s1, splitting the flood evolution grid according to the time sequence:
s1.1, if the water depths of three vertexes of a triangular surface in a flood evolution grid are all 0 all the time, the triangular surface has no life cycle; otherwise, the triangular surface has a life cycle, the time when the water depths of the three vertexes of the triangular surface are not completely 0 for the first time is taken as the starting point of the life cycle of the triangular surface, and the time when the water depths of the three vertexes of the triangular surface are not completely 0 for the last time is taken as the end point of the life cycle of the triangular surface;
splitting the flood evolution grid according to the difference of the life cycle starting points of the triangular surface to generate sub-grids at all the moments; deleting the triangular surface without the life cycle directly;
s1.2, merging the sub-grids with smaller adjacent time: taking the sub-grid at the first moment as a current sub-grid, and if the sub-grid at the next moment does not exist, directly returning; if the sub-grid at the next moment exists, judging whether the sum of the number of the vertexes of the current sub-grid and the sub-grid at the next moment is less than 65536, if so, merging the two sub-grids, taking the merged sub-grid as the current sub-grid, and repeating the process; if the current sub-grid is greater than or equal to 65536, directly taking the sub-grid at the next moment as the current sub-grid, and repeating the process;
s1.3, calculating each merged sub-grid to obtain the starting point time and the end point time of the life cycle of the sub-grid; the starting point time of the life cycle of the sub-grid is equal to the minimum value of the starting points of all the triangular face life cycles contained in the grid, and the end point time of the life cycle of the sub-grid is equal to the maximum value of the starting points of all the triangular face life cycles contained in the grid;
s2, for each sub-grid generated in S1.2, if the number of vertexes is greater than or equal to 65536, carrying out regional division on the sub-grid according to spatial distribution;
namely: dividing the global scope into a plurality of rectangular areas, and setting a number for each area; segmenting the sub-grids with the number of vertexes being larger than or equal to 65536 into corresponding rectangular areas by taking a triangular surface as a minimum unit, and recording area numbers;
s3, regarding each sub-mesh generated by the region division in S2, if the number of the vertexes of the sub-mesh is still larger than or equal to 65536, regarding the sub-mesh as a high-density mesh, and further processing the high-density mesh to generate a corresponding simplified mesh; the method comprises the following specific steps:
s3.1, performing priority ranking according to the position and the area of each triangular surface in the sub-grid, wherein the triangular surface positioned at the edge has the highest priority, and the triangular surface with larger area has higher priority; sequentially shrinking the triangular surface with the lowest priority, namely moving three vertexes of the triangular surface to the middle point of the triangular surface and combining the three vertexes into one vertex until the number of vertexes of the whole sub-mesh is less than 65536;
s3.2, when the high-density grids are stored, the original grids and the corresponding simplified grids are simultaneously stored;
s4, for each grid, respectively storing the grid basic data and the state data at each moment; the base data of the mesh includes vertex coordinates and triangle face index data; for the high-density grid, the triangular surface index data is coded by adopting an integer type of four bytes, and the other cases are coded by adopting an integer type of two bytes;
the state data of the grid comprise water depth, flow velocity, flow direction and sand content data of each vertex; starting from the 1 st moment of the whole flood evolution time, recording complete state data, namely the original value of the state data, every 10 moments; only relative state data are recorded at the middle 9 moments, namely the relative value of each state data relative to the previous moment; in addition, the first moment of the life cycle of the sub-grid is also recorded as complete state data;
s5, according to the space distribution and the time distribution, carrying out two-dimensional index on the flood evolution grid;
s5.1, firstly, indexing each time of flood evolution by spatial distribution;
s5.2, continuously arranging grids with different precisions in the same area during storage, and using a single index;
and S5.3, indexing the data information at each moment again.

Claims (2)

1. A data organization method suitable for three-dimensional dynamic display of a flood risk graph is characterized by comprising the following steps: the method comprises the following steps:
s1, splitting the flood evolution grid according to the time sequence:
s1.1, for a triangular surface in a flood evolution grid, if the water depths of three vertexes of the triangular surface are all 0 all the time, the life cycle of the triangular surface does not exist; otherwise, the triangular surface has a life cycle, the time when the water depths of the three vertexes of the triangular surface are not completely 0 for the first time is taken as the starting point of the life cycle of the triangular surface, and the time when the water depths of the three vertexes of the triangular surface are not completely 0 for the last time is taken as the end point of the life cycle of the triangular surface;
splitting the flood evolution grid according to the difference of the life cycle starting points of the triangular surface to generate sub-grids at all the moments; deleting the triangular surface without the life cycle directly;
s1.2, merging the sub-grids with smaller adjacent time: taking the sub-grid at the first moment as the current sub-grid, and if the sub-grid at the next moment does not exist, directly returning; if the sub-grid at the next moment exists, judging whether the sum of the number of the vertexes of the current sub-grid and the sub-grid at the next moment is less than 65536, if so, merging the two sub-grids, taking the merged sub-grid as the current sub-grid, and repeating the process; if the current sub-grid is greater than or equal to 65536, directly taking the sub-grid at the next moment as the current sub-grid, and repeating the process;
s1.3, calculating each merged sub-grid to obtain the starting point time and the end point time of the life cycle of the sub-grid; the starting point time of the life cycle of the sub-grid is equal to the minimum value of the starting points of all the triangular face life cycles contained in the grid, and the end point time of the life cycle of the sub-grid is equal to the maximum value of the starting points of all the triangular face life cycles contained in the grid;
s2, for each sub-mesh generated in S1.2, if the number of the vertexes is larger than or equal to 65536, carrying out region division on the sub-meshes according to spatial distribution;
namely: dividing the global scope into a plurality of rectangular areas, and setting a number for each area; segmenting the sub-grids with the number of vertexes being larger than or equal to 65536 into corresponding rectangular areas by taking a triangular surface as a minimum unit, and recording area numbers;
s3, regarding each sub-mesh generated by the region division in S2, if the number of the vertexes of the sub-mesh is still larger than or equal to 65536, regarding the sub-mesh as a high-density mesh, and further processing the high-density mesh to generate a corresponding simplified mesh;
s4, for each grid, respectively storing the grid basic data and the state data at each moment; the base data of the mesh includes vertex coordinates and triangle face index data; for the high-density grid, the triangular surface index data is coded by adopting an integer type of four bytes, and the other cases are coded by adopting an integer type of two bytes;
the state data of the grid comprise water depth, flow velocity, flow direction and sand content data of each vertex; starting from the 1 st moment of the whole flood evolution time, recording complete state data, namely the original value of the state data, every 10 moments; only relative state data are recorded at the middle 9 moments, namely the relative value of each state data relative to the previous moment; in addition, the first moment of the life cycle of the sub-grid is also recorded as complete state data;
s5, according to the space distribution and the time distribution, carrying out two-dimensional index to the flood evolution grid;
s5.1, firstly, indexing each time of flood evolution by spatial distribution;
s5.2, continuously arranging grids with different precisions in the same area during storage, and using a single index;
and S5.3, indexing the data information at each moment again.
2. The data organization method suitable for the three-dimensional dynamic display of the flood risk graph according to claim 1, wherein: in S3, the specific steps of generating a corresponding simplified mesh are as follows:
s3.1, carrying out priority ranking according to the position and the area of each triangular surface in the sub-grid, wherein the triangular surface positioned at the edge has the highest priority, and the triangular surface with larger area has higher priority; sequentially shrinking the triangular surface with the lowest priority, namely moving three vertexes of the triangular surface to the middle point of the triangular surface and combining the three vertexes into one vertex until the number of vertexes of the whole sub-mesh is less than 65536;
and S3.2, when the high-density grid is stored, simultaneously storing the original grid and the corresponding simplified grid.
CN201911012019.7A 2019-10-23 2019-10-23 Data organization method suitable for three-dimensional dynamic display of flood risk graph Active CN110706354B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911012019.7A CN110706354B (en) 2019-10-23 2019-10-23 Data organization method suitable for three-dimensional dynamic display of flood risk graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911012019.7A CN110706354B (en) 2019-10-23 2019-10-23 Data organization method suitable for three-dimensional dynamic display of flood risk graph

Publications (2)

Publication Number Publication Date
CN110706354A CN110706354A (en) 2020-01-17
CN110706354B true CN110706354B (en) 2022-09-23

Family

ID=69200972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911012019.7A Active CN110706354B (en) 2019-10-23 2019-10-23 Data organization method suitable for three-dimensional dynamic display of flood risk graph

Country Status (1)

Country Link
CN (1) CN110706354B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104851360A (en) * 2014-02-14 2015-08-19 杭州贵仁科技有限公司 Method and system for generating flood risk map
CN108062453A (en) * 2018-01-12 2018-05-22 河南省水利勘测设计研究有限公司 Water Conservancy Information system flood efficient simulation and high Visual Dynamic methods of exhibiting true to nature
CN109523078A (en) * 2018-11-16 2019-03-26 黄河勘测规划设计有限公司 A kind of optimization method and system of flood risk mapping

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006002687A2 (en) * 2004-06-30 2006-01-12 Swiss Reinsurance Company Method and system for automated location-dependent recognition of flood risks
US10664937B2 (en) * 2018-04-17 2020-05-26 One Concern, Inc. Flood risk analysis and mapping

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104851360A (en) * 2014-02-14 2015-08-19 杭州贵仁科技有限公司 Method and system for generating flood risk map
CN108062453A (en) * 2018-01-12 2018-05-22 河南省水利勘测设计研究有限公司 Water Conservancy Information system flood efficient simulation and high Visual Dynamic methods of exhibiting true to nature
CN109523078A (en) * 2018-11-16 2019-03-26 黄河勘测规划设计有限公司 A kind of optimization method and system of flood risk mapping

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
基于Skyline的洪水风险图三维可视化系统构建;房晓亮等;《科技创新与应用》;20181122(第33期);全文 *
山丘区小流域洪水风险模型研究及应用;李晓英等;《水利科技与经济》;20180730(第07期);全文 *
洪水分析软件在洪水风险图编制中的应用;马建明等;《中国水利》;20170312(第05期);全文 *
高填方渠道溃堤洪水三维风险图研究;王晓玲等;《天津大学学报(自然科学与工程技术版)》;20150815(第08期);全文 *

Also Published As

Publication number Publication date
CN110706354A (en) 2020-01-17

Similar Documents

Publication Publication Date Title
CN106407408B (en) A kind of the spatial index construction method and device of mass cloud data
CN110738721B (en) Three-dimensional scene rendering acceleration method and system based on video geometric analysis
Evans et al. Optimizing triangle strips for fast rendering
CN103093499B (en) A kind of city three-dimensional model data method for organizing being applicable to Internet Transmission
CN110675496B (en) Grid subdivision and visualization method and system based on three-dimensional urban geological model
US20150235392A1 (en) Drawing data generation device and image drawing device
CN110825831B (en) Digital twin city multi-scale space grid coding method and device
WO2008067483A1 (en) Ray tracing a three dimensional scene using a grid
CN105956165B (en) A kind of big file storage organization method of the tile type of three-dimensional modeling data
CN103077549A (en) Real-time large-scale terrain visualization implementation method based on kd tree
CN107220372A (en) A kind of automatic laying method of three-dimensional map line feature annotation
CN110110132A (en) A kind of method, apparatus that establishing space lattice system and remote sensing image processing system
CN110706354B (en) Data organization method suitable for three-dimensional dynamic display of flood risk graph
Luo et al. Quad-tree atlas ray casting: a gpu based framework for terrain visualization and its applications
Yang et al. Efficient simplification of large vector maps rendered onto 3D landscapes
Kim et al. Efficient encoding and decoding extended geocodes for massive point cloud data
KR100715669B1 (en) Device and method for representation of multi-level lod 3-demension image
CN102074004A (en) Method and device for determining type of barrier of spatial entity
Masood et al. A novel method for adaptive terrain rendering using memory-efficient tessellation codes for virtual globes
CN113495935A (en) Terrain slicing method and system based on irregular triangularization mesh generation
AU2004219190A1 (en) Visual simulation of dynamic moving bodies
Bóo et al. Unified hybrid terrain representation based on local convexifications
CN117237503B (en) Geographic element data accelerated rendering and device
CN113590727B (en) Spatial data structural analysis method
KR102061835B1 (en) How to implement LOD in non-square Grid data with NaN

Legal Events

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