CN109343830A - A kind of precipitation isohyetal line service creation method easy of integration - Google Patents

A kind of precipitation isohyetal line service creation method easy of integration 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
function
parameter
rainfall
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; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas 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

The invention discloses a kind of precipitation isohyetal line service creation methods easy of integration, comprising 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, Parameter File and destination file service needed for generating isopleth using Web service technology integrate.The method of the present invention is simply easily achieved, and while meeting the needs of Water Information System generates precipitation isohyetal line, is greatly reduced technical costs and economic cost that Water Information System develops integrated precipitation isohyetal line service, is conducive to promote the use of.

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 A kind of precipitation isohyetal line service creation method easy of integration Pending CN109343830A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810951673.3A CN109343830A (en) 2018-08-21 2018-08-21 A kind of precipitation isohyetal line service creation method easy of integration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810951673.3A CN109343830A (en) 2018-08-21 2018-08-21 A kind of precipitation isohyetal line service creation method easy of integration

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 A kind of precipitation isohyetal line service creation method easy of integration

Country Status (1)

Country Link
CN (1) CN109343830A (en)

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 kind of method for generating isogram in real time 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 kind of method for generating isogram in real time 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》 *

Similar Documents

Publication Publication Date Title
CN105138793B (en) Distribution network line QuickDraw method
CN104239617A (en) Thermodynamic diagram showing method and device
WO2008031085A2 (en) System and method for web enabled geo-analytics and image processing
CN108062453B (en) Flood high-efficiency simulation and high-fidelity visual dynamic display method for water conservancy information system
CN102289840B (en) Volume rendering method for designing color transmission function for color blindness
CN104317943A (en) Graphical report displaying method and system for assessment system
CN104166549A (en) Meteorological element contour surface analysis platform and construction method
Wang et al. Spatial and temporal variation of offshore wind power and its value along the Central California Coast
US20230177743A1 (en) Heat map generation method, server side, and readable storage medium
CN104240273A (en) Raster image processing method and device
CN107038199A (en) A kind of drawing practice and device
CN109343830A (en) A kind of precipitation isohyetal line service creation method easy of integration
CN110211484B (en) Electronic price tag display method, system, server and storage medium
CN106157284B (en) The localization method and device of character area in image
CN113076373B (en) Sea area flow field and dredging depth real-time hydrologic monitoring big data display and space query method and system
CN109446286B (en) Visualization method and device for highway road network map
US9835458B2 (en) Ship assignment device, ship assignment method, program, and recording medium
CN104573239A (en) High spatial resolution remote sense image-based tidal flat DEM (Digital Elevation Model) optimization method
CN105205726A (en) Hydropower station operating and reservoir dispatching data quick generation method
CN111259094B (en) Drawing exporting method based on external line resources
Li A method for building thematic map of GIS based on Google Maps API
Hennig et al. Re-Mapping the World’s Population
CN110378977A (en) Computer graphical symbolic formulation method, electronic equipment, storage medium
CN109101618A (en) A kind of graphic data base and its management system for foundation of protecting national resource
CN114239096B (en) Method for establishing automatic soil erosion type graph drawing model based on ArcGIS

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

Application publication date: 20190215

RJ01 Rejection of invention patent application after publication