CN105760581B - A kind of valley Renovation and planning emulation mode and system based on OSG - Google Patents

A kind of valley Renovation and planning emulation mode and system based on OSG Download PDF

Info

Publication number
CN105760581B
CN105760581B CN201610065298.3A CN201610065298A CN105760581B CN 105760581 B CN105760581 B CN 105760581B CN 201610065298 A CN201610065298 A CN 201610065298A CN 105760581 B CN105760581 B CN 105760581B
Authority
CN
China
Prior art keywords
valley
osg
point
slope
model
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
CN201610065298.3A
Other languages
Chinese (zh)
Other versions
CN105760581A (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.)
Institute of Geographic Sciences and Natural Resources of CAS
Original Assignee
Institute of Geographic Sciences and Natural Resources of CAS
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 Institute of Geographic Sciences and Natural Resources of CAS filed Critical Institute of Geographic Sciences and Natural Resources of CAS
Priority to CN201610065298.3A priority Critical patent/CN105760581B/en
Publication of CN105760581A publication Critical patent/CN105760581A/en
Application granted granted Critical
Publication of CN105760581B publication Critical patent/CN105760581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/36Circuit design at the analogue level
    • G06F30/367Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Computer Graphics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention provides a kind of valley Renovation and planning emulation mode and system based on OSG.The method of the present invention includes the following steps:Build the three dimension channel watershed unit model based on digital complex demodulation, the layering of valley soil landforms and geomorphic feature line are extracted, identified and visual simulation, to valley landform two dimensional cross-section, the Dynamic Extraction of D profile, real-time rendering and rendering, prepartion of land rendering is carried out by the earth volume that DEM is calculated, multiple kinds of crops and plant model, basic farmland farming model and job facilities model are established, dynamic load, replacement, movement and the deletion of various models are controlled by human-computer interaction mechanism.The present invention efficiently solves extraction, identification and the visual simulation to valley critical terrain feature feature, the layering of soil landforms, and extraction, the drafting of topographic profile, the full-scale condition for presenting valley physical relief provides the visual decision support method that valley Renovation and planning process carries out man-machine coordination design.

Description

