-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong depression ID in outputted depressions.shp and level shapefiles #23
Comments
The issue was probably caused by the raster-to-vector conversion. You should look at the file |
Level ID should be 1, but depression ID should not be 1. Make sure you look at the correct raster file, there is one named depression_id.tif and one named level_id.tif |
So what I can observe is that in the CSV file, all depressions get an unique ID, but in all geographical output (shapefiles, geotiff), the values are set to ID = 1 for a lot of depressions. |
Description
When delineating depressions I use the following
This runs through and produces me the general sinks (
regions.shp
) and the nested depressions (depressions.shp
,depressions_info.csv
). I understand the relation between both and want to assign to each region all the associated depressions and their geometries by looping through all the regions (ID's) and assigning them every depression (getting info from thedepressions_info.csv
). But I stumbled upon an issue where I cannot associate depressions by their IDs to the according poygon geometry, because thedepressions.shp
IDs are wrong. While I have enumerated all depressions correctly in the CSV file, the depressions shapefile has an very strange (and I assume wrong) numbering. At least most IDs fit, but I have for thelevel 1
depressions suddenly hundreds of depressions all having the depressionID 1
. The rest of the polygons all have the correct depression ID, which relates tothe same ID in thedepressions_info.csv
file.The same can be seen when looking at the individual level shapefiles. For
level 1
, I have a lot of polygons all with the same depressionID = 1
This does not allow to associate a geometry to a depression via its ID. I guess 1/50 or 1/100 of my depressions (and only those of
level 1
) have the wrong depression ID set to 1.Do I misunderstand something or is this a bug in lidar? I assume, the polygons in level 1 are written to the shapefiles with an inccorect ID of 1 instead of the depression ID from the CSV file
The text was updated successfully, but these errors were encountered: