qgisred / QGISRed

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

Error importing lines SHP #48

Closed mcarvajalino closed 3 years ago

mcarvajalino commented 3 years ago

Hi,

Little weird behavior here: I have a lines (pipes) SHP that I initially imported with "Add data" without a problem, but then I realized there were some pipes that were not connected and decided to fix the original shapefile and reload the file (erased the previous QGISred project and started a new one). Now the "add data" routine shows me this error all the time:

CRITICAL    Error : at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) 
              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, Double tolerance) 
              at GISRed.QGisPlugins.QGisPlugins.ImportFromShps(String dirPath, String networkName, String tempPath, String shapes, String fields, String epsg, String tolerance)

It it the exact same file that worked before, I just extended a coupe of the lines to connect to existing manholes.. Have tried loading them in a completely new project, leaving all the import fields as "none", but nothing seems to work. Any suggestion?.

I'm attaching the shapefile and the fields association I am using Linjer.zip Field association

neslerel commented 3 years ago

Hi @mcarvajalino,

It seems that there is one feature in this layer that has not geometric data. You can follow next process to detect it and delete it (Supr. or Del key when it is selected in attribute table). duNjCyDXHe

Tomorrow I will try to fix this error with this type of feature (witout geometry). Thanks for your message!

mcarvajalino commented 3 years ago

Thanks a lot @neslerel! silly me not noticing the non-geometric feature before... one of those "standing too close to the problem" issues. Now it works like a charm!