A kind of valley Renovation and planning emulation mode and system based on OSG
Technical field
The invention belongs to agricultural projects to emulate field, and in particular to a kind of valley Renovation and planning emulation based on OSG Method and system.
Background technology
Valley training works are a kind of important forms of consolidation, are having for newly-increased farmland and requisition-compensation balance Effect means, and flood control subtract important irrigation and water conservancy measure that is husky, conserving water and soil.Due to natural conditions, land current situation and society's warp The combined influence for developing water equality factor of helping, the input and risk of raceway groove training works construction are also different, how to evade regulation The high risk of engineering simultaneously promotes soil sustainable utilization, is scientifically planned, formulates feasible valley regulation suitability Scheme is vital.
In recent years, with the development of computer graphical processing ability and 3-D Visualization Simulation technology, complicated natural phenomena It makes great progress with the real-time realistic modeling technology of object, is provided more for watershed management, planning and flood control and disaster reduction The demand of intuitive decision support, watershed 3-D Visualization Simulation is more and more prominent.
Existing basin scene simulation floods evolution process primarily directed to river basin flood is simulated, to flood phenomenon and Rule is analyzed and researched, and flood decision is effectively facilitated.And valley training works have run through and " are with raceway groove small watershed The main line of basic unit, ditch, level ground, beam, loess hills, slope comprehensive treatment, plant measures, engineering measure, the configuration of tillage control measure science ", because This is needed during valley regulation by slope/ditch geomorphic feature factor, (soil chronologically sinks soil layering characteristic factor Layered characteristic is presented in product, and the soil erodibility of different layers is different, and stability is also different, and regulation process needs to consider soil Stability) and hypsography variation characteristic factor combine jointly, could completely reflect the natural conditions of valley, especially The landforms that it is larger to landform fluctuation ratio, variational regularity is poor need to carry out prepartion of land design.
And current valley regulation expert during regulation needs to be grasped ARCGIS professional softwares to geomorphic feature The method extracted, but extraction operation can only obtain a type of geomorphic feature every time, and showed with planar region, It also needs to manually go to recognize;Regulation expert also needs to use the professional softwares such as southern CASS artificial again in raceway groove prepartion of land design The design depth of fill goes to calculate earth volume, can not be attached to geomorphic feature in prepartion of land design.
Therefore existing basin three-dimensional artificial cannot be satisfied the demand of valley Renovation and planning visualization aid decision.
Invention content
The valley Renovation and planning emulation based on OSG (OpenSceneGraph) that the purpose of the present invention is to provide a kind of Method and system build the three dimension channel watershed unit mould based on digital elevation model using the powerful three-dimensional rendering abilities of OSG Type carries out prepartion of land to valley topographic feature extraction, visual simulation and profile analysis by the earth volume that DEM is calculated It renders, provides a valley physical relief scene intuitive, true to nature for land control domain expert, improve Cognitive Effects, By adding the three-dimensional ground object model of multiple kinds of crops model, basic farmland model and job facilities, realizes and support that " plant is arranged Apply, engineering measure, tillage control measure science configuration " dynamic interaction design process, for policymaker's science renovate valley engineering Aid decision is provided to support.
In order to realize above-mentioned target, the technical solution adopted by the present invention:
A kind of valley Renovation and planning emulation mode based on OSG, which is characterized in that include the following steps:
Step 1), valley three-dimensional terrain model of the structure based on digital complex demodulation;
Step 2) divides valley soil landforms according to dem data constructed valley three-dimensional terrain model Layer feature extract, identify and layer tint render;
Step 3), the geomorphic feature that constructed valley three-dimensional terrain model develops landforms according to dem data It extracts, identify and coloring rendering with leg wire of slope along line --- ditch;
Step 4) carries out the dynamic of landform two dimensional cross-section to constructed valley three-dimensional terrain model according to dem data State is extracted and real-time rendering;
Step 5), the dynamic for carrying out three-dimensional cross section according to dem data to constructed valley three-dimensional terrain model Extraction and rendering;
Step 6) carries out Earthwork Calculation and soil to constructed valley three-dimensional terrain model according to dem data Smooth simulation renders;
Step 7), the topography and geomorphology according to valley, the multiple kinds of crops and plant model of the suitable scale plantation of foundation, Basic farmland farming model and job facilities model;
Step 8), the finger that a variety of models that step 7 is established are loaded into constructed valley three-dimensional terrain model During positioning is set.
Further, the method further includes:The valley three-dimensional terrain model established to step 1 is smoothly located Reason.
Further, the step 1) includes:The terrain data of DWG formatted datas is obtained, and by original DWG format numbers Dem data is generated according to using the raster interpolation method of ARCGIS;
Dem data is split, the dem data of export Block-terrain is sampled and is converted into cross-platform readable txt texts This document creates the pixel picture that size is ranks product, uses the pixel in pixel picture according to the line number and columns of DEM Gray value stores the height value of landform dem data, and raceway groove stream is established using the self-defined scene creation method of the solid object of OSG The three-dimensional terrain model in domain.
Further, the step 8) includes:Model is loaded into institute's structure using the method for self-defined ray detection intersection point In the valley three-dimensional terrain model built.
Further, the step 3) includes:
3.1) a vertex information Array for structural body is defined, for storing obtained by dem data height value and follow-up calculating Parameter value;
3.2) gradient, the slope change of each point are calculated separately according to the elevational point stored in vertex information Array for structural body Rate traverses change of slope, finds out change of slope local maximum point, and it is positive form or negative ground to calculate each point position Shape,
3.3) gradient for traversing all the points, the point that the gradient is less than to predetermined threshold is set to along non-ditch or non-leg wire of slope point; It is more than the point of predetermined threshold to the gradient, the point of positive form where it is determined as point along ditch, the point of negative land form is determined as slope foot Line point,
3.4) to along ditch, leg wire of slope formed broadband position carry out micronization processes, ultimately form only there are one grid it is wide Along the ditch of degree, leg wire of slope;
3.5) to along ditch, leg wire of slope position vertex extract and traverse all DEM elevational points, along ditch Data are then pressed into bank line geometry body object vertex array by point, and data are then pressed into leg wire of slope solid if leg wire of slope point In object vertex array, then two solid objects are added to corresponding node, utilize the self-defined drafting of OSG solid objects Method is to along the ditch of identification and leg wire of slope carries out coloring rendering.
Further, the step 4) includes:
Mouse clicks any position in valley three-dimensional terrain model scene, using the side of self-defined ray detection intersection point The screen two-dimensional coordinate of the intersection point got is carried out three-dimensional coordinate conversion to method and transformation by reciprocal direction obtains the initial three-dimensional of the intersection point Coordinate traverses all dem datas identical with the intersection point X-coordinate value, extracts the Y coordinate and Z coordinate (elevation) of these dem datas And value of slope, window is illustrated in two dimensional terrain section by the calculating and plotting of self-defined scaling method.
Further, the step 5) includes:
Mouse clicks any position in valley three-dimensional terrain model scene, using the side of self-defined ray detection intersection point The screen two-dimensional coordinate of the intersection point got is carried out the three-dimensional coordinate that three-dimensional coordinate is converted to the intersection point by method, and traversal is all Elevational point of the Y coordinate of dem data height value, extraction and the intersection point in predetermined value, is painted using OSG solid objects are self-defined Method processed carries out coloring rendering to the elevational point of extraction and obtains three-dimensional cross section.
Further, the step 6) includes:
The average elevation that earth volume is acquired to the leg wire of slope point set that step 4 obtains, will be in valley three-dimensional terrain model The height value of DEM be all set to average elevation, utilize the self-defined earthwork rendering intent of the solid object of OSG to complete earth fill Rendering.
Further, the step 2) includes:
The DEM of the distributed acquisition valley different soils layer chronologically deposited according to different soils layer is layered section, profit With the vertex shader and piece member tinter custom hierarchical rendering intent of OSG complete extraction to soil landforms layered characteristic and Layer tint renders.
On the other hand, it is imitative to provide a kind of valley Renovation and planning based on OSG for executing the method by the present invention True system, which is characterized in that the system comprises:Emulation module, model construction module, data memory module, data store mould Block is for storing basic data;Model construction module is for building all kinds of crops, plant and farmland, job facilities model; The emulation module be used for the geomorphic feature of three-dimensional terrain model, soil landforms layered characteristic and topographic profile, earth volume into Row extraction, identification and calculating simultaneously carry out emulation rendering by OSG engines.In the above-mentioned technical proposal of the present invention, by smooth Processing, it is lofty can to eliminate the landform caused by individual data so that terrain information is more acurrate.
The present invention is by means of virtual reality technology, the layering of raceway groove small watershed soil landforms and landforms development to that need to renovate Critical terrain feature feature extracts, visual simulation and topographic profile are analyzed, and passes through the earth volume that DEM is calculated and carries out prepartion of land wash with watercolours It is man-machine dynamic to realize that the valley Renovation and planning for integrating plant measures, engineering measure and tillage control measure carries out in the process for dye The collaborative design of state interaction formulates valley regulation suitability scheme to science and provides a kind of decision support of visual simulating Method.
The present invention is unique in that can simultaneously and automatically extract slope/ditch geomorphic feature, soil layering feature and landform rises Variation characteristic, and the earth volume designed according to landforms feature calculation prepartion of land are lied prostrate, finally by slope/ditch geomorphic feature, soil point Layer feature, hypsography variation characteristic (section) and prepartion of land process carry out 3-D Visualization Simulation, provide intuitive decision It supports.
Description of the drawings
Fig. 1 is the flow diagram of the valley Renovation and planning emulation mode provided by the invention based on OSG;
The flow that Fig. 2 is in the method for the present invention along geomorphic feature line-ditch, the extraction of leg wire of slope, identification are rendered with emulation Schematic diagram;
Fig. 3 is that mouse is converted to emulation in the position coordinates of screen by ray detection intersection method in the method for the present invention The flow diagram of the corresponding three-dimensional coordinate of scene;
Fig. 4 is the structural schematic diagram of the valley Renovation and planning analogue system provided by the invention based on OSG.
Specific implementation mode
Technical scheme of the present invention is described in detail in conjunction with attached drawing.
Embodiment 1
The valley Renovation and planning emulation mode based on OSG is introduced in the present embodiment.
As shown in Figure 1, this method includes following nine steps.
1, the three-dimensional terrain model of raceway groove small watershed is established, specially:
In the present embodiment, it is CAD data to build initial data used by three-dimensional terrain model, but CAD data is three Inadequate lifelike image when dimension simulation, therefore the present invention processes it.First, using the raster interpolation method pair of ArcGIS DWG format topographic maps original CAD are split, sample and generate digital elevation model (DEM, i.e. Digital Elevation Model) data are exported the dem data of Block-terrain and are preserved with dbf formats, and dbf formatted data files are converted into across flat The readable txt formatted files of platform obtain the line number and columns of the dem data of Block-terrain from txt file;
Secondly, the size of three-dimensional terrain model in Visual Scene is defined (in original altitude data x, y, z all directions The size in section), scaled each vertex height value (by former height value maximin, it is on the scene to obtain unit height value Size in scape), pixel picture is created, each height value after the corresponding ranks storage of regular grid data is reduced is pressed in pixel, Newly-built 2D texture properties objects, pixel picture is associated in the texture properties object;Solid object is established, number of vertex is set Group, vertical array store the row, column coordinate on each vertex, i.e. two-dimensional coordinate, and the interrelational form that vertex is arranged is the GL_ of geometric graphic element QUAD_STRIP types;The texture coordinate of 2D texture properties objects is set using vertex shader, by the texture coordinate to 2D lines Reason attributes object is sampled, and the height value that sampling obtains is assigned to the Z coordinate of vertex position, vertex shader is associated with Corresponding stateset (state set),
Finally, stateset and solid object are associated on the same leaf node of Visual Scene, are drawn using OSG Hold up the three-dimensional terrain model for generating Gullied Rolling Loess Region.
2, the three-dimensional terrain model of raceway groove small watershed is smoothed, specially:
The altitude data stored in pixel image is traversed using 3 × 3 spatial mean value filters, centered on a height value Point, to three rows three row centered on central point, totally 9 height values are averaged, then average value is assigned to this 9 points, to picture Sketch map picture presses row, column, is traversed carry out operation of averaging successively from left to right, from top to bottom, to reach to each high The smoothing processing of journey topographic coordinate point, it is lofty (or spine) to eliminate the landform caused by individual data.
3, valley three-dimensional terrain model carries valley soil landforms layered characteristic according to dem data Take, identify with layer tint render, specially:
By taking the loess geomorphy of loess plateau as an example, the DEM for obtaining valley difference loess is layered section, is formed according to dividing Level section, the color value of different layerings is defined using vertex shader, color type is defined as variable type, utilize piece member Opposite vertexes elevation coordinate is judged in tinter, and color is passed to piece member tinter, makes to fall the vertex in different levels section Different colors is rendered, completes to extract and layer tint rendering soil landforms layered characteristic.
4, critical terrain feature characteristic curve --- the bank that valley three-dimensional terrain model develops landforms according to dem data Line and leg wire of slope are extracted, are identified and coloring rendering.
As shown in Fig. 2, the detailed process of the step is:
(1) a vertex information Array for structural body is defined, for storing dem data height value and follow-up calculating gained just Negative, the gradient, change of slope, local maximum point, ditch slope etc. are completed along ditch, the place of the preceding DEM altitude datas of leg wire of slope point extraction Reason;
Vertex information structure can be defined as follows:
(2) gradient, the change of slope of each point are calculated separately according to the elevational point stored in structure, the traversal gradient becomes Rate, finds out change of slope local maximum point, calculate each point position be just or negative land form,
(3) it is analyzed with leg wire of slope geomorphic feature according to along ditch, there are one range of grade near leg wire of slope along ditch, if Grade is less than a certain threshold value, traverses the gradient of all the points, and the point that the gradient is less than to threshold value is set to along non-ditch or non-leg wire of slope, I.e. " channel " is set to 0, and it is point along ditch to be more than the point of predetermined threshold according to (or negative) landform determination positive where it to the gradient (or leg wire of slope point);
(4) obtain ditch along, leg wire of slope point is constituted on local location along ditch and the broadband of leg wire of slope (front walk Suddenly along the ditch obtained and leg wire of slope has pseudo- point (forming broadband), so carrying out puppet with thinning algorithm again), use is improved Hilditch thinning algorithms to along ditch, the broadband position that leg wire of slope is formed carry out micronization processes, ultimately form only there are one net The characteristic point of lattice width,
(5) to along ditch, leg wire of slope position vertex extract and traverse all DEM elevational points, along ditch Data are then pressed into bank line geometry body object vertex array by point, and data are then pressed into leg wire of slope solid if leg wire of slope point In object vertex array, then two solid objects are added to corresponding node, call OSG to solid objects draw function To along the ditch of identification and leg wire of slope carries out coloring rendering.
5, mouse clicks any position in the valley three-dimensional terrain model scene established of step 1, using making by oneself The intersection point screen two-dimensional coordinate got progress three-dimensional coordinate is converted to the three of the intersection point by the method for adopted ray detection intersection point The screen coordinate got is carried out three-dimensional coordinate conversion and reverse matrixing obtains original dem data (in model by dimension coordinate Three-dimensional coordinate be by transformation, be really to landform profile drawing, it is necessary to get original dem data), according to original Dem data carries out the Dynamic Extraction of landform two dimensional cross-section data, real-time rendering.All dem data height values are traversed, extracts and is somebody's turn to do The Y coordinate of intersection point in some value (half of mesh spacing) elevational point, utilize the self-defined method for drafting of OSG solid objects To the elevational point of extraction carry out coloring render obtain three-dimensional cross section (three-dimensional cross section be extraction in three-dimensional terrain model with It has been shown that, so original dem data need not be obtained).
Wherein, mesh spacing half refers to:When obtaining three-dimensional coordinate on model by screen coordinate, coordinate may be Dem data between points, can obtain neighbouring DEM points by this method.
6, mouse clicks any position in the valley three-dimensional terrain model scene that step 1 is established, and will get Screen coordinate carry out three-dimensional coordinate and be converted to dem data, extraction, the wash with watercolours of three-dimensional cross-sectional face data are carried out according to dem data Dye,
7, Earthwork Calculation and soil are carried out according to dem data to the valley three-dimensional terrain model constructed by step 1 Smooth simulation renders that (circular is:The volume of the part folded between design plane and threedimensional model is sought, i.e., will At a square, the calculating of earth volume it is exactly to calculate the sum of the volume of square at each point from the point of view of each of dem data.Respectively Point place volume is calculated as, square area be multiplied by elevational point in average elevation (design plane height) and model height it Difference is finally accumulated, respectively obtain fill out, amount of excavation);
8, a variety of farmings for being suitble to valley land suitability are established using modeling softwares such as 3DSmax and PhotoShop Object model, basic farmland model sum aggregate water cellar job facilities model, and exported with osg formats, it avoids because model face number is more And texture (being possible to lose texture using extended formatting such as ive formats) is lost when osgEXP is converted.
9, as shown in figure 3, a variety of models of step 7 are passed through human-computer interaction by the method using self-defined ray detection intersection point Mode is loaded into the random designated position for the model of place that above-mentioned steps are established, and is realized and is supported that " plant measures, engineering are arranged Apply, tillage control measure science configuration " man-machine coordination regulation design decision process, specially:
Mouse is moved to the position for needing stress model, being moved to screen position in mouse pointer is arranged one The ray of normal to screen captures this ray intersection in threedimensional model scene in real time by self-defined mousePointVec functions Intersection point, to by mouse in the two-dimensional coordinate of screen position is converted to three-dimensional scenic corresponding three-dimensional scenic coordinate, obtain Three-dimensional coordinate defines position and the size of matrix object setting model, according to the inversely prroportional relationship tune of model size and coordinate points Integral mould coordinate, finally by treated, model is added to by matrix conversion method in three-dimensional scenic designated position.
Embodiment 2
In the present embodiment, the present invention provides a kind of system for executing the above method.As shown in figure 4, present invention profit The system integration is carried out with cross-platform C++ graphic user interfaces library QT, realizes real time interactive operation, dynamic tailor and rendering.This is System specifically includes:Functional layer, model layer, data Layer.Wherein, data Layer stores basic data, including:Digital elevation model number According to the result of calculation and model data of, geomorphic feature data and topographic profile analysis;Model layer storage modeling software is created All kinds of crops, plant and farmland, job facilities model;Functional layer is the nucleus module of analogue system, to dimensional topography The extraction such as geomorphic feature of model identifies and calculates and rendered by OSG engines.
The undocumented public common sense for partly belonging to this field of the present invention.
The present invention is dexterously converted into digital elevation data (dem data) by the terrain data of CAD, by ARCGIS, and Generate three-dimensional terrain model, using 3DMAX technologies carry out the models such as multiple kinds of crops and plant modeling, using OSG technologies into Row analogue simulation not only ensure that the actual visual of terrain simulation, but also the emulation that can be planned in simulation process, use Convenient, effect is true to nature, is that the prior art is unable to reach.The present invention is dexterously by several different graph and image processing technologies Combine with emulation technology, be applied in agricultural projects field, breach the limitation of original ARCGIS technologies, emulation is trueer It is real, provide preferably decision support for policymaker.
Although the principle of the present invention is described in detail above in conjunction with the preferred embodiment of the present invention, this field skill Art personnel are it should be understood that above-described embodiment is only the explanation to the exemplary implementation of the present invention, not to present invention packet Restriction containing range.Details in embodiment is simultaneously not meant to limit the scope of the invention, without departing substantially from the present invention spirit and In the case of range, any equivalent transformation, simple replacement based on technical solution of the present invention etc. obviously changes, and all falls within Within the scope of the present invention.

