qgisred / QGISRed

GNU General Public License v2.0
23 stars 8 forks source link

Import Tanks from shape raise an error #17

Closed tproduit closed 3 years ago

tproduit commented 4 years ago

When I try to import a shape file containing the tanks this error is raised:

2020-04-16T10:25:20     CRITICAL    Error : at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) 
              at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) 
              at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) 
              at ?????????????????????????????????????????.?????????????????????????????????????????(IEnumerable`1 , String ) 
              at ?????????????????????????????????????????.?????????????????????????????????????????(List`1 , Boolean , Boolean , List`1 ) 
              at GISRed.ExtendedModel.ExtendedScenario.ReadShpsFolder(Logger logger, String titleFile, List`1 shapeFiles, List`1 dbfFiles, List`1 fields, Boolean checkIds, Boolean checkCoord) 
              at GISRed.QGisPlugins.QGisPlugins.ImportFromShps(String dirPath, String networkName, String tempPath, String shapes, String fields)

To reproduce the error:

neslerel commented 4 years ago

Hi @tproduit, Yes, we detected this error after the release of last version. It will be fixed in next version.

Thanks for writting the issue!

neslerel commented 4 years ago

Same as the other issue: Can you test if the error is fixed? If yes, we can close the issue,

Thanks!