Research on the Construction Method of the Service-Oriented Web-SWMM System
Abstract
:1. Introduction
2. SWMM Service
2.1. Encapsulating and Packaging SWMM
- In the MDL file, the ModelClass node is used to summarize the SWMM service. In this node, the name (the name of the model service), uid (the GUID used to distinguish the model service), and style (the style of the model service, which is a simple calculation model service for SWMM) are specified. An example is shown in Figure 2.
- The model description interface is implemented by describing the categories and related concepts of SWMM in the AttributeSet node of the MDL file. In the category subnode, the path attributes are specified to describe where the model is located in the classification system. LocalAttributes subnode assigns local language (the language used to describe this node), localName (the name of the model described in local language), and wiki (the url associated with SWMM, such as the address of the introduction entry for SWMM on the OpenGMS platform) attributes. Keywords subnode lists the keywords for the model, and Abstract subnode gives a brief introduction of the model. An example is shown in Figure 3.
- The model execution interface is described in the behavior node of the MDL and programmed to implement the interface.First, the input, output, and execution behavior of SWMM are analyzed and described in the StateGroup node of the MDL file:(1) The state subnode abstracts and describes the entire execution process of the SWMM program as a behavior. In this subnode, the id (uniquely identifies the execution behavior), name (name of the execution behavior), and description (description of model execution behavior) attributes are specified;(2) The behavior of the model request input data (.inp format data) and output result data (.rpt and .out format data) are abstracted into three events and described in three event subnodes. The three event subnodes specify the type (the input data is response, and the output data is noresponse) and optional (whether the data are optional) attributes. The rest of the properties are similar to those in the state subnode. An example is shown in Figure 4.Then, the model encapsulation code is written on the basis of the C# language: the path of the model input data (.inp format data) and the output data (.rpt and .out format data) is used as the command line parameter, and the swmm5.exe will be invoked by the command to drive the model to execute the original computing behavior. According to the description of the MDL file, the original behavior of the model is mapped to a standardized behavior by the model encapsulation SDK, thereby encapsulating the original model into a model with a standardized interface. The encapsulation code of the model execution interface is shown in Figure 5.
- The Runtime node of the MDL file describes the SWMM deployment interface:(1) The name attribute indicates the name of the runtime environment, the baseDir attribute, and the entry attribute express the path (for example, $(ModelServicePath)\model\) and name (for example, SwmmModel.exe) of the executable program formed by encapsulation code, and the version attribute expresses the version number of this model package (for example, Version 1.0).(2) The HardwareConfigures subnode expresses the hardware environment on which the model execution depends. For example, the memory size is 500 M, the disk space is 1 G, etc.(3) The SoftwareConfigures subnode describes the software environment information that the model runs depend on. For example, the running platform is Windows.The description of the SWMM deployment interface in the MDL is shown in Figure 6.
2.2. Model Deployment and Service Publishment
3. Web-SWMM Data Preparation Method
3.1. UDX Preparation of the SWMM Data
3.2. Conversion of UDX Data and SWMM Raw Data
4. Web-SWMM Online Service System
4.1. Data Module
4.1.1. UDX-Based Online Input Data Configuration Tool
4.1.2. Data Editing Tool
4.1.3. Data Visualization Tool
- To visualize the input data, the input data should be displayed on the geographic base map firstly. When building a base map, the OpenLayers front-end map service framework is used to load map service resources published by Open Street Map. Then, the display center of the map is specified by the coordinate range extracted from the geographic data and the projection coordinate system of the Proj4js format is assigned by the user. Finally, the OpenLayers vector map loading interface is used to accurately overlay the geographic data of the input data stream onto the geographic base map. The visualization of the input data is shown in Figure 14.
- To visualize the output data, based on the conversion method between the output data (specifically, the data in the .rpt file) and the UDX data mentioned above, the SWMM output data is converted into the UDX format. The UDX-based output data visualization tool is built. The nodes in the UDX schema are selected as the X-axis and Y-axis in the visualization chart to visualize the SWMM output data, as shown in Figure 15.
4.2. Model Module
4.2.1. Computing Node Selection
4.2.2. Model Service Migration
4.2.3. Model Control
5. Prototype Implementation and Experimental Study
- The basic geographic data of the Meisong Garden Community is collected and processed, and the rainwater wells (1~108) are numbered. Using the rainwater well as the center, combining the topography factors and taking into account the water-proof effect of the building, the experimental area is divided into 84 subcatchments. In addition, the geographic data and related attribute data are organized into the input data of the UDX format required by the Web-SWMM system, using the UDX-based online data configuration tool.
- According to the rain experience formula of the Suzhou region, the Chicago rain type generator is used to simulate a heavy rain, with a return period of 2 years and a rainfall duration of 2 h, and the rainfall sequence is integrated into the UDX input file.
- The coordinate system information is obtained from the metadata, and the coordinate system information of the Proj4js format is entered into the coordinate system input box of the Web-SWMM system to ensure that the data is loaded to the exact position on the map.
- Uploading the input data in the UDX format through the upload button of the Web-SWMM page, the data on the geographic base map can be browsed. By editing the input data through the data editor, the unreasonable attribute values can be modified. In addition, the required parameters is set by the parameter setting tool (such as simulation start and end time and time step). This process is shown in Figure 18.
- After browsing and modifying the data, by clicking the model calculation button, a suitable computing node is selected and the model service published by the model service wrapper is called to calculate; then, the calculation result is sent back. The visualization button is clicked to visualize the .rpt file online, and the download button is clicked to download the .rpt file and .out file to the local. As shown in Figure 19, (a) is an online visualization of the conduits’ max depth in the output data and (b) is an online visualization of the nodes’ max depth in the output data.
6. Conclusion and Future Work
- This paper adopts manual programming to implement the packaging of SWMM. In the future, an automated model encapsulating and packaging tool should be built to reduce the labor cost and technical threshold of encapsulating the model.
- The data preprocessing function should be enhanced to provide a richer UDX online data configuration tool, such as providing a real-time online rainfall data format to UDX format online conversion tool, so that the user no longer needs to carry out complicated data preparation and preprocessing work, which would make it convenient to use SWMM to perform real-time rainfall-flood simulation and master the simulation results in real time.
- The web service mode of SWMM should be extended to additional hydrological models to form a hydrological model service theme, which would more effectively promote the sharing and use of hydrological models.
Author Contributions
Funding
Conflicts of Interest
References
- Huong, H.T.L.; Pathirana, A. Urbanization and climate change impacts on future urban flooding in Can Tho city, Vietnam. Hydrol. Earth Syst. Sci. 2013, 17, 379–394. [Google Scholar] [Green Version]
- Doocy, S.; Daniels, A.; Murray, S.; Kirsch, T.D. The human impact of floods: A historical review of events 1980-2009 and systematic literature review. PLoS Curr. 2013, 5, 1808–1815. [Google Scholar]
- Kefi, M.; Mishra, B.; Kumar, P.; Masago, Y.; Fukushi, K. Assessment of tangible direct flood damage using a spatial analysis approach under the effects of climate change: Case study in an urban watershed in Hanoi, Vietnam. ISPRS Int. J. Geo-Inf. 2018, 7, 29. [Google Scholar]
- Jiang, L.; Chen, Y.; Wang, H. Urban flood simulation based on the SWMM model. Proc. Int. Assoc. Hydrol. Sci. 2015, 368, 186–191. [Google Scholar]
- Eisman, E.; Gebelein, J.; Breslin, T.A. Developing a geographically weighted complex systems model using open-source data to highlight locations vulnerable to becoming terrorist safe-havens. Ann. GIS 2017, 23, 251–267. [Google Scholar]
- Flesch, T.K.; Reuter, G.W. WRF model simulation of two Alberta flooding events and the impact of topography. J. Hydrometeorol. 2012, 13, 695–708. [Google Scholar]
- Rossman, L.A.; Dickinson, R.E.; Schade, T.; Chan, C.C.; Burgess, E.; Sullivan, D.; Lai, F.H. SWMM 5-the Next Generation of EPA’s Storm Water Management Model. J. Water Manag. Model. 2004. [Google Scholar] [CrossRef]
- Niazi, M.; Nietch, C.; Maghrebi, M.; Jackson, N.; Bennett, B.R.; Tryby, M.; Massoudieh, A. Storm water management model: Performance review and gap analysis. J. Sustain. Water Built Environ. 2017, 3, 04017002. [Google Scholar]
- Burszta-Adamiak, E.; Mrowiec, M. Modelling of green roofs’ hydrologic performance using EPA’s SWMM. Water Sci. Technol. 2013, 68, 36–42. [Google Scholar]
- Seo, D.; Fang, T. Application of automatic stormwater monitoring system and SWMM model for estimation of urban pollutant loading during storm events. J. Korean Soc. Environ. Eng. 2012, 34, 373–381. [Google Scholar]
- Bisht, D.S.; Chatterjee, C.; Kalakoti, S.; Upadhyay, P.; Sahoo, M.; Panda, A. Modeling urban floods and drainage using SWMM and MIKE URBAN: A case study. Nat. Hazards 2016, 84, 749–776. [Google Scholar]
- Granata, F.; Gargano, R.; Marinis, G. Support vector regression for rainfall-runoff modeling in urban drainage: A comparison with the EPA’s storm water management model. Water 2016, 8, 69. [Google Scholar]
- Baek, S.S.; Choi, D.H.; Jung, J.W.; Lee, H.J.; Lee, H.; Yoon, K.S.; Cho, K.H. Optimizing low impact development (LID) for stormwater runoff treatment in urban area, Korea: Experimental and modeling approach. Water Res. 2015, 86, 122–131. [Google Scholar]
- Mitsova, D. Coupling land use change modeling with climate projections to estimate seasonal variability in runoff from an urbanizing catchment near Cincinnati, Ohio. ISPRS Int. J. Geo-Inf. 2014, 3, 1256–1277. [Google Scholar]
- Huber, W.; Roesner, L. The History and Evolution of the EPA SWMM. In Proceedings of the Fifty Years of Watershed Modeling-Past, Present & Future, Boulder, CO, USA, 24–26 September 2012. [Google Scholar]
- Rossman, L.A. Chapter 1 Introduction. In Storm Water Management Model User’s Manual; Version 5.0; National Risk Management Research Laboratory, Office of Research and Development, US Environmental Protection Agency: Cincinnati, OH, USA, 2010; pp. 1–3. [Google Scholar]
- Huber, W.C.; Rossman, L.A.; Dickinson, R.E. EPA storm water management model, SWMM5. In Watershed Modeling; CRC Press: Boca Raton, FL, USA, 2005; pp. 339–361. [Google Scholar]
- Gironás, J.; Roesner, L.A.; Rossman, L.A.; Davis, J. A new applications manual for the Storm Water Management Model (SWMM). Environ. Model. Softw. 2010, 25, 813–814. [Google Scholar]
- Sharifan, R.A.; Roshan, A.; Aflatoni, M.; Jahedi, A.; Zolghadr, M. Uncertainty and sensitivity analysis of SWMM model in computation of manhole water depth and subcatchment peak flood. Procedia-Soc. Behav. Sci. 2010, 2, 7739–7740. [Google Scholar]
- Rosa, D.J.; Clausen, J.C.; Dietz, M.E. Calibration and verification of SWMM for low impact development. JAWRA J. Am. Water Resour. Assoc. 2015, 51, 746–757. [Google Scholar]
- Barco, J.; Wong, K.M.; Stenstrom, M.K. Automatic calibration of the US EPA SWMM model for a large urban catchment. J. Hydraul. Eng. 2008, 134, 466–474. [Google Scholar]
- Jang, S.; Cho, M.; Yoon, J.; Yoon, Y.; Kim, S.; Kim, G.; Kim, L.; Aksoy, H. Using SWMM as a tool for hydrologic impact assessment. Desalination 2007, 212, 344–356. [Google Scholar]
- Temprano, J.; Arango, Ó.; Cagiao, J.; Suárez, J.; Tejero, I. Stormwater quality calibration by SWMM: A case study in Northern Spain. Water Sa 2005, 32, 55–63. [Google Scholar]
- Zhang, S.; Guo, Y. SWMM simulation of the storm water volume control performance of permeable pavement systems. J. Hydrol. Eng. 2014, 20, 06014010. [Google Scholar]
- Lowe, S.A. Sanitary sewer design using EPA storm water management model (SWMM). Comput. Appl. Eng. Educ. 2010, 18, 203–212. [Google Scholar]
- Armah, F.A.; Yawson, D.O.; Yengoh, G.T.; Odoi, J.O.; Afrifa, E.K. Impact of floods on livelihoods and vulnerability of natural resource dependent communities in Northern Ghana. Water 2010, 2, 120–139. [Google Scholar]
- Kaźmierczak, A.; Cavan, G. Surface water flooding risk to urban communities: Analysis of vulnerability, hazard and exposure. Landsc. Urban Plan. 2011, 103, 185–197. [Google Scholar]
- Middelmann-Fernandes, M.H. Flood damage estimation beyond stage–damage functions: An Australian example. J. Flood Risk Manag. 2010, 3, 88–96. [Google Scholar]
- Zou, L.; Ge, C.; Wang, Z.; Cretu, E.; Li, X. Novel tactile sensor technology and smart tactile sensing systems: A review. Sensors 2017, 17, 2653. [Google Scholar]
- Ummartyotin, S.; Manuspiya, H. A critical review on cellulose: From fundamental to an approach on sensor technology. Renew. Sustain. Energy Rev. 2015, 41, 402–412. [Google Scholar]
- Madakam, S.; Ramaswamy, R.; Tripathi, S. Internet of Things (IoT): A literature review. J. Comput. Commun. 2015, 3, 164. [Google Scholar]
- Smith, L.; Liang, Q.; James, P.; Lin, W. Assessing the utility of social media as a data source for flood risk management using a real-time modelling framework. J. Flood Risk Manag. 2017, 10, 370–380. [Google Scholar]
- Krajewski, W.F.; Ceynar, D.; Demir, I.; Goska, R.; Kruger, A.; Langel, C.; Mantilla, R.; Niemeier, J.; Quintero, F.; Seo, B.C.; et al. Real-time flood forecasting and information system for the state of Iowa. Bull. Am. Meteorol. Soc. 2017, 98, 539–554. [Google Scholar]
- Horsburgh, J.S.; Morsy, M.M.; Castronova, A.M.; Goodall, J.L.; Gan, T.; Yi, H.; Stealey, M.J.; Tarboton, D.G. HydroShare: Sharing Diverse Environmental Data Types and Models as Social Objects with Application to the Hydrology Domain. JAWRA J. Am. Water Resour. Assoc. 2016, 52, 873–889. [Google Scholar]
- Peckham, S.D.; Hutton, E.W.H.; Norris, B. A component-based approach to integrated modeling in the geosciences: The design of CSDMS. Comput. Geosci. 2013, 53, 3–12. [Google Scholar]
- Lin, H.; Chen, M. Managing and sharing geographic knowledge in virtual geographic environments (VGEs). Ann. GIS 2015, 21, 261–263. [Google Scholar]
- Chen, M.; Lin, H.; Kolditz, O.; Chen, C. Developing dynamic virtual geographic environments (VGEs) for geographic research. Environ. Earth Sci. 2015, 10, 6975–6980. [Google Scholar]
- Lin, H.; Chen, M.; Lü, G.N. Virtual geographic environment: A workspace for computer-aided geographic experiments. Ann. Assoc. Am. Geogr. 2013, 103, 465–482. [Google Scholar]
- Wen, Y.N.; Chen, M.; Lü, G.N.; Lin, H.; He, L.; Yue, S. Prototyping an open environment for sharing geographical analysis models on cloud computing platform. Int. J. Digit. Earth 2013, 6, 356–382. [Google Scholar]
- Lin, H.; Chen, M.; Lü, G.N.; Zhu, Q.; Gong, J.; You, X.; Wen, Y.; Xu, B.; Hu, M. Virtual geographic environments (VGEs): A new generation of geographic analysis tool. Earth-Sci. Rev. 2013, 126, 74–84. [Google Scholar]
- Chen, M.; Yue, S.S.; Lü, G.N.; Lin, H.; Yang, C.W.; Wen, Y.N.; Hou, T.; Xiao, D.W. Teamwork-oriented integrated modeling method for geo-problem solving. Environ. Model. Softw. 2019. [Google Scholar] [CrossRef]
- Yue, S.S.; Chen, M.; Wen, Y.N.; Lü, G.N. Service-oriented model-encapsulation strategy for sharing and integrating heterogeneous geo-analysis models in an open web environment. ISPRS J. Photogramm. Remote Sens. 2016, 114, 258–273. [Google Scholar]
- Yue, S.S.; Chen, M.; Yang, C.W.; Shen, C.R.; Zhang, B.W.; Wen, Y.N.; Lü, G.N. A loosely integrated data configuration strategy for web-based participatory modeling. Gisci. Remote Sens. 2019, 56, 670–698. [Google Scholar]
- Wen, Y.N.; Chen, M.; Yue, S.S.; Zheng, P.; Peng, G.; Lu, G. A model-service deployment strategy for collaboratively sharing geo-analysis models in an open web environment. Int. J. Digit. Earth 2017, 10, 405–425. [Google Scholar]
- Zhang, F.Y.; Chen, M.; Ames, D.P.; Shen, C.R.; Yue, S.S.; Wen, Y.N.; Lü, G.N. Design and development of a service-oriented wrapper system for sharing and reusing distributed geoanalysis models on the web. Environ. Model. Softw. 2019, 111, 498–509. [Google Scholar]
- Yue, S.S.; Wen, Y.N.; Chen, M.; Lü, G.N.; Hu, D.; Zhang, F. A data description model for reusing, sharing and integrating geo-analysis models. Environ. Earth Sci. 2015, 74, 7081–7099. [Google Scholar]
- Wang, M.; Chen, M.; Zhang, F.Y.; Yue, S.S.; Wen, Y.N.; Lü, G.N. Research on Service-oriented Encapsulation Method for OMS Platform Model. Geomat. World 2018, 25, 11–16. [Google Scholar]
- Wang, J.; Chen, M.; Lü, G.N.; Yue, S.S.; Chen, K.; Wen, Y.N. A Study on Data Processing Services for the Operation of Geo-Analysis Models in the Open Web Environment. Earth Space Sci. 2018, 5, 844–862. [Google Scholar]
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Xiao, D.; Chen, M.; Lu, Y.; Yue, S.; Hou, T. Research on the Construction Method of the Service-Oriented Web-SWMM System. ISPRS Int. J. Geo-Inf. 2019, 8, 268. https://doi.org/10.3390/ijgi8060268
Xiao D, Chen M, Lu Y, Yue S, Hou T. Research on the Construction Method of the Service-Oriented Web-SWMM System. ISPRS International Journal of Geo-Information. 2019; 8(6):268. https://doi.org/10.3390/ijgi8060268
Chicago/Turabian StyleXiao, Dawei, Min Chen, Yuchen Lu, Songshan Yue, and Tao Hou. 2019. "Research on the Construction Method of the Service-Oriented Web-SWMM System" ISPRS International Journal of Geo-Information 8, no. 6: 268. https://doi.org/10.3390/ijgi8060268
APA StyleXiao, D., Chen, M., Lu, Y., Yue, S., & Hou, T. (2019). Research on the Construction Method of the Service-Oriented Web-SWMM System. ISPRS International Journal of Geo-Information, 8(6), 268. https://doi.org/10.3390/ijgi8060268