Claims (10)

1. a kind of valley Renovation and planning emulation mode based on OSG, which is characterized in that include the following steps:
Step 1), valley three-dimensional terrain model of the structure based on digital complex demodulation;
Step 2) is layered spy according to dem data to constructed valley three-dimensional terrain model to valley soil landforms Sign extract, identify and layer tint render;
Step 3), the geomorphic feature that constructed valley three-dimensional terrain model develops landforms according to dem data It extracts, identify and coloring rendering with leg wire of slope along line --- ditch;
Step 4), the dynamic for carrying out landform two dimensional cross-section according to dem data to constructed valley three-dimensional terrain model carry It takes and real-time rendering;
Step 5), the Dynamic Extraction for carrying out three-dimensional cross section according to dem data to constructed valley three-dimensional terrain model And rendering;
Step 6) carries out Earthwork Calculation and prepartion of land to constructed valley three-dimensional terrain model according to dem data Simulation render;
Step 7), the topography and geomorphology according to valley establish the multiple kinds of crops for being suitble to scale plantation and plant model, basic Farming operation model and job facilities model;
Step 8), the specific bit that a variety of models that step 7 is established are loaded into constructed valley three-dimensional terrain model In setting.
2. the valley Renovation and planning emulation mode according to claim 1 based on OSG, which is characterized in that
The method further includes:The valley three-dimensional terrain model established to step 1 is smoothed.
3. the valley Renovation and planning emulation mode according to claim 1 based on OSG, which is characterized in that the step It is rapid 1) to include:The terrain data of original DWG formatted datas is obtained, and acquired original DWG formatted datas are utilized into ARCGIS Raster interpolation method generate dem data;
Dem data is split, the dem data of export Block-terrain is sampled and is converted into cross-platform readable txt text texts Part creates the pixel picture that size is ranks product, uses the pixel grey scale in pixel picture according to the line number and columns of DEM The height value of value storage landform dem data, valley is established using the self-defined scene creation method of the solid object of OSG Three-dimensional terrain model.
4. the valley Renovation and planning emulation mode according to claim 1 based on OSG, which is characterized in that the step It is rapid 8) to include:Model is loaded into constructed valley three-dimensional terrain model using the method for self-defined ray detection intersection point In.
5. the valley Renovation and planning emulation mode according to claim 1 based on OSG, which is characterized in that the step It is rapid 3) to include:
3.1) a vertex information Array for structural body is defined, for storing dem data height value and the follow-up parameter for calculating gained Value;
3.2) gradient, the change of slope of each point are calculated separately according to the elevational point stored in vertex information Array for structural body, Change of slope is traversed, finds out change of slope local maximum point, it is positive form or negative land form to calculate each point position,
3.3) gradient for traversing all the points, the point that the gradient is less than to predetermined threshold is set to along non-ditch or non-leg wire of slope point;To slope The point of positive form where it is determined as point along ditch by degree more than the point of predetermined threshold, and the point of negative land form is determined as leg wire of slope point,
3.4) to along ditch, broadband position that leg wire of slope is formed carry out micronization processes, ultimately form only there are one mesh width Along ditch, leg wire of slope;
3.5) to along ditch, leg wire of slope position vertex extract and traverse all DEM elevational points, put then if along ditch Data are pressed into bank line geometry body object vertex array, data are then pressed into leg wire of slope solid object if leg wire of slope point In vertical array, then two solid objects are added to corresponding node, utilize the self-defined method for drafting of OSG solid objects To along the ditch of identification and leg wire of slope carries out coloring rendering.
6. the valley Renovation and planning emulation mode according to claim 1 based on OSG, which is characterized in that the step It is rapid 4) to include:
Mouse clicks any position in valley three-dimensional terrain model scene, will using the method for self-defined ray detection intersection point The screen two-dimensional coordinate of the intersection point got carries out three-dimensional coordinate conversion and transformation by reciprocal direction obtains the initial three-dimensional coordinate of the intersection point, Identical with the intersection point X-coordinate value all dem datas of traversal extract the Y coordinate and Z coordinate and value of slope of these dem datas, Illustrate window in two dimensional terrain section by the calculating and plotting of self-defined scaling method.
7. the valley Renovation and planning emulation mode according to claim 1 based on OSG, which is characterized in that the step It is rapid 5) to include:
Mouse clicks any position in valley three-dimensional terrain model scene, will using the method for self-defined ray detection intersection point The screen two-dimensional coordinate of the intersection point got carries out the three-dimensional coordinate that three-dimensional coordinate is converted to the intersection point, traverses all DEM numbers According to height value, the elevational point in predetermined value with the Y coordinate of the intersection point is extracted, the self-defined drafting side of OSG solid objects is utilized Method carries out coloring rendering to the elevational point of extraction and obtains three-dimensional cross section.
8. the valley Renovation and planning emulation mode according to claim 5 based on OSG, which is characterized in that the step It is rapid 6) to include:
The set of the leg wire of slope point obtained using step 3 acquires the average elevation of earth volume, by valley three-dimensional terrain model In the height value of DEM be all set to average elevation, banketed using the self-defined earthwork rendering intent completion of the solid object of OSG The rendering of side.
9. the valley Renovation and planning emulation mode according to claim 1 based on OSG, which is characterized in that the step It is rapid 2) to include:
The DEM of the distributed acquisition valley different soils layer chronologically deposited according to different soils layer is layered section, utilizes OSG Vertex shader and piece member tinter custom hierarchical rendering intent complete extraction and layering to soil landforms layered characteristic Coloring renders.
10. a kind of require the valley Renovation and planning based on OSG of any one of 1-9 the methods imitative for perform claim True system, which is characterized in that the system comprises:Emulation module, model construction module, data memory module, data store mould Block is for storing basic data;Model construction module is for building all kinds of crops, plant and farmland, job facilities model; The emulation module be used for the geomorphic feature of three-dimensional terrain model, soil landforms layered characteristic and topographic profile, earth volume into Row extraction, identification and calculating simultaneously carry out emulation rendering by OSG engines.
CN201610065298.3A 2016-01-29 2016-01-29 A kind of valley Renovation and planning emulation mode and system based on OSG Active CN105760581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610065298.3A CN105760581B (en) 2016-01-29 2016-01-29 A kind of valley Renovation and planning emulation mode and system based on OSG

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610065298.3A CN105760581B (en) 2016-01-29 2016-01-29 A kind of valley Renovation and planning emulation mode and system based on OSG

