Be suitable to the three-dimensional digital earth platform construction method of hydraulic engineering application
Technical field
The present invention relates to three-dimensional digital earth platform construction method, especially relate to be suitable to the three-dimensional digital earth platform construction method of hydraulic engineering application.
Background technology
At present, three-dimension GIS (the i.e. Geographic Information such as three-dimensional geographic information system such as Google Earth, Skyline
System, translator of Chinese is GIS-Geographic Information System) software, generally use standard quad-tree structure to realize landform, the management of image and loading, and realize the structure of Complete three-dimensional scene by adding threedimensional model.This technological means is simply efficient, can quickly create the such as three-dimensional scenic such as digital city, Digital Campus.But in water conservancy is applied, process, analytical calculation to landform require the highest, use above-mentioned technological means to carry out expression effect poor, such as when creating channel, if showing channel with model, channel separates with landform, will merge and require a high expenditure of energy.The three-dimensional digital earth platform of comparative maturity uses multistage landform image to carry out tissue three-dimensional digital earth data now, engineering model is used to show engineering atural object, the means from bottom layer realization, hydraulic engineering atural object not showed, it is difficult to meet hydraulic engineering application demand.
Summary of the invention
Present invention aim at providing a kind of three-dimensional digital earth platform construction method being suitable to hydraulic engineering application.
For achieving the above object, the present invention takes following technical proposals:
The three-dimensional digital earth platform construction method being suitable to hydraulic engineering application of the present invention, comprises the steps:
One, build explorer, be used for supporting data resource;
Described data resource includes: 1, image data, comprises the jpg form of the tiff form of latitude coordinates, tile number;2, terrain data, comprises the raw form of the tiff form of latitude coordinates, tile number;3, threedimensional model;4, vector mark;
Applying the demand in terms of the expansibility of landform precision and landform to meet hydraulic engineering, described terrain data uses dimensional topography compression algorithm to store, and described dimensional topography compression algorithm includes:
A, terrain tile are split: globally graphic data will project according to longitude and latitude, and be divided into the Eastern Hemisphere and two, the Western Hemisphere root node;Each described root node is divided into 4 × 4 child nodes;
B, calculating deviant: each described child node comprises 513 × 513 elevational points, and the actual height value first calculating the deviant of each described elevational point, i.e. this child node deducts the height value obtained by its father node difference;
C, deviant is carried out code storage: take minima and the maximum of the deviant of all elevational points of this child node, then the coding of each deviant carries out being calculated the encoded radio B:B=(h of a byte with following formula0- hmin/
hmax -hmin) × 255;
H in formula0For the deviant of elevational point, hminFor the minima of the deviant of all elevational points of this child node, hmaxMaximum for the deviant of all elevational points of this node;
During storage, first minima and the maximum of all for this node elevational points are stored, then according to the coding of each elevational point is stored by order from left to right, from top to bottom one by one;
D, above-mentioned storage data are carried out Huffman encoding compression;
Two, digital earth browser is built, to realize the virtual digit earth is rendered;
Described digital earth browser is supported cross-platform, it may be assumed that by exploitation browser different editions under different platform, share identical data resource form;Described data resource form includes Windows, Linux, Mac, Web, Android, IOS;
Three, building network resource server, disposed by network, disposed on the server by basic resource, client passes through network browsing respective resources;Set up three-dimensional space data storehouse, landform, image, the metadata of vector is stored in this data base, corresponding resource is returned according to the request instruction that client is sent, that is: a, carry out packing and integrated management by image, terrain data, be used for carrying out importing and exporting, data copy, data update operation;B, use bottom-layer network interface;C, use dedicated data transmission passage and encryption mechanism;
Four, build water conservancy Scene Editor, be used for editing exploitation water conservancy three-dimensional scenic;
Setting up the three-dimension GIS environment of digital management, client adds threedimensional model, vector mark object wherein by described Scene Editor, or carries out GIS analysis, physically simulated calculation operation;
A, set up water conservancy terrain editor module, according to Hydraulic Engineering Design index, engineering landform is edited;Described engineering landform includes excavation, fill, builds channel;The hydraulic engineering scene consistent with actual design index is formed by high accuracy engineering pinup picture;
B, set up hydraulic engineering mark editor module, it is achieved hydraulic engineering is labeled;First this module is to call in mark layer, then can mark requirement according to hydraulic engineering, be labeled local hydraulic engineering;
C, set up hydraulic engineering model generation module, for generating the hydraulic engineering that distance, engineering section are regular;By quickly generating wire hydraulic engineering with the Loft Line of elevation and engineering design section, and transfer engineering landform to by described hydraulic engineering model, described engineering topographic layer builds hydraulic engineering;
D, set up water model generation module, can the water model of data-driven for generating different shape in scene;The water body using virtual reality generates means, generates the water models such as parameterized channel, river course, lake, reservoir.Can the water body physical feature such as the water level of dynamic analog water body, flow velocity, the flow direction, color by parameter input in performance.
The invention has the advantages that the means utilizing digital earth technology performance hydraulic engineering, it is provided that hydraulic engineering editing environment, quickly can plan true effect hydraulic engineering on three-dimensional platform.By high accuracy mixing landform technology, allow based on the superhigh precision landform performance engineering optimized, the landform containing corresponding channel can be generated as provided the design parameter of channel, and can on satellite image superposition self-defining image layer, thus realize the pinup picture effect of higher precision, use the water body expression means of virtual reality to achieve the analog functuion of the true current not available for other three-dimension GIS simultaneously.
Detailed description of the invention
The three-dimensional digital earth platform construction method being suitable to hydraulic engineering application of the present invention, comprises the steps:
One, build explorer, be used for supporting data resource;
Described data resource includes: 1, image data, comprises the jpg form of the tiff form of latitude coordinates, tile number;2, terrain data, comprises the raw form of the tiff form of latitude coordinates, tile number;3, threedimensional model;4, vector mark;
Applying the demand in terms of the expansibility of landform precision and landform to meet hydraulic engineering, described terrain data uses dimensional topography compression algorithm to store, and described dimensional topography compression algorithm includes:
A, terrain tile are split: globally graphic data will project according to longitude and latitude, and be divided into the Eastern Hemisphere and two, the Western Hemisphere root node;Each described root node is divided into 4 × 4 child nodes;
B, calculating deviant: each described child node comprises 513 × 513 elevational points, and the actual height value first calculating the deviant of each described elevational point, i.e. this child node deducts the height value obtained by its father node difference;
C, deviant is carried out code storage: take minima and the maximum of the deviant of all elevational points of this child node, then the coding of each deviant carries out being calculated the encoded radio B:B=(h of a byte with following formula0- hmin/
hmax -hmin) × 255;
H in formula0For the deviant of elevational point, hminFor the minima of the deviant of all elevational points of this child node, hmaxMaximum for the deviant of all elevational points of this node;
During storage, first minima and the maximum of all for this node elevational points are stored, then according to the coding of each elevational point is stored by order from left to right, from top to bottom one by one;
D, above-mentioned storage data are carried out Huffman encoding compression;
By above-mentioned dimensional topography compression algorithm, can make the resolution that whole world landform reaches about 0.5 meter, accordingly, the compression algorithm of image is compressed based on being suitable for hardware-accelerated DXT form, can be obviously improved loading performance.
Two, digital earth browser is built, to realize the virtual digit earth is rendered;
Described digital earth browser is supported cross-platform, it may be assumed that by exploitation browser different editions under different platform, share identical data resource form;Described data resource form includes Windows, Linux, Mac, Web, Android, IOS;Camera lens can be controlled easily by user by keyboard, mouse;
Three, building network resource server, disposed by network, disposed on the server by basic resource, client passes through network browsing respective resources;Set up three-dimensional space data storehouse, landform, image, the metadata of vector is stored in this data base, corresponding resource is returned according to the request instruction that client is sent, that is: a, carry out packing and integrated management by image, terrain data, be used for carrying out importing and exporting, data copy, data update operation;B, use bottom-layer network interface;C, use dedicated data transmission passage and encryption mechanism;
Four, build water conservancy Scene Editor, be used for editing water development three-dimensional scenic;
Setting up the three-dimension GIS environment of digital management, client adds threedimensional model, vector mark object wherein by described Scene Editor, or carries out GIS analysis, physically simulated calculation operation;
A, set up water conservancy terrain editor module, according to engineering design index in water, engineering landform is edited;Described engineering landform includes excavation, fill, builds channel;The hydraulic engineering scene consistent with actual design index is formed by high accuracy engineering pinup picture;
B, set up hydraulic engineering mark editor module, it is achieved hydraulic engineering is labeled;First this module is to call in mark layer, then can mark requirement according to hydraulic engineering, be labeled local hydraulic engineering;
C, set up hydraulic engineering model generation module, for generating the hydraulic engineering that distance, engineering section are regular;By quickly generating wire hydraulic engineering with the Loft Line of elevation and engineering design section, and transfer engineering landform to by described hydraulic engineering model, described engineering topographic layer builds hydraulic engineering;
D, set up water model generation module, can the water model of data-driven for generating different shape in scene;The water body using virtual reality generates means, generates the water models such as parameterized channel, river course, lake, reservoir;Can the water body physical feature such as the water level of dynamic analog water body, flow velocity, the flow direction, color by parameter input in performance.
After scene editor completes, it is issued as a document scene by Web Publishing server, can be opened by the browser under different platform.