CN110120083A - Water quality forecast is distributed drawing drawing method, device and electronic equipment - Google Patents

Water quality forecast is distributed drawing drawing method, device and electronic equipment Download PDF

Info

Publication number
CN110120083A
CN110120083A CN201910417857.6A CN201910417857A CN110120083A CN 110120083 A CN110120083 A CN 110120083A CN 201910417857 A CN201910417857 A CN 201910417857A CN 110120083 A CN110120083 A CN 110120083A
Authority
CN
China
Prior art keywords
data
water quality
vertex
triangle
quality forecast
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.)
Granted
Application number
CN201910417857.6A
Other languages
Chinese (zh)
Other versions
CN110120083B (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.)
Zhongke Sanqing Technology Co Ltd
Original Assignee
Zhongke Sanqing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongke Sanqing Technology Co Ltd filed Critical Zhongke Sanqing Technology Co Ltd
Priority to CN201910417857.6A priority Critical patent/CN110120083B/en
Publication of CN110120083A publication Critical patent/CN110120083A/en
Application granted granted Critical
Publication of CN110120083B publication Critical patent/CN110120083B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of water quality forecasts to be distributed drawing drawing method, device and electronic equipment, it is related to the technical field of graphic plotting, by the initial Forecast Mode data for obtaining target water body, triangle grid data is converted by the initial Forecast Mode data of target water body, the map location of target water body is determined on map, on map location, the water quality forecast distribution map of target water body is drawn according to triangle grid data, the present invention can directly draw water quality distribution map by triangle grid data on map, alleviate use in the prior art with the water quality forecast distribution map of picture format is directly superimposed upon on map and cause map transmission and in terms of inconvenience technical problem.

Description