Publications (2)

Publication Number Publication Date
CN105760581A CN105760581A (en) 2016-07-13
CN105760581B true CN105760581B (en) 2018-08-07

Family

ID=56342821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610065298.3A Active CN105760581B (en) 2016-01-29 2016-01-29 A kind of valley Renovation and planning emulation mode and system based on OSG

Country Status (1)

Country Link
CN (1) CN105760581B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2563927B (en) * 2017-06-30 2021-01-06 Imagination Tech Ltd Multi-viewport transformation module for use in 3D rendering system
CN107452059B (en) * 2017-08-09 2019-08-20 中国地质大学(武汉) A kind of three-dimensional interpolation modeling method, equipment and its storage equipment
CN107563070A (en) * 2017-09-07 2018-01-09 张科 The three-dimensional design system and three-dimensional design method of farmland water conservancy works
CN107577892B (en) * 2017-09-19 2020-03-31 哈尔滨师范大学 Simulation method for surface structure condition of ground for crops
CN107577903A (en) * 2017-10-31 2018-01-12 华电郑州机械设计研究院有限公司 A kind of method that the earthwork smooth calculating in place is carried out based on AutoCAD
CN109196974A (en) * 2018-08-13 2019-01-15 宁波华众和创工业设计有限公司 A kind of afforestation device of digging
CN113628337B (en) * 2021-08-20 2022-07-08 北京优锘科技有限公司 WebGL-based large-scale river flow field visual rendering method, device and equipment
CN115796633B (en) * 2022-09-30 2023-08-08 北京大学深圳研究生院 Urban village land utilization comprehensive renovation performance evaluation method and system
CN115774896B (en) * 2022-12-09 2024-02-02 北京百度网讯科技有限公司 Data simulation method, device, equipment and storage medium
CN116385683B (en) * 2023-04-10 2023-09-19 长安大学 Three-dimensional small drainage basin channel fractal dimension calculation method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103306258A (en) * 2013-05-30 2013-09-18 甘肃省林业科学研究院 Soil erosion treating and ecological industry integration system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2086723C1 (en) * 1993-06-16 1997-08-10 Франц Плассер Банбаумашинен-Индустригезельшафт Мбх Method of and device for reconditioning of railway track ballast layer
CN102938230B (en) * 2012-11-15 2014-12-24 南京大学 Dynamic layering rendering expression method of two-dimensional scalar field on electronic map
CN103020741B (en) * 2012-12-21 2016-08-24 天津大学 A kind of economic optimization method for designing of urban landscape rivers regulation
CN203631054U (en) * 2013-10-11 2014-06-04 石家庄学院 Total factor natural object landform characteristic model

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103306258A (en) * 2013-05-30 2013-09-18 甘肃省林业科学研究院 Soil erosion treating and ecological industry integration system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DEM在丘陵地区土地整理项目中的应用研究;陈勇等;《测绘科学》;20080120;第33卷(第1期);全文 *
基于OSG流域三维可视化系统;范光伟等;《中国水运》;20130915;第13卷(第9期);全文 *

