Jannik-Schilling / generate_swmm_inp

a QGIS plugin for the import and export of SWMM input files (conversion of geodata, e.g. shapefiles or geopackage into SWMM models and vice versa)
GNU General Public License v2.0
35 stars 10 forks source link

Can't name the conduit columns as "Shape" #78

Closed Utsav1234567 closed 3 months ago

Utsav1234567 commented 9 months ago

When I try to rename the attribute column for any shapefile to "Shape", QGIS returns an error message "Invalid field name. This field name is reserved and cannot be used." . Without renaming the column to Shape, I am not able to create inp file using the conduit shapefile.

Any solution to this problem?

Mariosmsk commented 9 months ago

Export your data as a GeoPackage. Add a new column named Shape to the GeoPackage. Re-export the data to a shapefile

Jannik-Schilling commented 4 months ago

https://github.com/Jannik-Schilling/generate_swmm_inp/commit/62305086da33ade61687356a5ca05350c5f52d93

Jannik-Schilling commented 4 months ago

After some discussions, the column name "Shape" will be replaced by "XsectShape". In the next versions of the plugin, a deprecation warning will appear.