force icon indicating copy to clipboard operation
force copied to clipboard

force-cube is caught in endless loop with specific input options

Open davidfrantz opened this issue 4 years ago • 1 comments

force-cube ends up in an endless loop when

a) using a vector files as input and b) the layer is not the same as the filename and c) the layername is not defined via -l

davidfrantz avatar Apr 01 '22 13:04 davidfrantz

Just glanced at this very briefly. Seems like force-cube uses the file name if the layer is not provided via -l. If this is what causes the issue, a possible workaround is simply getting the name of the first layer via ogrinfo. This is what force-level1-csd used in the past: $(ogrinfo "$AOI" | grep "1: " | sed "s/1: //; s/ ([[:alnum:]]*.*)//")

ernstste avatar Apr 01 '22 14:04 ernstste