tproduit / pic2map

QGIS plugin for camera orientation and interaction between a picture and the map (monoplotting).
22 stars 5 forks source link

Multiband DEM not supported. #26

Closed apiszcz closed 3 years ago

apiszcz commented 3 years ago
2021-05-07T05:59:25     WARNING    Traceback (most recent call last):              
File "C:/Users/user/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Pic2Map\pic2Map.py", line 158, in startSequence
              self.load_buffer()              
File "C:/Users/user/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Pic2Map\pic2Map.py", line 379, in load_buffer
              self.buffers.getBuffer()              
File "C:/Users/user/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Pic2Map\buffers.py", line 64, 
             in getBuffer              raise ValueError
             ValueError

**Pic2Map expects single band DEM**

            l_est = size(imarray,1)
            l_nord = size(imarray,0)
            resolution1 = round((box[2]-box[0])/float(l_est))
            resolution2 = round((box[3]-box[1])/float(l_nord))
            if resolution1 != resolution2:
                print('unsuported ressolution type')
                print(resolution1)
                print(resolution2)
                raise ValueError

**EXTRACT BAND 1 from PDAL output geotif to eliminate this issue
USE QGIS Rearrange Bands, SELECT BAND 1**