USEPA / SWMM-EPANET_User_Interface

User interface for the Stormwater-Management-Model
113 stars 67 forks source link

SWMM_MTP4-r2_Auto-length #187

Closed barrc closed 5 years ago

barrc commented 6 years ago

Auto-length is on by default but does not work. Drawing subcatchments or links with auto-length on still gives them the default area or length.

PaulDudaRESPEC commented 5 years ago

tested using standard test Tuturial1.inp for SWMM, note that the crs has to be set before auto-length will work.

barrc commented 4 years ago

@PaulDudaRESPEC thanks for fixing this! Can you help me figure out how to set the crs? I tried loading a shapefile with a defined projection and poking around in the menus but I couldn't figure it out.

PaulDudaRESPEC commented 4 years ago

@barrc If you load a shapefile with a defined CRS (toolbar button 'Add a Vector Layer'), that should do it, unless there's something about the particular CRS that is unrecognized -- you should be able to go on and draw your nodes, conduits, subcatchments, etc, and see that they get assigned lengths and areas appropriately. There's also a feature under the menu 'View:Translate Coordinates' that allows the user to set the CRS, but I just noticed it isn't quite storing the information as it should, so I'll touch that up.

barrc commented 4 years ago

Just to follow up, I've successfully loaded a shapefile with a defined CRS and drawn conduits/subcatchments and had their lengths and areas assigned appropriately.