MathieuChailloux / BioDispersal

QGIS plugin to compute ecolgical continuities
GNU General Public License v3.0
7 stars 1 forks source link

Biodispersal , [user error] path does not exist : #8

Closed PVillaespesa closed 4 years ago

PVillaespesa commented 4 years ago

Hi, I have an error i don't understand from where she come from.

[2020-02-25 15:35:02.238806] [user error] path does not exist : C:\Users\Admin\Desktop\Caille\Projet 2\BioDispersal\Groups\Rail\Rail.tif

I hope my message is mot too long ,

Best regards

That is the code in Debug: [2020-02-25 15:34:42.879578] [debug] [loadNTab] 2 [2020-02-25 15:34:42.879578] [debug] Help file = C:/Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\BioDispersal\help\selectionHelp-fr.html [2020-02-25 15:34:42.879578] [debug] path = C:\Users\Admin\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\BioDispersal\help\selectionHelp-fr.html [2020-02-25 15:34:42.879578] [debug] pathparts = ('C:\', 'Users', 'Admin', 'AppData', 'Roaming', 'QGIS', 'QGIS3', 'profiles', 'default', 'python', 'plugins', 'BioDispersal', 'help', 'selectionHelp-fr.html') [2020-02-25 15:34:45.806892] [debug] [3] [2020-02-25 15:34:45.822158] [debug] fv = 0.0 [2020-02-25 15:34:45.822158] [info] **** BEGIN : Selection [2020-02-25 15:34:45.822158] [debug] extent_path = C:\Users\Admin\Desktop\Caille\Projet 2\Shapfiles\NLD_adm0.shp [2020-02-25 15:34:45.822158] [debug] path = C:\Users\Admin\Desktop\Caille\Projet 2\Shapfiles\NLD_adm0.shp [2020-02-25 15:34:45.822158] [debug] pathparts = ('C:\', 'Users', 'Admin', 'Desktop', 'Caille', 'Projet 2', 'Shapfiles', 'NLD_adm0.shp') [2020-02-25 15:34:45.824680] [debug] layer : AP [2020-02-25 15:34:45.824680] [debug] layer : Land Cover [2020-02-25 15:34:45.824680] [debug] layer : Luchtfoto Actueel Ortho 25cm Infrarood [2020-02-25 15:34:45.824680] [debug] layer : Luchtfoto Actueel Ortho 25cm RGB [2020-02-25 15:34:45.824680] [debug] layer : NLD_adm0 [2020-02-25 15:34:45.824680] [debug] layer : Rail [2020-02-25 15:34:45.824680] [debug] layer : Route [2020-02-25 15:34:45.824680] [debug] layer : Utilisation du sol [2020-02-25 15:34:45.824680] [debug] layer : opentopoachtergrondkaart [2020-02-25 15:34:45.824680] [debug] Deleting existing file 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_vector.shp' [2020-02-25 15:34:45.828946] [debug] layer : AP [2020-02-25 15:34:45.828946] [debug] layer : Land Cover [2020-02-25 15:34:45.828946] [debug] layer : Luchtfoto Actueel Ortho 25cm Infrarood [2020-02-25 15:34:45.828946] [debug] layer : Luchtfoto Actueel Ortho 25cm RGB [2020-02-25 15:34:45.828946] [debug] layer : NLD_adm0 [2020-02-25 15:34:45.828946] [debug] layer : Rail [2020-02-25 15:34:45.828946] [debug] layer : Route [2020-02-25 15:34:45.828946] [debug] layer : Utilisation du sol [2020-02-25 15:34:45.828946] [debug] layer : opentopoachtergrondkaart [2020-02-25 15:34:45.828946] [debug] Deleting existing file 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_raster.tif' [2020-02-25 15:34:46.026333] [debug] Deleting existing file 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_raster.tif.aux.xml' [2020-02-25 15:34:46.027331] [debug] parameters : {'INPUT': 'C:\Users\Admin\Desktop\Caille\Projet 2\Shapfiles\Rail.shp', 'FIELD': 'type', 'GROUP': 'Rail', 'ASSOC': ['subway', 21, 'rail', 22, 'lightrail', 23, 'construction', 24, 'preserved', 25, 'siding', 26, 'tram', 27, 'narrowgauge', 28, 'platform', 29, 'abandoned', 30, 'industrial', 31, 'disused', 32, 'station', 33], 'OUTPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_vector.shp'} [2020-02-25 15:34:46.027331] [info] Calling processing algorithm 'BioDispersal:selectvfield' [2020-02-25 15:34:46.027331] [debug] context = None [2020-02-25 15:34:46.027331] [debug] complete_name = BioDispersal:selectvfield [2020-02-25 15:34:46.027331] [debug] feedback = ProgressMultiStepFeedback [2020-02-25 15:34:46.077097] [debug] input = [2020-02-25 15:34:46.100945] [debug] assoc_table : {'subway': 21, 'rail': 22, 'lightrail': 23, 'construction': 24, 'preserved': 25, 'siding': 26, 'tram': 27, 'narrowgauge': 28, 'platform': 29, 'abandoned': 30, 'industrial': 31, 'disused': 32, 'station': 33} [2020-02-25 15:34:46.100945] [debug] fv = 3.5 [2020-02-25 15:34:46.100945] [debug] fv = 7.5 [2020-02-25 15:34:46.100945] [debug] fv = 11.5 [2020-02-25 15:34:46.100945] [debug] fv = 15.0 [2020-02-25 15:34:46.100945] [debug] fv = 19.0 [2020-02-25 15:34:46.117843] [debug] fv = 23.0 [2020-02-25 15:34:46.117843] [debug] fv = 26.5 [2020-02-25 15:34:46.117843] [debug] fv = 30.5 [2020-02-25 15:34:46.117843] [debug] fv = 34.5 [2020-02-25 15:34:46.117843] [debug] fv = 38.0 [2020-02-25 15:34:46.194581] [debug] fv = 42.0 [2020-02-25 15:34:46.194581] [debug] fv = 46.0 [2020-02-25 15:34:46.194581] [debug] fv = 50.0

[2020-02-25 15:34:46.203837] [info] Résultats: {'OUTPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_vector.shp'} [2020-02-25 15:34:46.203837] [debug] res1 = {'OUTPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_vector.shp'} [2020-02-25 15:34:46.203837] [info] Call to selectvfield successful, performed in 0.17650604248046875 seconds [2020-02-25 15:34:46.203837] [debug] fv = 100.0 [2020-02-25 15:34:46.203837] [debug] [loadNTab] 7 [2020-02-25 15:34:46.203837] [debug] Help file = C:/Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\BioDispersal\help\logHelp-fr.html [2020-02-25 15:34:46.203837] [debug] path = C:\Users\Admin\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\BioDispersal\help\logHelp-fr.html [2020-02-25 15:34:46.203837] [debug] pathparts = ('C:\', 'Users', 'Admin', 'AppData', 'Roaming', 'QGIS', 'QGIS3', 'profiles', 'default', 'python', 'plugins', 'BioDispersal', 'help', 'logHelp-fr.html') [2020-02-25 15:34:46.203837] [debug] res = {'OUTPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_vector.shp'} [2020-02-25 15:34:46.203837] [debug] output = C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_vector.shp [2020-02-25 15:34:46.203837] [debug] output type = [2020-02-25 15:34:46.203837] [debug] End run selectvfield [2020-02-25 15:34:46.203837] [debug] fv = 100.0 [2020-02-25 15:34:46.220661] [debug] parameters : {'ALL_TOUCH': True, 'BURN': None, 'DATA_TYPE': 1, 'EXTENT': '724077.075995991,1003333.8665226534,7073230.861386129,7393753.937159971[]', 'FIELD': 'Code', 'HEIGHT': 10.0, 'INPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_vector.shp', 'NODATA': '-9999', 'OUTPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_raster.tif', 'UNITS': 1, 'WIDTH': 10.0} [2020-02-25 15:34:46.236864] [info] Calling processing algorithm 'BioDispersal:rasterizefixalltouch' [2020-02-25 15:34:46.236864] [debug] context = None [2020-02-25 15:34:46.236864] [debug] complete_name = BioDispersal:rasterizefixalltouch [2020-02-25 15:34:46.236864] [debug] feedback = ProgressMultiStepFeedback [2020-02-25 15:34:46.303327] [info] GDAL command: [2020-02-25 15:34:46.303327] [debug] gdal_rasterize -l Rail_vector -a Code -tr 10.0 10.0 -at -a_nodata -9999.0 -te 724077.075995991 7073230.861386129 1003333.8665226534 7393753.937159971 -ot Int16 -of GTiff "C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_vector.shp" "C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_raster.tif" [2020-02-25 15:34:46.303327] [info] GDAL command output: [2020-02-25 15:35:00.295248] [info] Résultats: {'OUTPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_raster.tif'} [2020-02-25 15:35:00.296207] [debug] res1 = {'OUTPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_raster.tif'} [2020-02-25 15:35:00.297099] [info] Call to rasterizefixalltouch successful, performed in 14.060235500335693 seconds [2020-02-25 15:35:00.297099] [debug] fv = 100.0 [2020-02-25 15:35:00.297099] [debug] res = {'OUTPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_raster.tif'} [2020-02-25 15:35:00.297099] [debug] output = C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_raster.tif [2020-02-25 15:35:00.297099] [debug] output type = [2020-02-25 15:35:00.297099] [debug] End run rasterizefixalltouch [2020-02-25 15:35:00.297099] [debug] path = C:\Users\Admin\Desktop\Caille\Projet 2\BioDispersal\Groups\Rail\Rail_raster.tif [2020-02-25 15:35:00.297099] [debug] pathparts = ('C:\', 'Users', 'Admin', 'Desktop', 'Caille', 'Projet 2', 'BioDispersal', 'Groups', 'Rail', 'Rail_raster.tif') [2020-02-25 15:35:00.669837] [debug] layer : AP [2020-02-25 15:35:00.669837] [debug] layer : Land Cover [2020-02-25 15:35:00.669837] [debug] layer : Luchtfoto Actueel Ortho 25cm Infrarood [2020-02-25 15:35:00.669837] [debug] layer : Luchtfoto Actueel Ortho 25cm RGB [2020-02-25 15:35:00.669837] [debug] layer : NLD_adm0 [2020-02-25 15:35:00.669837] [debug] layer : Rail [2020-02-25 15:35:00.669837] [debug] layer : Route [2020-02-25 15:35:00.669837] [debug] layer : Utilisation du sol [2020-02-25 15:35:00.669837] [debug] layer : opentopoachtergrondkaart [2020-02-25 15:35:01.656807] [debug] extent_layer_type = Vector [2020-02-25 15:35:01.673367] [debug] Invalid vector layer 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_raster.tif' [2020-02-25 15:35:01.753474] [debug] Invalid vector layer 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_raster.tif' [2020-02-25 15:35:01.833307] [debug] initializing feedback [2020-02-25 15:35:01.833307] [debug] parameters : {'CROP_TO_CUTLINE': True, 'DATA_TYPE': 0, 'INPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_raster.tif', 'MASK': 'C:\Users\Admin\Desktop\Caille\Projet 2\Shapfiles\NLD_adm0.shp', 'OUTPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail.tif', 'SET_RESOLUTION': True, 'X_RESOLUTION': 10.0, 'Y_RESOLUTION': 10.0} [2020-02-25 15:35:01.837610] [info] Calling processing algorithm 'gdal:cliprasterbymasklayer' [2020-02-25 15:35:01.842920] [debug] context = None [2020-02-25 15:35:01.842920] [debug] complete_name = gdal:cliprasterbymasklayer [2020-02-25 15:35:01.843918] [debug] feedback = ProgressFeedback [2020-02-25 15:35:02.033434] [info] GDAL command: [2020-02-25 15:35:02.033434] [debug] gdalwarp -of GTiff -cutline "C:\Users\Admin\Desktop\Caille\Projet 2\Shapfiles\NLD_adm0.shp" -cl NLD_adm0 -crop_to_cutline "C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail_raster.tif" "C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail.tif" [2020-02-25 15:35:02.033434] [info] GDAL command output: [2020-02-25 15:35:02.204538] [warn] ERROR 1: Attempt to create 0x1 dataset is illegal,sizes must be larger than zero. [2020-02-25 15:35:02.228975] [info] Résultats: {'OUTPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail.tif'} [2020-02-25 15:35:02.229349] [debug] res1 = {'OUTPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail.tif'} [2020-02-25 15:35:02.230347] [info] Call to cliprasterbymasklayer successful, performed in 0.38742733001708984 seconds [2020-02-25 15:35:02.230347] [debug] fv = 100.0 [2020-02-25 15:35:02.230347] [debug] res = {'OUTPUT': 'C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail.tif'} [2020-02-25 15:35:02.230347] [debug] output = C:/Users/Admin/Desktop/Caille/Projet 2/BioDispersal/Groups/Rail/Rail.tif [2020-02-25 15:35:02.230347] [debug] output type = [2020-02-25 15:35:02.230347] [debug] End run cliprasterbymasklayer [2020-02-25 15:35:02.238806] [debug] path = C:\Users\Admin\Desktop\Caille\Projet 2\BioDispersal\Groups\Rail\Rail.tif [2020-02-25 15:35:02.238806] [debug] pathparts = ('C:\', 'Users', 'Admin', 'Desktop', 'Caille', 'Projet 2', 'BioDispersal', 'Groups', 'Rail', 'Rail.tif') [2020-02-25 15:35:02.238806] [user error] path does not exist : C:\Users\Admin\Desktop\Caille\Projet 2\BioDispersal\Groups\Rail\Rail.tif [2020-02-25 15:35:02.238806] [debug] bioDispHook [2020-02-25 15:35:02.238806] [debug] Ignoring custom exception : path does not exist : C:\Users\Admin\Desktop\Caille\Projet 2\BioDispersal\Groups\Rail\Rail.tif

MathieuChailloux commented 4 years ago

Hello,

I guess you figured out why if you closed the issue ?

According to your log, it looks like an EPSG issue (not a projection but resolution is expressed in georeferenced unit such as meter).

PVillaespesa commented 4 years ago

Thank you for your answer,

I closed the topic because i was thinking it is the same problem than the ISSUE 6.

That is strange if is a georeference problem. Because that work well with my polygon shapfile and here with linear vector it is problematique.

I will try with all my vector in WGS84

MathieuChailloux commented 4 years ago

What was your initial EPSG and the one specified in BioDispersal project parameters ? It should be a projection, not a lat/lon, I think WGS84 will fail same way.

PVillaespesa commented 4 years ago

Hi, Must be that, because the SCR of BioDispersal was different than my project. No that work , just a bit slow. Because i work on the country level.

MathieuChailloux commented 4 years ago

Ok nice, I let you close the issue if this is OK for you. Let me know if you need more help.