Also Published As

Publication number Publication date
CN105760581A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN105760581B (en) A kind of valley Renovation and planning emulation mode and system based on OSG
Werbrouck et al. Digital elevation model generation for historical landscape analysis based on LiDAR data, a case study in Flanders (Belgium)
CN104835202A (en) Quick three-dimensional virtual scene constructing method
CN111784833A (en) WebGL-based flood evolution situation three-dimensional dynamic visualization display method
Conolly Geographical information systems and landscape archaeology
CN103810729B (en) A kind of based on isocontour raster image vector quantized method
Zhao Application of 3D CAD in landscape architecture design and optimization of hierarchical details
CN102214367A (en) Three dimensional (3D) modeling and visualizing method of prehistoric settlement sites
Du Application of CAD aided intelligent technology in landscape design
CN104851131B (en) A kind of dimensional topography generation method of local accuracy's constraint
Samavati et al. Interactive 3D content modeling for digital earth
do Nascimento et al. Gpu-based real-time procedural distribution of vegetation on large-scale virtual terrains
Botica et al. 3D representation of the urban evolution of Braga using the CityEngine tool
Sun et al. Application of computer technology in the visualized landscape design of modern urban garden environment
Xie Application of computer simulation virtual reality simulation technology in the statistical analysis of urban building communities
CN111354081A (en) Large-scale three-dimensional forest drawing method
Cui et al. 3D Visualization Scene Technology and the Application for the Planning of Channel Land Consolidation
CN105317433B (en) Granulation mass microcosmic duct based on level-set function extracting method
CN117669274B (en) Flood simulation forecasting method and system based on virtual reality
Ye et al. Virtual Simulation Modeling and Visual Analysis of Sediment Erosion and Deposition Change in River Basin
Beattie 3D visualization models as a tool for reconstructing the historical landscape of the Ballona Creek watershed
Li et al. Research on Landscape Architecture Modeling Simulation System Based on Computer Virtual Reality Technology
CN116561842B (en) Urban landmark perception three-dimensional map construction method
shiyun Level of detail optimization for real-time terrain
Yin et al. A parametrically controlled terrain generation method

Legal Events

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