Using Ruby to Export ICM InfoWorks Node, Link, and Subcatchment Grid Data to Shapefiles and a Custom Folder
Robert Dickinson
Autodesk Water Technologist for Storm Sewer and Flood | Expert in ICM InfoWorks ICM SWMM/Ruby | 18 Years at Innovyze/Autodesk | 51 Years with EPASWMM
This Ruby script is designed to export GIS data from an ICM InfoWorks network to a shapefile (SHP) format. Here’s a summary of its operation:
This script provides a flexible way to export GIS data from ICM InfoWorks to various formats. It allows you to customize the tables to be exported and the export options. It also includes user prompts for a more interactive experience. The exported data can then be used for further analysis or visualization in GIS applications.
The End Result is a Shape file for Each Table
The Ruby Code is on our Github 01 InfoWorks ICM/01 Ruby/02 SWMM/0114 - GIS Export of Data Tables
领英推荐
This code can be used for ICM SWMM as well by changing hw for InfoWork to sw for SWMM
# Create an array for the tables to be exported for ICM InfoWorks
#
export_tables = ["hw_node","hw_conduit","hw_subcatchment"]
# Create an array for the tables to be exported for ICM SWMM
#export_tables = ["sw_node","sw_conduit","sw_subcatchment"]
Closing Note:
Thank you for reading these articles. I appreciate your engagement and support. Thank you again, and I hope you'll join me on this ongoing journey of learning and discovery. Until next time!