[go: up one dir, main page]

CN109343830A - An easy-to-integrate method for generating rainfall contour services - Google Patents

An easy-to-integrate method for generating rainfall contour services Download PDF

Info

Publication number
CN109343830A
CN109343830A CN201810951673.3A CN201810951673A CN109343830A CN 109343830 A CN109343830 A CN 109343830A CN 201810951673 A CN201810951673 A CN 201810951673A CN 109343830 A CN109343830 A CN 109343830A
Authority
CN
China
Prior art keywords
rainfall
function
parameter
file
integration
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.)
Pending
Application number
CN201810951673.3A
Other languages
Chinese (zh)
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.)
Hohai University HHU
Original Assignee
Hohai University HHU
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 Hohai University HHU filed Critical Hohai University HHU
Priority to CN201810951673.3A priority Critical patent/CN109343830A/en
Publication of CN109343830A publication Critical patent/CN109343830A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Human Computer Interaction (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本发明公布了一种易集成的雨量等值线服务生成方法,包括以下步骤:S1、根据雨量数据的数值范围和地理坐标系类型,组织生成雨量数据输入文件;S2、确定等值线生成需要的参数,并组织生成参数配置文件;S3、依次调用插值函数、渲染函数、绘制函数和标注函数,生成雨量等值线结果文件;S4、基于Web服务器发布程序,利用Web服务技术将生成等值线所需的数据文件、参数文件和结果文件服务化集成。本发明方法简单易于实现,在满足水利信息系统对雨量等值线生成的需求的同时,大大降低了水利信息系统开发集成雨量等值线服务的技术成本和经济成本,有利于推广使用。

The invention discloses an easy-to-integrate rainfall contour service generation method, comprising the following steps: S1. Organize and generate a rainfall data input file according to the numerical range of the rainfall data and the type of the geographic coordinate system; S2, determine the requirements for generating the contour line parameters, and organize the generation of parameter configuration files; S3, call the interpolation function, rendering function, drawing function and labeling function in turn to generate the rainfall isoline result file; S4, publish the program based on the Web server, and use the Web service technology to generate the equivalent value Service integration of data files, parameter files and result files required by the line. The method of the invention is simple and easy to implement, and while meeting the requirements of the water conservancy information system for the generation of rainfall contour lines, the technical cost and economic cost of developing integrated rainfall contour line services for the water conservancy information system are greatly reduced, which is beneficial to popularization and use.

Description

A kind of precipitation isohyetal line service creation method easy of integration
Technical field
The invention discloses a kind of precipitation isohyetal line service creation methods easy of integration, belong to Water Conservancy Information field.
Background technique
The automation of the development experience of Water Conservancy Information and digitized process, the rank of wisdom of just gradually marching toward at present Section.Information technology all plays an important role in the acquisition of water conservancy data, transmission, storage and business development, it may be said that water conservancy Each stage of Informatization Development be unable to do without the support of information technology.The development of information technology itself is maked rapid progress, GIS, distant The emerging technologies such as sense, internet, Internet of Things, visualization emerge one after another, and the extensive use of information technology can greatly improve water Stability, ease for use and the effect of visualization of sharp information system.
The provider of information technology service is generally divided into two kinds of forms of commercial company and open source community, business software is stable, It is easy-to-use, but economic cost is high, and often provides integrated suite, needs bulk/volume buying;Open source software is free and code discloses, But software granularity is small, the degree of modularity is low, Integrated Development tool acquires a certain degree of difficulty.Such as isopleth generation technique, the technology exist It is widely used in Water Information System, especially the isopleth of rainfall data generates.Because rainfall data is the weight of water conservancy data Component part is wanted, it is very huge to the visualization requirement of the data.There is mentioning for isopleth generation technique generally in GIS software For, the price of business GIS software is high, and the module will not be provided separately, and open source community also has respective algorithms code, but easily It is extremely low with property.
Therefore, a kind of generation of free, easy-to-use isopleth and service integration method newly how is developed, so that water conservancy is believed It ceases system development and the technical problem that isopleth service be urgent need to resolve can be integrated by simple mode in.
Summary of the invention
The problem excessively high, not easy-to-use with cost existing for service integration method is generated for current isopleth, the present invention mentions Go out a kind of precipitation isohyetal line service creation method easy of integration, using GIS visualization technique, open source software technology, realizes rain Isopleth visualization and the corresponding Web service for measuring data are integrated.
In order to solve the above technical problems, one technical scheme adopted by the invention is that:
A kind of precipitation isohyetal line service creation method easy of integration, including rainfall data tissue, precipitation isohyetal line service creation and Precipitation isohyetal line Services Integration, is specifically divided into following steps:
S1, numberical range and geographical coordinate set type according to rainfall data, tissue generate rainfall data input file.
S2, certainty equivalents line generate the parameter needed, and organize to generate parameter configuration files.
S3, interpolating function, rendering function, drafting function and labelling function are successively called, generates precipitation isohyetal line result text Part.
S4, it is based on Web server release process, data file needed for isopleth will be generated using Web service technology, ginseng Number file and destination file serviceization are integrated.
Further, the rainfall data file is csv formatted file, including rainfall point coordinate and rainfall value, rainfall Point coordinate indicates that rainfall value is indicated with z with (x, y).
Further, parameter described in step S2 includes interpolation parameter, rendering parameter, spacing parameter and label parameters, Spacing parameter is string format, and string value is the spacing size of isopleth.The parameter configuration files include interpolation ginseng Number configuration file, rendering parameter configuration file and label parameters configuration file;Interpolation parameter configuration file format is vrt format, Content includes rainfall data input file address, rainfall data coordinate system and rainfall data format;Rendering parameter configuration file lattice Formula is txt format, and content includes rainfall value and the corresponding rgb color numerical value of rainfall value;Label parameters configuration file format is xml Format, content include the contents such as geographic coordinate system, dimension style, the type of output file and output address.
Further, the interpolating function in step S3 is the gdal_grid function in the library GDAL, and rendering function is the library GDAL Gdal_dem function, drafting function are the gdal_contour function in the library GDAL, and labelling function is the library Mapnik Nik2img.py function;Step S3 is realized especially by following steps:
S31, gdal_grid interpolating function is called, is input parameter with rainfall data file, obtains rainfall contour surface grayscale image, Rainfall contour surface grayscale image is tiff format.
S32, it calls gdal_dem to render function, is input parameter with rainfall contour surface grayscale image, rendering colour band, obtains rain Contour surface cromogram is measured, rainfall contour surface cromogram is tiff format.
S33, gdal_contour drafting function is called to obtain using rainfall contour surface grayscale image, contour interval value as parameter To precipitation isohyetal line polar plot, precipitation isohyetal line polar plot is shp format.
S34, nik2img.py function is called, is input parameter with precipitation isohyetal line polar plot, label parameters configuration file, The isopleth rendering figure with mark is obtained, isopleth rendering figure is png format.
Further, Web server release process is IIS program in step S4, and Web service technology is ASP.NET Web API technology, serviceization are integrated using ApiController method.
Following advantage can be obtained by the above technological means:
The present invention provides a kind of precipitation isohyetal line service creation methods easy of integration, being capable of opening in all kinds of Water Information Systems Free isopleth is integrated in hair and generates service, realizes precipitation isohyetal line effect of visualization.The method of the present invention is visualized using GIS Technology and open source software technology, method is relatively simple, cost is relatively low, and is easily achieved, and is meeting Water Information System to rain While measuring the demand that isopleth generates, greatly reduce Water Information System develop the technology of integrated precipitation isohyetal line service at Sheet and economic cost, are conducive to promote the use of.
Detailed description of the invention
Fig. 1 is the flow chart of the method for the present invention medium value line generation method.
Fig. 2 is the rainfall data input file in the method for the present invention.
Fig. 3 is the interpolation parameter configuration file in the method for the present invention.
Fig. 4 is the rendering parameter configuration file in the method for the present invention.
Fig. 5 is the label parameters configuration file in the method for the present invention.
Fig. 6 is the rainfall contour surface grayscale image of the method for the present invention.
Fig. 7 is the rainfall contour surface cromogram of the method for the present invention.
Fig. 8 is the precipitation isohyetal line polar plot of the method for the present invention.
Fig. 9 is the isopleth rendering figure with mark of the method for the present invention.
Specific embodiment
Technological means of the invention is described in detail with reference to the accompanying drawing, so that advantages and features of the invention can be more It is easy to be readily appreciated by one skilled in the art, so as to make a clearer definition of the protection scope of the present invention.
The invention proposes a kind of precipitation isohyetal line service creation methods easy of integration, can be realized the life of precipitation isohyetal line At and Services Integration, including rainfall data tissue, precipitation isohyetal line service creation, precipitation isohyetal line Services Integration are specific to walk It is rapid as follows:
S1, the numberical range according to rainfall data, geographical coordinate set type, tissue generate the input file of rainfall data;Rainfall Data file is csv formatted file, including rainfall point coordinate and rainfall value.
S2, certainty equivalents line generate the parameter needed, and tissue generates parameter configuration files.Spacing parameter is that isopleth generates A required important parameter, is string format, and the value of character string is exactly the spacing size of isopleth;Parameter configuration files packet Include interpolation parameter configuration file, rendering parameter configuration file and label parameters configuration file, the file of interpolation parameter configuration file Format is vrt format, and address, rainfall data coordinate system and the rainfall data lattice of rainfall data input file are provided in file Formula;The file format of rendering parameter configuration file is txt format, is provided with rainfall value and the corresponding RGB color of rainfall value in file Color numerical value;The file format of label parameters configuration file is xml format, and geographic coordinate system, dimension style, defeated is provided in file The contents such as type and output address of file out.
S3, interpolating function, rendering function, drafting function and labelling function are successively called, generates precipitation isohyetal line result text Part;Interpolating function is the gdal_grid function in the library GDAL, and rendering function is the gdal_dem function in the library GDAL, and drafting function is The gdal_contour function in the library GDAL, labelling function are the nik2img.py function in the library Mapnik;As shown in Figure 1, step S3 It is realized especially by following steps:
S31, gdal_grid interpolating function is called, is input parameter with rainfall data file, obtains rainfall contour surface grayscale image, Rainfall contour surface grayscale image is tiff format.
S32, it calls gdal_dem to render function, is input parameter with rainfall contour surface grayscale image, rendering colour band, obtains rain Contour surface cromogram is measured, rainfall contour surface cromogram is tiff format.
S33, gdal_contour drafting function is called to obtain using rainfall contour surface grayscale image, contour interval value as parameter To precipitation isohyetal line polar plot, precipitation isohyetal line polar plot is shp format.
S34, nik2img.py function is called, is input parameter with precipitation isohyetal line polar plot, label parameters configuration file, The isopleth rendering figure with mark is obtained, isopleth rendering figure is png format.
S4, it is based on Web server release process, data file needed for isopleth will be generated using Web service technology, ginseng Number file and destination file serviceization are integrated, and wherein Web server release process is IIS program, and Web service technology is ASP.NET Web API technology, serviceization are integrated using ApiController method.
In the present embodiment, the numberical range of rainfall data is -180 ~ 180, and geographical coordinate set type is WGS84, (x, y) Indicate that the coordinate of rainfall point, z indicate rainfall value, the rainfall data input file of formation is as shown in Figure 2.Spacing parameter is " 50 ". Fig. 3 is interpolation parameter configuration file, and address, rainfall data coordinate system and the rainfall of rainfall data input file are provided in file The contents such as data format, rainfall data coordinate system select WGS84.Fig. 4 is rendering parameter configuration file, in file respectively to 0, 10,25,50,100,250 these rainfall values set corresponding rgb color numerical value.Fig. 5 is label parameters configuration file, text The contents such as geographic coordinate system, dimension style, the type of output file and output address are provided in part, coordinate system selects WGS84, Dimension style includes font, font size, color etc..
Fig. 6 is the rainfall contour surface grayscale image that step S31 is obtained, and Fig. 7 is that the rainfall contour surface that step S32 is obtained is colored Figure, Fig. 8 are the precipitation isohyetal line polar plots that step S33 is obtained, and Fig. 9 is the isopleth rendering figure that step S34 is obtained.Side of the present invention Method can obtain clear precipitation isohyetal line file, meet the demand that Water Information System generates precipitation isohyetal line, Meanwhile the method for the present invention uses open source software technology, cost is relatively low, it is easy to accomplish and promote.
Embodiments of the present invention are explained in detail above in conjunction with attached drawing, but the invention is not limited to above-mentioned Embodiment within the knowledge of a person skilled in the art can also be before not departing from present inventive concept It puts and makes a variety of changes.

Claims (10)

1. a kind of precipitation isohyetal line service creation method easy of integration, which comprises the following steps:
S1, numberical range and geographical coordinate set type according to rainfall data, tissue generate rainfall data input file;
S2, certainty equivalents line generate the parameter needed, and organize to generate parameter configuration files;
S3, interpolating function, rendering function, drafting function and labelling function are successively called, generates precipitation isohyetal line destination file;
S4, it is based on Web server release process, data file needed for isopleth will be generated using Web service technology, parameter text Part and destination file serviceization are integrated.
2. one kind according to claim 1 precipitation isohyetal line service creation method easy of integration, which is characterized in that step S1 Described in rainfall data input file include rainfall point coordinate and rainfall value.
3. one kind according to claim 1 precipitation isohyetal line service creation method easy of integration, which is characterized in that step S2 Described in parameter include interpolation parameter, rendering parameter, spacing parameter and label parameters;The parameter configuration files include inserting Value parameter configuration file, rendering parameter configuration file and label parameters configuration file.
4. one kind according to claim 3 precipitation isohyetal line service creation method easy of integration, which is characterized in that described Spacing parameter is string format, and string value is the spacing size of isopleth.
5. one kind according to claim 3 precipitation isohyetal line service creation method easy of integration, which is characterized in that described Interpolation parameter configuration file content includes rainfall data input file address, rainfall data coordinate system and rainfall data format.
6. one kind according to claim 3 precipitation isohyetal line service creation method easy of integration, which is characterized in that described Rendering parameter configuration file content includes rainfall value and the corresponding rgb color numerical value of rainfall value.
7. one kind according to claim 3 precipitation isohyetal line service creation method easy of integration, which is characterized in that described Label parameters configuration file content includes the type and output address of geographic coordinate system, dimension style, output file.
8. one kind according to claim 1 precipitation isohyetal line service creation method easy of integration, which is characterized in that step S3 In interpolating function be the library GDAL gdal_grid function, rendering function is the gdal_dem function in the library GDAL, and drafting function is The gdal_contour function in the library GDAL, labelling function are the nik2img.py function in the library Mapnik.
9. one kind according to claim 8 precipitation isohyetal line service creation method easy of integration, which is characterized in that step S3 It is realized especially by following steps:
S31, gdal_grid interpolating function is called, is input parameter with rainfall data file, obtains rainfall contour surface grayscale image;
S32, it calls gdal_dem to render function, is input parameter with rainfall contour surface grayscale image, rendering colour band, obtains rainfall etc. Value face cromogram;
S33, gdal_contour drafting function is called to obtain rain using rainfall contour surface grayscale image, isopleth distance values as parameter Measure isopleth polar plot;
S34, nik2img.py function is called, is input parameter with precipitation isohyetal line polar plot, label parameters configuration file, obtains Isopleth with mark renders figure.
10. one kind according to claim 1 precipitation isohyetal line service creation method easy of integration, which is characterized in that step Web server release process in S4 is IIS program, and Web service technology is ASP.NET Web API technology, and serviceization is integrated Using ApiController method.
CN201810951673.3A 2018-08-21 2018-08-21 An easy-to-integrate method for generating rainfall contour services Pending CN109343830A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810951673.3A CN109343830A (en) 2018-08-21 2018-08-21 An easy-to-integrate method for generating rainfall contour services

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810951673.3A CN109343830A (en) 2018-08-21 2018-08-21 An easy-to-integrate method for generating rainfall contour services

Publications (1)

Publication Number Publication Date
CN109343830A true CN109343830A (en) 2019-02-15

Family

ID=65296885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810951673.3A Pending CN109343830A (en) 2018-08-21 2018-08-21 An easy-to-integrate method for generating rainfall contour services

Country Status (1)

Country Link
CN (1) CN109343830A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117235196A (en) * 2023-08-22 2023-12-15 中国航空工业集团公司西安航空计算技术研究所 A method to query obstacle points across graphs based on GDAL management DEM

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050285876A1 (en) * 2004-06-29 2005-12-29 Piotr Balaga Composition of raster and vector graphics in geographical information systems
CN107680148A (en) * 2017-09-28 2018-02-09 天津市环境监测中心 A method of real-time generating contour map based on monitoring data
CN108364331A (en) * 2018-02-13 2018-08-03 北京佳格天地科技有限公司 A kind of isopleth generation method, system and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050285876A1 (en) * 2004-06-29 2005-12-29 Piotr Balaga Composition of raster and vector graphics in geographical information systems
CN107680148A (en) * 2017-09-28 2018-02-09 天津市环境监测中心 A method of real-time generating contour map based on monitoring data
CN108364331A (en) * 2018-02-13 2018-08-03 北京佳格天地科技有限公司 A kind of isopleth generation method, system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
缄默HONG: "GDAL生成等高线——等值线", 《HTTPS://BLOG.CSDN.NET/HONG__FANG/ARTICLE/DETAILS/51605030》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117235196A (en) * 2023-08-22 2023-12-15 中国航空工业集团公司西安航空计算技术研究所 A method to query obstacle points across graphs based on GDAL management DEM

Similar Documents

Publication Publication Date Title
Fatima et al. Sectoral CO2 emissions in China: asymmetric and time-varying analysis
CN104239617A (en) Thermodynamic diagram showing method and device
CN102521403A (en) Refined meteorological information service system
CN110211484B (en) Electronic price tag display method, system, server and storage medium
CN113076373B (en) Sea area flow field and dredging depth real-time hydrologic monitoring big data display and space query method and system
CN104851047A (en) Agricultural meteorological factor online spatial visualization analysis method
US12026807B2 (en) Heat map generation method, server side, and readable storage medium
CN104166549A (en) Meteorological element contour surface analysis platform and construction method
CN101587504A (en) Custom curved surface test report system and custom surface test report method
CN109343830A (en) An easy-to-integrate method for generating rainfall contour services
He Food security and agriculture value-added: Do they asymmetrically matter for Korean environmental sustainability?
CN115510173B (en) A DAS-based intelligent thematic map production method, device and product
CN101794240B (en) Method and system for aggregating data content
CN107038199A (en) A kind of drawing practice and device
CN110991156B (en) Automatic report generation method based on ship numerical virtual test
CN103345769A (en) Full-path remote-sensing image thematic charting method
Ti et al. Automated generation of schematic network maps adaptive to display sizes
US9835458B2 (en) Ship assignment device, ship assignment method, program, and recording medium
CN109241750B (en) Method for changing display style of individual English letters
CN105589982A (en) Method and device for importing design drawings on basis of symbol templates
CN110569292A (en) Data annotation method and system based on electronic map
Soundararaj et al. Australian property market explorer–a front-end native tool for visualizing property sales data
CN110413356A (en) Visual display method and device for user data, electronic equipment and storage medium
CN102495859B (en) The method of expanding hydrological complex data types based on ArcGIS Engine
Hennig et al. Re-Mapping the World’s Population

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190215