Three-dimensional digital earth platform construction method suitable for hydraulic engineering application
Technical field
The present invention relates to three-dimensional digital earth platform construction methods, more particularly, to three dimensions for being suitable for hydraulic engineering application
Word earth platform construction method.
Background technique
Currently, three-dimension GIS (the i.e. Geographic such as three-dimensional geographic information system such as Google Earth, Skyline
Information System, translator of Chinese are GIS-Geographic Information System) software, it generallys use standard quad-tree structure and realizes over the ground
The management and load of shape, image, and pass through the building of addition threedimensional model realization Complete three-dimensional scene.This technological means is simple
Efficiently, the three-dimensional scenics such as digital city, Digital Campus can quickly be created.However in water conservancy application, to the place of landform
Reason, analytical calculation requirement are very high, and it is poor to carry out expression effect using above-mentioned technological means, such as when creating channel, if with
Model shows channel, and channel separates with landform, to be fused together and require a high expenditure of energy.Present comparative maturity
Three-dimensional digital earth platform, come tissue three-dimensional digital earth data, shows engineering using engineering model using multistage landform image
Atural object, the means that hydraulic engineering atural object is not showed from bottom layer realization, it is difficult to meet hydraulic engineering application demand.
Summary of the invention
It is an object of that present invention to provide a kind of three-dimensional digital earth platform construction methods suitable for hydraulic engineering application.
To achieve the above object, the present invention takes following technical proposals:
Three-dimensional digital earth platform construction method of the present invention suitable for hydraulic engineering application, includes the following steps:
One, resource manager is constructed, for supporting data resource;
The data resource includes: 1, image data, the jpg format of tiff format, tile number comprising latitude coordinates;
2, terrain data, the raw format of tiff format, tile number comprising latitude coordinates;3, threedimensional model;4, vector marks;
In order to meet hydraulic engineering using the demand in terms of the expansibility to landform precision and landform, described ground figurate number
It is stored according to using dimensional topography compression algorithm, the dimensional topography compression algorithm includes:
A, terrain tile is divided: global terrain data being projected according to longitude and latitude, and is divided into the Eastern Hemisphere and the Western Hemisphere two
A root node;Each described root node is divided into 4 × 4 child nodes;
B, calculate deviant: the child node described in each includes 513 × 513 elevational points, calculates each institute first
The deviant for the elevational point stated, the i.e. practical height value of this child node subtract the height value obtained by its father node difference;
C, code storage is carried out to deviant: takes the minimum value and maximum value of the deviant of all elevational points of this child node,
Then the coding of each deviant carries out encoded radio B:B=(h that a byte is calculated with following formula0- hmin/ hmax -
hmin) × 255;
H in formula0For the deviant of elevational point, hminFor the minimum value of the deviant of all elevational points of this child node, hmaxFor
The maximum value of the deviant of all elevational points of this node;
When storage, the minimum value of all elevational points of this node and maximum value are stored first, then according to from a left side to
Right, sequence from top to bottom stores the coding of each elevational point one by one;
D, Huffman encoding compression is carried out to above-mentioned storing data;
Two, digital earth browser is constructed, to realize the rendering to the virtual digit earth;
The digital earth browser is supported cross-platform, it may be assumed that by developing different editions of the browser under different platform,
Share identical data resource format;The data resource format includes Windows, Linux, Mac, Web, Android, IOS;
Three, network resource server is constructed, is disposed by network, on the server by basic resource deployment, client
End passes through web browsing respective resources;Three-dimensional space data library is established, landform, the member of image, vector are stored in the database
Data, the request instruction sent according to client return to corresponding resource, it may be assumed that a, be packaged and comprehensive by image, terrain data
Close management, for being imported and exported, data copy, data update operation;B, using bottom-layer network interface;C, using dedicated number
According to transmission channel and encryption mechanism;
Four, water conservancy Scene Editor is constructed, for editing exploitation water conservancy three-dimensional scenic;
Establish the three-dimension GIS environment of digital management, client by the Scene Editor add wherein threedimensional model,
Vector marks object, or carries out GIS analysis, physically simulated calculation operation;
A, water conservancy terrain editor module is established, engineering landform is edited according to Hydraulic Engineering Design index;The work
Journey landform includes excavation, fill, builds channel;It is formed and the consistent water conservancy work of actual design index by high-precision engineering textures
Journey scene;
B, hydraulic engineering mark editor module is established, realization is labeled hydraulic engineering;The module is to call in mark first
Layer is infused, then can be marked and be required according to hydraulic engineering, local hydraulic engineering is labeled;
C, hydraulic engineering model generation module is established, for generating the regular hydraulic engineering of long range, engineering section;Pass through
Loft Line and engineering design section with elevation quickly generate linear hydraulic engineering, and are switched to by the hydraulic engineering model
Engineering landform constructs hydraulic engineering on the engineering topographic layer;
D, establish water model generation module, for generate different shape in scene can data-driven water model;It adopts
Means are generated with the water body of virtual reality, generate the water models such as channel, river, lake, the reservoir of parametrization.Pass through in performance
Parameter input can dynamic analog water body the water bodys physical feature such as water level, flow velocity, flow direction, color.
The invention has the advantages that providing hydraulic engineering editor's ring using the means of digital earth technology performance hydraulic engineering
Border can quickly plan true effect hydraulic engineering on three-dimensional platform.Landform technology is mixed by high-precision, is allowed based on excellent
The superhigh precision landform of change shows engineering, and the design parameter for such as providing channel produces the landform containing corresponding channel, and
Customized figure layer can be superimposed on satellite image, to realize the textures effect of higher precision, while using virtual reality
Water body expression means realize the analog functuion of true water flow not available for other three-dimension GISs.
Specific embodiment
Three-dimensional digital earth platform construction method of the present invention suitable for hydraulic engineering application, includes the following steps:
One, resource manager is constructed, for supporting data resource;
The data resource includes: 1, image data, the jpg format of tiff format, tile number comprising latitude coordinates;
2, terrain data, the raw format of tiff format, tile number comprising latitude coordinates;3, threedimensional model;4, vector marks;
In order to meet hydraulic engineering using the demand in terms of the expansibility to landform precision and landform, described ground figurate number
It is stored according to using dimensional topography compression algorithm, the dimensional topography compression algorithm includes:
A, terrain tile is divided: global terrain data being projected according to longitude and latitude, and is divided into the Eastern Hemisphere and the Western Hemisphere two
A root node;Each described root node is divided into 4 × 4 child nodes;
B, calculate deviant: the child node described in each includes 513 × 513 elevational points, calculates each institute first
The deviant for the elevational point stated, the i.e. practical height value of this child node subtract the height value obtained by its father node difference;
C, code storage is carried out to deviant: takes the minimum value and maximum value of the deviant of all elevational points of this child node,
Then the coding of each deviant carries out encoded radio B:B=(h that a byte is calculated with following formula0- hmin/ hmax -
hmin) × 255;
H in formula0For the deviant of elevational point, hminFor the minimum value of the deviant of all elevational points of this child node, hmaxFor
The maximum value of the deviant of all elevational points of this node;
When storage, the minimum value of all elevational points of this node and maximum value are stored first, then according to from a left side to
Right, sequence from top to bottom stores the coding of each elevational point one by one;
D, Huffman encoding compression is carried out to above-mentioned storing data;
By above-mentioned dimensional topography compression algorithm, global landform can be made to reach about 0.5 meter of resolution ratio, correspondingly, image
Compression algorithm be suitable for being compressed based on hardware-accelerated DXT format, loading performance can be obviously improved.
Two, digital earth browser is constructed, to realize the rendering to the virtual digit earth;
The digital earth browser is supported cross-platform, it may be assumed that by developing different editions of the browser under different platform,
Share identical data resource format;The data resource format includes Windows, Linux, Mac, Web, Android, IOS;
User can easily control camera lens by keyboard, mouse;
Three, network resource server is constructed, is disposed by network, on the server by basic resource deployment, client
End passes through web browsing respective resources;Three-dimensional space data library is established, landform, the member of image, vector are stored in the database
Data, the request instruction sent according to client return to corresponding resource, it may be assumed that a, be packaged and comprehensive by image, terrain data
Close management, for being imported and exported, data copy, data update operation;B, using bottom-layer network interface;C, using dedicated number
According to transmission channel and encryption mechanism;
Four, water conservancy Scene Editor is constructed, for editing water development three-dimensional scenic;
Establish the three-dimension GIS environment of digital management, client by the Scene Editor add wherein threedimensional model,
Vector marks object, or carries out GIS analysis, physically simulated calculation operation;
A, water conservancy terrain editor module is established, engineering landform is edited according to engineering design index in water;The work
Journey landform includes excavation, fill, builds channel;It is formed and the consistent water conservancy work of actual design index by high-precision engineering textures
Journey scene;
B, hydraulic engineering mark editor module is established, realization is labeled hydraulic engineering;The module is to call in mark first
Layer is infused, then can be marked and be required according to hydraulic engineering, local hydraulic engineering is labeled;
C, hydraulic engineering model generation module is established, for generating the regular hydraulic engineering of long range, engineering section;Pass through
Loft Line and engineering design section with elevation quickly generate linear hydraulic engineering, and are switched to by the hydraulic engineering model
Engineering landform constructs hydraulic engineering on the engineering topographic layer;
D, establish water model generation module, for generate different shape in scene can data-driven water model;It adopts
Means are generated with the water body of virtual reality, generate the water models such as channel, river, lake, the reservoir of parametrization;Pass through in performance
Parameter input can dynamic analog water body the water bodys physical feature such as water level, flow velocity, flow direction, color.
After the completion of scene editor, a document scene is issued as by Web Publishing server, it can be by under different platform
Browser open.