Water quality forecast is distributed drawing drawing method, device and electronic equipment
Technical field
The present invention relates to graphics plotting fields, are distributed drawing drawing method, device more particularly, to a kind of water quality forecast And electronic equipment.
Background technique
The water quality forecast distribution map that river lake and reservoir is shown on map is the main means of Efficient Characterization water pollution situation. Exhibition method conventional at present is, first according to the Forecast Mode data of water body, Forecast Mode data include water quality forecast data and Network data used by water quality forecast data are recorded, the picture of water body is drawn, then pass through the geography of water body on map The picture of water body is directly superimposed upon on map by range coordinate.
It is added on map with the water quality forecast distribution map of graphic form, it, may due to being limited by picture itself Cause map transmission or in terms of inconvenience, such as: when being transmitted, due to water boundary it is irregular on a large scale River lake and reservoir may need higher Internet resources in transmission so the size of the rectangle picture needed will increase at multiple Configuration;When zooming in and out operation to the map for including water quality forecast distribution map, since map may exceed actual pixel value When, it will appear sawtooth striped on picture, user experience is not high.
Summary of the invention
It is existing to alleviate the purpose of the present invention is to provide water quality forecast distribution drawing drawing method, device and electronic equipment Have and is used in technology with the water quality forecast distribution map of picture format is directly superimposed upon on map and map is caused to transmit and operating Etc. inconvenient technical problem.
A kind of water quality forecast provided by the invention is distributed drawing drawing method, comprising:
Obtain the initial Forecast Mode data of target water body;
Triangle grid data is converted by the initial Forecast Mode data of the target water body;
The map location of the target water body is determined on map;
On the map location, it is distributed according to the water quality forecast that the triangle grid data draws the target water body Figure.
Further, wherein the initial Forecast Mode data of the target water body include that the initial water quality of target water body is pre- Count off evidence and initial net configuration data;
Described the step of converting triangle grid data for the initial Forecast Mode data of the target water body, comprising:
Triangle gridding structured data is converted by the initial net configuration data, wherein the triangle gridding structure number According to the top for drawing network used by water quality forecast distribution map for including in the triangle grid data for the target water body Point data;
Triangulation network vertex water quality forecast data are converted by the initial water quality forecast data, wherein the triangulation network top Point water quality forecast data are the water quality forecast data for the vertex of a triangle for including in the triangle grid data of the target water body.
Further, described the step of converting triangle gridding structured data for the initial net configuration data, comprising:
Each of initial mesh to the initial net configuration data composition corresponding one group of vertex of unit grid Data are carried out as follows as unit grid data to be processed:
The unit grid data to be processed are repartitioned, three be combined into triangle gridding structured data described in multiple groups Angular structure data;
Geographical location by the corresponding geographical location of the unit grid data to be processed, as triangular structure data.
Further, described to repartition the unit grid data to be processed, it is combined into triangle gridding described in multiple groups The step of triangular structure data in structured data, comprising:
Choose in the unit grid data to be processed that any vertex data is as the first vertex data, according to the unit The direction pivots clockwise or counter-clockwise on vertex in grid, then choose the second vertex data and third vertex data composition triangle knot Structure data;
Wherein, second vertex data and third vertex data are adjacent, the top in the unit grid data to be processed The number of point data subtracts 2 as by the number of the triangular structure of the unit grid data conversion to be processed.
Further, described to convert triangulation network vertex data water quality forecast data for the initial water quality forecast data Step, comprising:
The initial water quality forecast data includes the corresponding initial cell water quality forecast data of multiple unit grids, is led to Cross the water quality forecast data for the vertex data that following formula calculates in each of triangle gridding structured data triangle;
Wherein, VjFor the water quality forecast data of the vertex of a triangle j in triangle gridding structured data, NVjiFor with vertex j The corresponding initial cell water quality forecast data of the associated unit grid;N is the unit grid associated with vertex j Number.
Further, described on the map location, the target water body is drawn according to the triangle grid data The step of water quality forecast distribution map, comprising:
The triangulation network vertex water quality forecast data and the triangle gridding structured data are plotted in the map location On;
Using barycentric interpolation method, the three of each of triangle gridding structured data triangle interior arbitrary point are calculated Net internal water quality forecast data in angle;
According to water quality forecast data inside the triangulation network, GPU is carried out to the water quality forecast distribution map of the target water body Rendering.
Further, the method also includes:
Vertex of a triangle in the triangle gridding structured data is numbered, by the number as index;
The location information of vertex of a triangle in the triangle gridding structured data, water quality forecast data and index are turned It is changed to binary file;
And encoded using Huffman, the triangle grid data is transmitted.
Further, described on the map location, the target water body is drawn according to the triangle grid data After the step of water quality forecast distribution map, the method also includes:
In such a way that water quality forecast data are replaced, same water body corresponding is replaced into from the first water quality forecast distribution map Two water quality forecast distribution maps.
A kind of water quality forecast distribution map drawing apparatus provided by the invention, comprising:
Module is obtained, for obtaining the initial Forecast Mode data of target water body;
Conversion module, for converting triangle grid data for the initial Forecast Mode data of the target water body;
Determining module, for determining the map location of the target water body on map;
Drafting module, for drawing the target water body according to the triangle grid data in the map location Water quality forecast distribution map.
A kind of electronic equipment provided by the invention, comprising: processor and memory, being stored in the memory can be in institute The computer program run on processor is stated, the processor realizes any one of above-described embodiment when executing the computer program The step of described method.
A kind of computer-readable medium provided by the invention is stored with computer program on the computer-readable medium, The computer program executes above-described embodiment described in any item methods when being run by processor.
Water quality forecast distribution drawing drawing method, device and electronic equipment provided by the invention, by obtaining target water body Initial Forecast Mode data, convert triangle grid data for the initial Forecast Mode data of target water body, determine on map The map location of target water body draws the water quality forecast distribution map of target water body according to triangle grid data on map location.
The present invention can directly draw water quality distribution map by triangle grid data on map, will not as picture, The Internet resources of higher configuration are needed in transmission and when zooming in and out operation, since water body of the invention forecasts distribution map It is to be rendered directly on map, alleviates to use in the prior art and be directly superimposed upon ground with the water quality forecast distribution map of picture format Cause on figure map transmission and in terms of inconvenience technical problem.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart that water quality forecast provided in an embodiment of the present invention is distributed drawing drawing method;
Fig. 2 converts triangle for the initial Forecast Mode data of target water body for step S120 provided in an embodiment of the present invention The flow chart of the specific embodiment of grid data;
Fig. 3 a is that unit grid provided in an embodiment of the present invention is a kind of structure that relatively long side is converted into 4 triangles Figure;
Fig. 3 b is that unit grid provided in an embodiment of the present invention is another structure that relatively long side is converted into 4 triangles Figure;
Fig. 4 is the structure chart that initial mesh provided in an embodiment of the present invention is 4 unit grids composition;
Fig. 5 is that step S140 provided in an embodiment of the present invention draws mesh according to triangle grid data on the map location Mark the flow chart of the specific embodiment of the water quality forecast distribution map of water body;
Fig. 6 is the structure chart of water quality forecast distribution map drawing apparatus provided in an embodiment of the present invention.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with embodiment, it is clear that described reality Applying example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, the common skill in this field Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects It encloses.
Currently, usually obtaining the Forecast Mode data of water body, root when production includes the map of water quality forecast distribution map Water quality forecast distribution map is drawn according to Forecast Mode, is directly superimposed upon on map by the picture of water quality forecast distribution map, to lead Cause include on the map of water quality forecast distribution map transmission or in terms of bring inconvenience, reduce the experience sense of user.
Based on this, water quality forecast distribution drawing drawing method, device and electronic equipment provided by the invention are obtaining target water After the initial Forecast Mode data of body, and Forecast Mode is directly drawn into the picture of water quality forecast distribution map not in the prior art Together, the initial Forecast Mode data of target water body are converted triangle grid data by the application, and target water body is determined on map Map location, on map location, according to triangle grid data draw target water body water quality forecast distribution map, energy of the present invention Water quality distribution map is directly enough drawn on map by triangle grid data, will not be needed in transmission higher as picture Internet resources of configuration and when zooming in and out operation, since water body forecast distribution map of the invention is to be rendered directly to map On, it alleviates to use in the prior art and is directly superimposed upon on map with the water quality forecast distribution map of picture format and map is caused to exist The inconvenient technical problem of transmission and operation etc..
It is described in detail below in conjunction with attached drawing:
As shown in connection with fig. 1, water quality forecast provided by the invention is distributed drawing drawing method, comprising:
S110: the initial Forecast Mode data of target water body are obtained.Wherein, target water body is water quality forecast to be drawn distribution The water body of figure.
Forecast Mode is corresponding water quality forecast number in the network and network recorded in water quality forecast distribution map According to mode.So may include the water quality forecast data and record water quality forecast number of water body itself in Forecast Mode data According to geographical location used by network data, network data not only include record water quality forecast data geographical position It sets, further includes which data forming minimal structure grid by, for example, the grid of network data composition is with minimal structure four Side shape composition, then which geographical location is network data also record as composed by.
Wherein, water quality forecast data can be with are as follows: chemical requirement, ammonia-nitrogen content, total phosphorus, algae content etc. multiple types Type.When recording above-mentioned a plurality of types of water quality forecast data, better effect can be will receive using different Forecast Modes, For example, obtaining this water quality forecast data of ammonia-nitrogen content, SWAT (Soil and Water Assessment can be used Tool) mode indicates;Or this water quality forecast data of chemical requirement are obtained, Aquasys (water can be used Quality modeling for Aquatic System) mode expression.
In practical applications, a variety of Forecast Modes for recording the water quality forecast data of water body can be, such as: HEQM mould Formula, the Forecast Mode are that the watershed hydrologic cycle system model of completion is developed during doctor Zhang Yongyong is equal to 2012-2015;Or Person, SWAT mode mentioned above, the Forecast Mode are to be opened by Jeff doctor Arnold for United States Department of Agriculture the 1990s A non-point pollution mode of hair;Alternatively, Aquasys mode mentioned above, which is Belgian flanders A basin of Institute for Research and Technology's research and development-water quality simulation multi-mode integrated system.
It is also likely to be different in such a way that network records water quality forecast data in a plurality of types of Forecast Modes , such as: the water quality forecast data in water quality forecast distribution map can only record for each network has a water quality pre- All vertex datas of count off evidence or network, which record, water quality forecast data.Meanwhile obtaining water quality forecast data When, it may be recorded using different network data, different network data can be a variety of convex-edge shapes, example Such as: the structure of convex quadrangle or relatively long side convex polygon.
S120: triangle grid data is converted by the initial Forecast Mode data of the target water body.
Wherein, when recording forecast data is a type of initial Forecast Mode data, triangle can be converted into Grid data;It is when the forecast data recorded with different Forecast Modes, different types of initial Forecast Mode data are unified For triangle grid data.
Wherein, the initial Forecast Mode data of the target water body include target water body initial water quality forecast data and just Beginning network data;The initial net configuration data are the water drawn in the initial Forecast Mode data of the target water body Matter forecasts the vertex data of initial mesh used by distribution map;
Triangle grid data is converted by the initial Forecast Mode data of the target water body in the step s 120, in conjunction with figure Shown in 2, it can include the following steps in detail implementation:
S121: triangle gridding structured data is converted by initial net configuration data, wherein triangle gridding structured data can Using using triangle as the network data of unit, the triangle gridding structured data is the triangle gridding number of the target water body Include in draws the vertex data of network used by water quality forecast distribution map.
Triangle gridding structured data is converted by the initial net configuration data, comprising:
Each of initial mesh to the initial net configuration data composition corresponding one group of vertex of unit grid Data are carried out as follows as unit grid data to be processed, and the unit grid is the initial net configuration data Form the minimum structural unit in initial mesh, wherein vertex data included by a unit grid is one group of network Data, i.e., unit grid data to be processed:
The unit grid data to be processed are repartitioned, three be combined into triangle gridding structured data described in multiple groups Angular structure data;For example, triangular structure data are also vertex data since initial net configuration data are vertex data, Then this step can make to repartition the vertex data of unit grids, form vertex of a triangle data, that is, obtain three Angular structure data.Such as: when unit grids can be convex-edge shape structure when, using six vertex datas of relatively long side as Triangular apex data in triangle gridding structured data, form multiple triangles.
Geographical location by the corresponding geographical location of the unit grid data to be processed, as triangular structure data. That is, the geographical location of each of unit grid vertex correspondence, as the geographical location of the vertex of a triangle newly formed, The geographical location recorded in unit grid data to be processed can use longitude and latitude.
Due to, the corresponding one group of grid structured data of unit grid is the corresponding vertex data of unit grid, so, by institute It states unit grid data to be processed to repartition, the triangular structure data being combined into triangle gridding structured data described in multiple groups The step of may include:
Choose in the unit grid data to be processed that any vertex data is as the first vertex data, according to the unit The direction pivots clockwise or counter-clockwise on vertex in grid, then choose the second vertex data and third vertex data composition triangle knot Structure data;Wherein, in unit grid vertex direction pivots clockwise or counter-clockwise, include multiple vertex datas in unit grid, According to the direction pivots clockwise or counter-clockwise that vertex data in figure arranges, for example, in conjunction with shown in Fig. 3 a, the vertex of relatively long side Data are numbered, clockwise direction be vertex data 1, vertex data 2, vertex data 3, vertex data 4, vertex data 5, Vertex data 6, vertex data direction counterclockwise are vertex data 1, vertex data 6, vertex data 5, vertex data 4, vertex Data 3, vertex data 2.
Wherein, second vertex data and third vertex data are adjacent, the number of vertex in unit grid data to be processed According to number subtract 2 as by the number of the triangular structure of the unit grid data to be processed conversion, in this way can more added with Rule convert.
For example, there is n vertex, respectively V in unit grid data N to be processed1、V2、V3、...、Vn, more convex-edge shapes Vertex V data, can be carried out as follows expression:
Following formula (1) is used simultaneously, converts multiple triangles, T for unit grids2For the triangular apex after conversion The set of data, T2Number be (n-2):
N={ V1, V2, V3..., Vn}(n≥3)
T={ Vi, Vi+1, Vi+2(i>=0, i<n-2) (1)
For example, the unit grid data to be processed are repartitioned carrying out step, be combined into the triangulation network described in multiple groups When triangular structure data in lattice structured data, can the vertex data as unit of in grid be numbered, it is, of course, also possible to Each vertex data is identified using other modes.
In conjunction with shown in Fig. 3 a, when unit grid can be relatively long side, vertex data (one group of grid in relatively long side Structured data) it is unit grid data to be processed, it is numbered for the vertex data of relatively long side, according to the side numbered clockwise Formula, number 1~6.Any vertex data in the unit grid data to be processed is any one in number 1~6, with Number 1 is for the first vertex data, the second vertex data is number 2, and third vertex data is number 3, then number 1, number 2, number 3 is that three vertex datas form a triangle, and number 1, number 3, number 4 are that three vertex datas form one three Angular, number 1, number 4, number 6 are that three vertex datas form a triangle, and number 1, number 5, number 6 are three tops Point data forms a triangle.
Certainly, the unit grid data to be processed are repartitioned, is combined into triangle gridding structured data described in multiple groups In triangular structure data the step of, can also obtain in the following way: in conjunction with shown in Fig. 3 b, number 1, number 2, number 6 form a triangle for three vertex datas, and number 2, number 5, number 6 are that three vertex datas form a triangle, Number 2, number 3, number 5 are that three vertex datas form a triangle, and number 3, number 4, number 5 are three vertex datas Form a triangle.
S122: triangulation network vertex water quality forecast data are converted by initial water quality forecast data, wherein the triangulation network top Point water quality forecast data are the water quality forecast data for the vertex of a triangle for including in the triangle grid data of the target water body.
The initial water quality forecast data includes the corresponding initial cell water quality forecast data of multiple unit grids, is led to Cross the water quality forecast number for the vertex data that following formula (2) calculate in each of triangle gridding structured data triangle According to;
Wherein, VjFor the water quality forecast data of the vertex j in the triangle in triangle gridding structured data, NVjiFor with top The corresponding initial cell water quality forecast data of the associated unit grid of point j;N is the unit associated with vertex j The number of grid.
That is, the water quality forecast data on each vertex of the triangle after conversion are the unit associated with the vertex The sum of corresponding initial cell water quality forecast data of grid divided by the unit grid associated with the vertex number.Its In, the associated number to share the vertex in the unit grid.As shown in connection with fig. 4, it is rectangular for showing initial mesh When, initial mesh from left to right from top to bottom, is followed successively by first unit grid, second unit so that 4 unit grids form as an example Grid, third unit grid, the 4th unit grid, first to fourth unit grid all have a corresponding initial cell water quality Forecast data, wherein 9 vertex are represented using number 1~9, the water quality forecast data of 9 vertex correspondences are the triangle after conversion Net vertex water quality forecast data, the vertex of first unit grid is number 1, number 2, number 4, number 5, second unit grid Vertex is number 2, number 3, number 5, number 6, and the vertex of third unit grid is number 4, number 5, number 7, number 8, the The vertex of four unit grids is number 5, number 6, number 8, number 9, and each unit grid can convert triangle gridding structure number Two triangles in, each vertex of a triangle are respectively the vertex of unit grid, then seek the top of each unit grid The water quality forecast data of point, it can triangulation network vertex water quality forecast data are obtained, are as follows:
Number 1 belongs to first unit grid, and the water quality forecast data of number 1 are not total with the second to the 4th unit grid It enjoys, so, the water quality forecast data of number 1 are the water quality forecast data of first unit grid;
The water quality forecast data and first unit grid and second unit grid of number 2 are shared, so, the water quality of number 2 Forecast data is (the water quality forecast data that the water quality forecast data of first unit grid add second unit grid) divided by 2;
Number 3 belongs to second unit grid, the water quality forecast data of number 3 not with first unit grid, third unit Grid and the 4th unit grid are shared, so, the water quality forecast data of number 3 are the water quality forecast data of second unit grid;
The water quality forecast data and first unit grid and third unit grid of number 4 are shared, so, the water quality of number 4 Forecast data is (the water quality forecast data that the water quality forecast data of first unit grid add third unit grid) divided by 2;
The water quality forecast data of number 5 and first to fourth unit grid are shared, so, the water quality forecast data of number 5 It is (the water quality forecast data of first to fourth unit grid are added) divided by 4;
The water quality forecast data and second unit grid of number 6 and the 4th unit grid are shared, so, the water quality of number 6 Forecast data is (the water quality forecast data that the water quality forecast data of second unit grid add the 4th unit grid) divided by 2;
Number 7 belongs to third unit grid, the water quality forecast data of number 7 not with first unit grid, second unit Grid and the 4th unit grid are shared, so, the water quality forecast data of number 7 are the water quality forecast data of third unit grid;
The water quality forecast data and third unit grid of number 8 and the 4th unit grid are shared, so, the water quality of number 8 Forecast data is (the water quality forecast data that the water quality forecast data of third unit grid add the 4th unit grid) divided by 2;
Number 9 belongs to the 4th unit grid, the water quality forecast data of number 9 not with first unit grid, second unit Grid and third unit grid are shared, so, the water quality forecast data of number 9 are the water quality forecast data of the 4th unit grid.
S130: the map location of target water body is determined on map.
Wherein it is possible to obtain the geographic range coordinate of target water body, then with the geographical location of the target water body on map It is corresponding, the coordinate position in map, the as map location of target water body are converted to from geographic range coordinate.
S140: on map location, the water quality forecast distribution map of target water body is drawn according to triangle grid data.
As shown in connection with fig. 5, step S140 can be carried out as follows:
S141: the triangulation network vertex water quality forecast data and the triangle gridding structured data are plotted in the map On position.
From the foregoing, it will be observed that triangle gridding structured data includes the geographical location on vertex, it is corresponding with the geographical location on map, Meanwhile the geographical location on vertex is converted into the map location on map, i.e. graph position, it is drawn on map, then, Upper corresponding water quality forecast data are marked in corresponding apex, to complete triangle side length, that is, complete the drafting of framework.
S142: using barycentric interpolation method, calculates each of triangle gridding structured data triangle interior arbitrary point Water quality forecast data inside the triangulation network.
Wherein: V is triangle interior arbitrary point, i.e. pixel, and coordinate (x, y), V.x is the cross of triangle interior arbitrary point Coordinate, V.y are the ordinate of triangle interior arbitrary point, and V1.x is the abscissa of triangular apex V1, and V1.y is triangle top The ordinate of point V1, V2.x are the abscissa of triangular apex V2, and V2.y is the ordinate of triangular apex V2;V3.x is triangle The abscissa of shape vertex V3, V3.y are the ordinate of triangular apex V3;V1, V2, V3 are three vertex of triangle, are solved To the value of variable m and n, formula (3) can be brought into and obtain the water quality forecast data of arbitrary point V.
S143: according to water quality forecast data inside the triangulation network, to the water quality forecast distribution map of the target water body into Row GPU rendering.
In practical applications, step S130 determines the map location of target water body on map, and step S140 is in map position It sets, the water quality forecast distribution map of target water body is drawn according to triangle grid data, can be carried out in browser end, that is, complete The process drawn and rendered, can sufficiently excavate high-performance editable characteristic and figure rendering characteristics.
Step S110 obtains the initial Forecast Mode data of target water body, and step S120 converts initial Forecast Mode data It for triangle grid data, can be completed in server end, then the present invention also wraps when being transferred to browser end from server end It includes:
Vertex of a triangle in the triangle gridding structured data is numbered;For example, Fig. 3 a, Fig. 3 b and Fig. 4 that The vertex of figure is numbered in sample.
By the number as index;
The location information of vertex of a triangle in the triangle gridding structured data, water quality forecast data and index are turned It is changed to binary file;
And encoded using Huffman, the triangle grid data is transmitted.
Above-mentioned transmission mode can be avoided when being transmitted with pictorial manner, must be compared with because the capacity of picture is bigger The problem of high Internet resources, when being compressed with data, can carry out the compression of lossless data, reduce the pressure of network transmission.
In step S140 on the map location, the water quality of the target water body is drawn according to the triangle grid data After the step of forecasting distribution map, the method also includes:
In such a way that water quality forecast data are replaced, it is corresponding that same water body is replaced into from the first water quality forecast distribution map The second water quality forecast distribution map.It is pre- so as to quickly establish the water quality that same water body is generated by different quality forecast data It calls the score Butut, reduces the redundancy for calculating data.
Particularly, it can use index, the water quality forecast data on vertex replaced, so as to more quickly Obtain other water quality forecast distribution maps.In particular, to same water quality, when different quality forecast data is drawn, for example, When being equally to Taihu Lake progress water quality forecast distribution map, the water quality that can form the water quality forecast data formation of chemical requirement is pre- It calls the score Butut, forms the water quality forecast distribution map that the water quality forecast data of ammonia-nitrogen content are formed, form the water quality forecast number of total phosphorus According to the water quality forecast distribution map of formation, the water quality forecast distribution map that the water quality forecast data of algae content are formed is formed, four are not Same water quality forecast data, can be after drawing a water quality forecast distribution map, since landform is the same, network It is identical, so, directly adopt the mode of the water quality forecast data displacement on vertex, so that it may obtain the other three water quality forecast data Corresponding water quality forecast distribution map.
Corresponding above-mentioned water quality forecast is distributed drawing drawing method, draws and fills invention further provides a kind of water quality forecast distribution map It sets, as shown in connection with fig. 6, comprising:
Module 610 is obtained, for obtaining the initial Forecast Mode data of target water body;
Conversion module 620, for converting triangle grid data for the initial Forecast Mode data of the target water body;
Determining module 630, for determining the map location of the target water body on map;
Drafting module 640, for drawing the target water body according to the triangle grid data in the map location Water quality forecast distribution map.
The technical effect and preceding method embodiment phase of device provided by the embodiment of the present invention, realization principle and generation Together, to briefly describe, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
The a kind of electronic equipment that the present invention provides again, comprising: processor and memory, being stored in the memory can be The computer program run on the processor, the processor realize that above-described embodiment is any when executing the computer program The step of method described in item.
A kind of computer-readable medium that the present invention provides again is stored with computer journey on the computer-readable medium Sequence, the computer program execute above-described embodiment described in any item methods when being run by processor.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of water quality forecast is distributed drawing drawing method characterized by comprising
Obtain the initial Forecast Mode data of target water body;
Triangle grid data is converted by the initial Forecast Mode data of the target water body;
The map location of the target water body is determined on map;
On the map location, the water quality forecast distribution map of the target water body is drawn according to the triangle grid data.
2. water quality forecast according to claim 1 is distributed drawing drawing method, which is characterized in that
Wherein, the initial Forecast Mode data of the target water body include the initial water quality forecast data and original net of target water body Lattice structured data;
Described the step of converting triangle grid data for the initial Forecast Mode data of the target water body, comprising:
Triangle gridding structured data is converted by the initial net configuration data, wherein the triangle gridding structured data is Include in the triangle grid data of the target water body draws the number of vertex of network used by water quality forecast distribution map According to;
Triangulation network vertex water quality forecast data are converted by the initial water quality forecast data, wherein triangulation network vertex water Matter forecast data is the water quality forecast data for the vertex of a triangle for including in the triangle grid data of the target water body.
3. water quality forecast according to claim 2 is distributed drawing drawing method, which is characterized in that described by the initial mesh Structured data is converted into the step of triangle gridding structured data, comprising:
Each of initial mesh to the initial net configuration data composition corresponding one group of vertex data of unit grid It is carried out as follows as unit grid data to be processed:
The unit grid data to be processed are repartitioned, the triangle being combined into triangle gridding structured data described in multiple groups Structured data;
Geographical location by the corresponding geographical location of the unit grid data to be processed, as triangular structure data.
4. water quality forecast according to claim 3 is distributed drawing drawing method, which is characterized in that described by the list to be processed The step of first grid data is repartitioned, the triangular structure data being combined into triangle gridding structured data described in multiple groups, packet It includes:
Choose in the unit grid data to be processed that any vertex data is as the first vertex data, according to the unit grid The direction pivots clockwise or counter-clockwise on middle vertex, then choose the second vertex data and third vertex data composition triangular structure number According to;
Wherein, second vertex data and third vertex data are adjacent, the number of vertex in the unit grid data to be processed According to number subtract 2 as by the number of the triangular structure of the unit grid data to be processed conversion.
5. water quality forecast according to claim 3 is distributed drawing drawing method, which is characterized in that described by the initial water quality Forecast data is converted into the step of triangulation network vertex water quality forecast data, comprising:
The initial water quality forecast data includes the corresponding initial cell water quality forecast data of multiple unit grids, by with Lower formula calculates the water quality forecast data of the vertex data in each of triangle gridding structured data triangle;
Wherein, VjFor the water quality forecast data of the vertex of a triangle j in triangle gridding structured data, NVjiIt is related to vertex j The corresponding initial cell water quality forecast data of the unit grid of connection;N is of the unit grid associated with vertex j Number.
6. water quality forecast according to claim 5 is distributed drawing drawing method, which is characterized in that described in the map location On, the step of drawing the water quality forecast distribution map of the target water body according to the triangle grid data, comprising:
The triangulation network vertex water quality forecast data and the triangle gridding structured data are plotted on the map location;
Using barycentric interpolation method, the triangulation network of each of triangle gridding structured data triangle interior arbitrary point is calculated Internal water quality forecast data;
According to water quality forecast data inside the triangulation network, GPU rendering is carried out to the water quality forecast distribution map of the target water body.
7. water quality forecast according to claim 6 is distributed drawing drawing method, which is characterized in that the method also includes:
Vertex of a triangle in the triangle gridding structured data is numbered, by the number as index;
It is by the location information of the vertex of a triangle in the triangle gridding structured data, water quality forecast data and index translation Binary file;
And encoded using Huffman, the triangle grid data is transmitted.
8. water quality forecast according to claim 7 is distributed drawing drawing method, which is characterized in that described in the map location On, after the step of drawing the water quality forecast distribution map of the target water body according to the triangle grid data, the method is also Include:
In such a way that water quality forecast data are replaced, corresponding second water of same water body is replaced into from the first water quality forecast distribution map Matter forecasts distribution map.
9. a kind of water quality forecast distribution map drawing apparatus characterized by comprising
Module is obtained, for obtaining the initial Forecast Mode data of target water body;
Conversion module, for converting triangle grid data for the initial Forecast Mode data of the target water body;
Determining module, for determining the map location of the target water body on map;
Drafting module, for drawing the water quality of the target water body according to the triangle grid data in the map location Forecast distribution map.
10. a kind of electronic equipment characterized by comprising processor and memory, being stored in the memory can be described The computer program run on processor, the processor realize the claims 1 to 8 when executing the computer program The step of method described in one.
CN201910417857.6A 2019-05-17 2019-05-17 Water quality forecast distribution map drawing method and device and electronic equipment Active CN110120083B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910417857.6A CN110120083B (en) 2019-05-17 2019-05-17 Water quality forecast distribution map drawing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910417857.6A CN110120083B (en) 2019-05-17 2019-05-17 Water quality forecast distribution map drawing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110120083A true CN110120083A (en) 2019-08-13
CN110120083B CN110120083B (en) 2020-03-06

Family

ID=67522734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910417857.6A Active CN110120083B (en) 2019-05-17 2019-05-17 Water quality forecast distribution map drawing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110120083B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112598791A (en) * 2020-12-17 2021-04-02 中科三清科技有限公司 Method and device for displaying air quality data in forecast consultation PPT
CN112730743A (en) * 2020-12-17 2021-04-30 中科三清科技有限公司 Interaction method and device for air quality mode forecast data
CN113140027A (en) * 2020-01-16 2021-07-20 浙江碧晟环境科技有限公司 Construction method of four-dimensional water body model

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060050073A1 (en) * 2004-08-31 2006-03-09 Satoshi Kanai Tetrahedral mesh generating method and program
CN101441780A (en) * 2008-11-05 2009-05-27 武汉大学 Method for slitting three-dimensional gridding model
CN102156779A (en) * 2011-04-13 2011-08-17 北京石油化工学院 Subsurface flow simulating and predictive analysis method
CN103530901A (en) * 2013-10-17 2014-01-22 中国测绘科学研究院 Method and system for visualizing dynamic water area by matching with real three-dimensional environment
CN107749081A (en) * 2017-08-22 2018-03-02 福建四创软件有限公司 Ecology prediction achievements exhibition method based on visualization dynamic play
CN109448124A (en) * 2018-11-06 2019-03-08 北京英视睿达科技有限公司 Simulation of water quality method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060050073A1 (en) * 2004-08-31 2006-03-09 Satoshi Kanai Tetrahedral mesh generating method and program
CN101441780A (en) * 2008-11-05 2009-05-27 武汉大学 Method for slitting three-dimensional gridding model
CN102156779A (en) * 2011-04-13 2011-08-17 北京石油化工学院 Subsurface flow simulating and predictive analysis method
CN103530901A (en) * 2013-10-17 2014-01-22 中国测绘科学研究院 Method and system for visualizing dynamic water area by matching with real three-dimensional environment
CN107749081A (en) * 2017-08-22 2018-03-02 福建四创软件有限公司 Ecology prediction achievements exhibition method based on visualization dynamic play
CN109448124A (en) * 2018-11-06 2019-03-08 北京英视睿达科技有限公司 Simulation of water quality method and apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ALEXANDER NEBER等: "Construction and usage of geological near-surface models with GSI3D–applied (hydro-) geological information for land sites and urban areas", 《AUSTRIAN JOURNAL OF EARTH SCIENCES》 *
李继选: "基于有限体积法的二维水流水质模拟及其可视化研究", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113140027A (en) * 2020-01-16 2021-07-20 浙江碧晟环境科技有限公司 Construction method of four-dimensional water body model
CN113140027B (en) * 2020-01-16 2022-07-15 浙江碧晟环境科技有限公司 Construction method of four-dimensional water body model
CN112598791A (en) * 2020-12-17 2021-04-02 中科三清科技有限公司 Method and device for displaying air quality data in forecast consultation PPT
CN112730743A (en) * 2020-12-17 2021-04-30 中科三清科技有限公司 Interaction method and device for air quality mode forecast data

Also Published As

Publication number Publication date
CN110120083B (en) 2020-03-06

Similar Documents

Publication Publication Date Title
CN106339568B (en) A kind of numerical weather forecast method based on mixing ambient field
CN102117497B (en) Method and system for three-dimensional terrain modeling
CN110120083A (en) Water quality forecast is distributed drawing drawing method, device and electronic equipment
CN101763657B (en) Three-dimensional terrain display method for video production
CN102831644A (en) Marine environment information three-dimensional visualization method
CN101630419A (en) Structuring method for three-dimensional visualizing system of urban synthesis pipeline network
CN102930594B (en) Rendering method for computer three-dimensional terrain grid based on boundary maintenance
CN104658027A (en) Three-dimensional streamline dynamic visualization algorithm facing irregular ocean flow field data
CN101916397B (en) Three-dimensional visualization device and method for describing wetland vegetation eco-hydrology response
CN104657436A (en) Static tile pyramid parallel building method based on MapReduce
CN103745497B (en) Plant growth modeling method and system
CN103093499A (en) City three-dimensional model data organization method applicable to network transmission
CN108038249A (en) A kind of one diagram data storage organization method in whole world and call method
CN104537024B (en) A kind of magnanimity position is registered the method for visualizing of data
CN104778744A (en) Establishing technique of visualized scenes of large-scale three-dimension forests based on Lidar data
CN104008561A (en) Simulation process type animation realizing method based on GPU
CN110298922A (en) A kind of three-dimensional model simplifying method, device and equipment
CN112749244A (en) Method and device for realizing digital twin city space coordinate system based on illusion engine and storage medium
CN115471634B (en) Modeling method and device for urban green plant twins
CN105488838A (en) Radar image simulation-oriented terrain environment data representing method
CN105354882A (en) Method for constructing big data architecture based three-dimensional panoramic display platform for large-spatial-range electricity transmission
CN108491427A (en) PDF tile maps and production method
CN106844519A (en) Remote sensing special topic product method for visualizing based on three-dimensional digital earth
CN108375806A (en) The acquisition methods and device of weather-map
CN110110132A (en) A kind of method, apparatus that establishing space lattice system and remote sensing image processing system

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
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20190813

Assignee: Beijing Zhongke Sanqing Environmental Technology Co.,Ltd.

Assignor: 3CLEAR TECHNOLOGY Co.,Ltd.

Contract record no.: X2022980012305

Denomination of invention: Water quality forecast distribution map drawing method, device and electronic equipment

Granted publication date: 20200306

License type: Common License

Record date: 20220815