Advertisement
Guest User

Compiling pktools

a guest
May 27th, 2022
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 93.53 KB | None | 0 0
  1. [kasra545@gra-login2 build]$ cmake -DBUILD_WITH_LIBLAS=OFF ..
  2. -- The C compiler identification is GNU 9.3.0
  3. -- The CXX compiler identification is GNU 9.3.0
  4. -- Check for working C compiler: /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/bin/cc
  5. -- Check for working C compiler: /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/bin/cc -- works
  6. -- Detecting C compiler ABI info
  7. -- Detecting C compiler ABI info - done
  8. -- Detecting C compile features
  9. -- Detecting C compile features - done
  10. -- Check for working CXX compiler: /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/bin/c++
  11. -- Check for working CXX compiler: /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/bin/c++ -- works
  12. -- Detecting CXX compiler ABI info
  13. -- Detecting CXX compiler ABI info - done
  14. -- Detecting CXX compile features
  15. -- Detecting CXX compile features - done
  16. -- Performing Test COMPILER_SUPPORTS_CXX11
  17. -- Performing Test COMPILER_SUPPORTS_CXX11 - Success
  18. -- Performing Test COMPILER_SUPPORTS_CXX0X
  19. -- Performing Test COMPILER_SUPPORTS_CXX0X - Success
  20. -- The compiler /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/bin/c++ has C++11 support.
  21. -- Found GDAL: /cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/Compiler/intel2020/gdal/3.0.4/lib/libgdal.so (found suitable version "3.0.4", minimum required is "1.10")
  22. -- Using GSL from /cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/Compiler/intel2020/gsl/2.6
  23. -- Found FANN: /cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/Core/fann/2.2.0/lib/libfloatfann.so  
  24. -- Configuring done
  25. -- Generating done
  26. -- Build files have been written to: /home/kasra545/github-repos/pktools/build
  27. [kasra545@gra-login2 build]$ make
  28. Scanning dependencies of target pktools
  29. [  1%] Building CXX object src/CMakeFiles/pktools.dir/imageclasses/ImgRasterGdal.cc.o
  30. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:76:4: warning: "/*" within comment [-Wcomment]
  31.    76 |    /**
  32.       |    
  33. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:43,
  34.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:30:
  35. /home/kasra545/github-repos/pktools/src/apps/AppFactory.h: In member function ‘void app::AppFactory::showOptions() const’:
  36. /home/kasra545/github-repos/pktools/src/apps/AppFactory.h:124:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  37.   124 |       for(int iarg=1;iarg<m_argv.size();++iarg)
  38.       |                      ~~~~^~~~~~~~~~~~~~
  39. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:30:
  40. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In member function ‘void ImgRasterGdal::setScale(double, int)’:
  41. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:191:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  42.   191 |     if(m_scale.size()!=nrOfBand()){//initialize
  43.       |        ~~~~~~~~~~~~~~^~~~~~~~~~~~
  44. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In member function ‘void ImgRasterGdal::setOffset(double, int)’:
  45. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:200:23: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  46.   200 |     if(m_offset.size()!=nrOfBand()){
  47.       |        ~~~~~~~~~~~~~~~^~~~~~~~~~~~
  48. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc: In member function ‘void ImgRasterGdal::freeMem()’:
  49. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:81:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<void*>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  50.    81 |   for(int iband=0;iband<m_data.size();++iband){
  51.       |                   ~~~~~^~~~~~~~~~~~~~
  52. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc: In constructor ‘ImgRasterGdal::ImgRasterGdal(const app::AppFactory&)’:
  53. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:834:35: warning: comparison of integer expressions of different signedness: unsigned int’ and ‘int’ [-Wsign-compare]
  54.   834 |     for(unsigned int iband=0;iband<nrOfBand();++iband){
  55.       |                              ~~~~~^~~~~~~~~~~
  56. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:835:35: warning: comparison of integer expressions of different signedness: unsigned int’ and ‘int’ [-Wsign-compare]
  57.   835 |       for(unsigned int irow=0;irow<nrOfRow();++irow){
  58.       |                               ~~~~^~~~~~~~~~
  59. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:836:37: warning: comparison of integer expressions of different signedness: unsigned int’ and ‘int’ [-Wsign-compare]
  60.   836 |         for(unsigned int icol=0;icol<nrOfCol();++icol){
  61.       |                                 ~~~~^~~~~~~~~~
  62. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:851:28: warning: comparison of integer expressions of different signedness: std::vector<int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  63.   851 |       while(band_opt.size()<nrOfBand())
  64.       |             ~~~~~~~~~~~~~~~^~~~~~~~~~~
  65. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc: In member function ‘void ImgRasterGdal::getMinMax(int, int, int, int, int, double&, double&)’:
  66. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:997:24: warning: comparison of integer expressions of different signedness: int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  67.   997 |     for(int icol=0;icol<lineBuffer.size();++icol){
  68.       |                    ~~~~^~~~~~~~~~~~~~~~~~
  69. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc: In member function ‘double ImgRasterGdal::getHistogram(std::vector<double>&, double&, double&, int&, int, bool)’:
  70. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:1114:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  71.  1114 |     if(m_scale.size()>theBand){
  72.       |        ~~~~~~~~~~~~~~^~~~~~~~
  73. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:1130:23: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  74.  1130 |   if(histvector.size()!=nbin){
  75.       |      ~~~~~~~~~~~~~~~~~^~~~~~
  76. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc: In member function ‘void ImgRasterGdal::rasterizeOgr(ImgReaderOgr&, const std::vector<double>&, const std::vector<std::__cxx11::basic_string<char> >&, const std::vector<std::__cxx11::basic_string<char> >&)’:
  77. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:1669:27: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  78.  1669 |     while(burnBands.size()<nrOfBand())
  79.       |           ~~~~~~~~~~~~~~~~^~~~~~~~~~~
  80. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc: In member function ‘void ImgRasterGdal::rasterizeBuf(ImgReaderOgr&, double, const std::vector<std::__cxx11::basic_string<char> >&)’:
  81. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:1723:25: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  82.  1723 |   while(burnBands.size()<nrOfBand())
  83.       |         ~~~~~~~~~~~~~~~~^~~~~~~~~~~
  84. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:1738:19: warning: comparison of integer expressions of different signedness: ‘std::vector<void*>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  85.  1738 |   if(m_data.size()!=nrOfBand()){
  86.       |      ~~~~~~~~~~~~~^~~~~~~~~~~~
  87. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc: In member function ‘void ImgRasterGdal::rasterizeBuf(ImgReaderOgr&, const std::vector<std::__cxx11::basic_string<char> >&, const std::vector<std::__cxx11::basic_string<char> >&)’:
  88. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:1792:19: warning: comparison of integer expressions of different signedness: ‘std::vector<void*>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  89.  1792 |   if(m_data.size()!=nrOfBand()){
  90.       |      ~~~~~~~~~~~~~^~~~~~~~~~~~
  91. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:30:
  92. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(T&, int, int, int) [with T = double]’:
  93. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:363:35:   required from here
  94. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:567:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  95.   567 |     if(m_scale.size()>band||m_offset.size()>band){
  96.       |        ~~~~~~~~~~~~~~^~~~~
  97. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:567:44: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  98.   567 |     if(m_scale.size()>band||m_offset.size()>band){
  99.       |                             ~~~~~~~~~~~~~~~^~~~~
  100. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:568:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  101.   568 |       if(m_scale.size()>band)
  102.       |          ~~~~~~~~~~~~~~^~~~~
  103. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:570:25: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  104.   570 |       if(m_offset.size()>band)
  105.       |          ~~~~~~~~~~~~~~~^~~~~
  106. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(std::vector<T>&, int, int, int, int) [with T = double]’:
  107. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:996:50:   required from here
  108. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:669:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  109.   669 |     if(m_scale.size()>band||m_offset.size()>band){
  110.       |        ~~~~~~~~~~~~~~^~~~~
  111. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:669:44: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  112.   669 |     if(m_scale.size()>band||m_offset.size()>band){
  113.       |                             ~~~~~~~~~~~~~~~^~~~~
  114. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:670:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  115.   670 |       if(m_scale.size()>band)
  116.       |          ~~~~~~~~~~~~~~^~~~~
  117. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:672:25: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  118.   672 |       if(m_offset.size()>band)
  119.       |          ~~~~~~~~~~~~~~~^~~~~
  120. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:676:23: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  121.   676 |       if(buffer.size()!=maxCol-minCol+1)
  122. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:729:23: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  123.   729 |       if(buffer.size()!=maxCol-minCol+1)
  124. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:732:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  125.   732 |       if(m_scale.size()>band||m_offset.size()>band){
  126.       |          ~~~~~~~~~~~~~~^~~~~
  127. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:732:46: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  128.   732 |       if(m_scale.size()>band||m_offset.size()>band){
  129.       |                               ~~~~~~~~~~~~~~~^~~~~
  130. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:733:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  131.   733 |         for(int index=0;index<buffer.size();++index)
  132. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::writeDataBlock(Vector2d<T>&, int, int, int, int, int) [with T = double]’:
  133. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:1748:63:   required from here
  134. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1303:20: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  135.  1303 |   if(m_scale.size()>band)
  136.       |      ~~~~~~~~~~~~~~^~~~~
  137. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1305:21: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  138.  1305 |   if(m_offset.size()>band)
  139.       |      ~~~~~~~~~~~~~~~^~~~~
  140. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1307:21: warning: comparison of integer expressions of different signedness: std::vector<std::vector<double> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  141.  1307 |   if(buffer2d.size()!=maxRow-minRow+1){
  142. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::writeData(std::vector<T>&, int, int, int, int) [with T = double]’:
  143. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1287:49:   required from ‘CPLErr ImgRasterGdal::writeData(std::vector<T>&, int, int) [with T = double]
  144. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:842:40:   required from here
  145. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1188:19: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  146.  1188 |   if(buffer.size()!=maxCol-minCol+1){
  147. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1229:22: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  148.  1229 |     if(m_scale.size()>band)
  149.       |        ~~~~~~~~~~~~~~^~~~~
  150. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1231:23: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  151.  1231 |     if(m_offset.size()>band)
  152.       |        ~~~~~~~~~~~~~~~^~~~~
  153. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(std::vector<T>&, int, int, int, int) [with T = short int]’:
  154. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1079:49:   required from ‘CPLErr ImgRasterGdal::readData(std::vector<T>&, int, int) [with T = short int]
  155. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:1188:34:   required from here
  156. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:669:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  157.   669 |     if(m_scale.size()>band||m_offset.size()>band){
  158.       |        ~~~~~~~~~~~~~~^~~~~
  159. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:669:44: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  160.   669 |     if(m_scale.size()>band||m_offset.size()>band){
  161.       |                             ~~~~~~~~~~~~~~~^~~~~
  162. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:670:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  163.   670 |       if(m_scale.size()>band)
  164.       |          ~~~~~~~~~~~~~~^~~~~
  165. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:672:25: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  166.   672 |       if(m_offset.size()>band)
  167.       |          ~~~~~~~~~~~~~~~^~~~~
  168. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:676:23: warning: comparison of integer expressions of different signedness: ‘std::vector<short int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  169.   676 |       if(buffer.size()!=maxCol-minCol+1)
  170. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:729:23: warning: comparison of integer expressions of different signedness: ‘std::vector<short int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  171.   729 |       if(buffer.size()!=maxCol-minCol+1)
  172. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:732:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  173.   732 |       if(m_scale.size()>band||m_offset.size()>band){
  174.       |          ~~~~~~~~~~~~~~^~~~~
  175. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:732:46: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  176.   732 |       if(m_scale.size()>band||m_offset.size()>band){
  177.       |                               ~~~~~~~~~~~~~~~^~~~~
  178. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:733:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<short int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  179.   733 |         for(int index=0;index<buffer.size();++index)
  180. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc: In member function ‘double ImgRasterGdal::getHistogram(std::vector<double>&, double&, double&, int&, int, bool)’:
  181. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:1109:34: warning: ‘pfnProgress’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  182.  1109 |     rasterBand->ComputeStatistics(0,&minValue,&maxValue,&meanValue,&stdDev,pfnProgress,pProgressData);
  183.       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  184. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.cc:1109:34: warning: ‘pProgressData’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  185. [  2%] Building CXX object src/CMakeFiles/pktools.dir/imageclasses/ImgCollection.cc.o
  186. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgCollection.cc:27:
  187. /home/kasra545/github-repos/pktools/src/apps/AppFactory.h: In member function ‘void app::AppFactory::showOptions() const’:
  188. /home/kasra545/github-repos/pktools/src/apps/AppFactory.h:124:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  189.   124 |       for(int iarg=1;iarg<m_argv.size();++iarg)
  190.       |                      ~~~~^~~~~~~~~~~~~~
  191. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgCollection.h:28,
  192.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgCollection.cc:28:
  193. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In member function ‘void ImgRasterGdal::setScale(double, int)’:
  194. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:191:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  195.   191 |     if(m_scale.size()!=nrOfBand()){//initialize
  196.       |        ~~~~~~~~~~~~~~^~~~~~~~~~~~
  197. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In member function ‘void ImgRasterGdal::setOffset(double, int)’:
  198. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:200:23: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  199.   200 |     if(m_offset.size()!=nrOfBand()){
  200.       |        ~~~~~~~~~~~~~~~^~~~~~~~~~~~
  201. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(T&, int, int, int) [with T = double]’:
  202. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:363:35:   required from here
  203. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:567:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  204.   567 |     if(m_scale.size()>band||m_offset.size()>band){
  205.       |        ~~~~~~~~~~~~~~^~~~~
  206. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:567:44: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  207.   567 |     if(m_scale.size()>band||m_offset.size()>band){
  208.       |                             ~~~~~~~~~~~~~~~^~~~~
  209. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:568:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  210.   568 |       if(m_scale.size()>band)
  211.       |          ~~~~~~~~~~~~~~^~~~~
  212. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:570:25: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  213.   570 |       if(m_offset.size()>band)
  214.       |          ~~~~~~~~~~~~~~~^~~~~
  215. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgCollection.h:28,
  216.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgCollection.cc:28:
  217. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: At global scope:
  218. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:105:27: warning: ‘GDALRIOResampleAlg getGDALResample(const string&)’ defined but not used [-Wunused-function]
  219.   105 | static GDALRIOResampleAlg getGDALResample(const std::string &resampleString){
  220.       |                           ^~~~~~~~~~~~~~~
  221. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:81:21: warning: ‘GDALDataType getGDALDataType(const string&)’ defined but not used [-Wunused-function]
  222.    81 | static GDALDataType getGDALDataType(const std::string &typeString){
  223.       |                     ^~~~~~~~~~~~~~~
  224. [  3%] Building CXX object src/CMakeFiles/pktools.dir/imageclasses/ImgReaderOgr.cc.o
  225. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:43,
  226.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.h:30,
  227.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgReaderOgr.cc:23:
  228. /home/kasra545/github-repos/pktools/src/apps/AppFactory.h: In member function ‘void app::AppFactory::showOptions() const’:
  229. /home/kasra545/github-repos/pktools/src/apps/AppFactory.h:124:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  230.   124 |       for(int iarg=1;iarg<m_argv.size();++iarg)
  231.       |                      ~~~~^~~~~~~~~~~~~~
  232. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.h:30,
  233.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgReaderOgr.cc:23:
  234. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In member function ‘void ImgRasterGdal::setScale(double, int)’:
  235. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:191:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  236.   191 |     if(m_scale.size()!=nrOfBand()){//initialize
  237.       |        ~~~~~~~~~~~~~~^~~~~~~~~~~~
  238. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In member function ‘void ImgRasterGdal::setOffset(double, int)’:
  239. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:200:23: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  240.   200 |     if(m_offset.size()!=nrOfBand()){
  241.       |        ~~~~~~~~~~~~~~~^~~~~~~~~~~~
  242. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(T&, int, int, int) [with T = double]’:
  243. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:363:35:   required from here
  244. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:567:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  245.   567 |     if(m_scale.size()>band||m_offset.size()>band){
  246.       |        ~~~~~~~~~~~~~~^~~~~
  247. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:567:44: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  248.   567 |     if(m_scale.size()>band||m_offset.size()>band){
  249.       |                             ~~~~~~~~~~~~~~~^~~~~
  250. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:568:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  251.   568 |       if(m_scale.size()>band)
  252.       |          ~~~~~~~~~~~~~~^~~~~
  253. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:570:25: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  254.   570 |       if(m_offset.size()>band)
  255.       |          ~~~~~~~~~~~~~~~^~~~~
  256. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgReaderOgr.cc:22:
  257. /home/kasra545/github-repos/pktools/src/imageclasses/ImgReaderOgr.h: In instantiation of ‘int ImgReaderOgr::readData(std::map<std::__cxx11::basic_string<char>, Vector2d<T> >&, const OGRFieldType&, std::vector<std::__cxx11::basic_string<char> >&, const string&, int, bool, bool) [with T = float; std::string = std::__cxx11::basic_string<char>]’:
  258. /home/kasra545/github-repos/pktools/src/imageclasses/ImgReaderOgr.cc:340:77:   required from here
  259. /home/kasra545/github-repos/pktools/src/imageclasses/ImgReaderOgr.h:312:29: warning: comparison of integer expressions of different signedness: ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  260.   312 |             if(fields.size()<poFDefn->GetFieldCount()){
  261.       |                ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
  262. /home/kasra545/github-repos/pktools/src/imageclasses/ImgReaderOgr.h:322:29: warning: comparison of integer expressions of different signedness: ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  263.   322 |             if(fields.size()<poFDefn->GetFieldCount()){
  264.       |                ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
  265. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.h:30,
  266.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgReaderOgr.cc:23:
  267. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: At global scope:
  268. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:105:27: warning: ‘GDALRIOResampleAlg getGDALResample(const string&)’ defined but not used [-Wunused-function]
  269.   105 | static GDALRIOResampleAlg getGDALResample(const std::string &resampleString){
  270.       |                           ^~~~~~~~~~~~~~~
  271. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:81:21: warning: ‘GDALDataType getGDALDataType(const string&)’ defined but not used [-Wunused-function]
  272.    81 | static GDALDataType getGDALDataType(const std::string &typeString){
  273.       |                     ^~~~~~~~~~~~~~~
  274. [  4%] Building CXX object src/CMakeFiles/pktools.dir/imageclasses/ImgWriterOgr.cc.o
  275. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:43,
  276.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.h:30,
  277.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.cc:24:
  278. /home/kasra545/github-repos/pktools/src/apps/AppFactory.h: In member function ‘void app::AppFactory::showOptions() const’:
  279. /home/kasra545/github-repos/pktools/src/apps/AppFactory.h:124:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  280.   124 |       for(int iarg=1;iarg<m_argv.size();++iarg)
  281.       |                      ~~~~^~~~~~~~~~~~~~
  282. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.h:30,
  283.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.cc:24:
  284. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In member function ‘void ImgRasterGdal::setScale(double, int)’:
  285. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:191:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  286.   191 |     if(m_scale.size()!=nrOfBand()){//initialize
  287.       |        ~~~~~~~~~~~~~~^~~~~~~~~~~~
  288. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In member function ‘void ImgRasterGdal::setOffset(double, int)’:
  289. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:200:23: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  290.   200 |     if(m_offset.size()!=nrOfBand()){
  291.       |        ~~~~~~~~~~~~~~~^~~~~~~~~~~~
  292. /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.cc: In member function ‘void ImgWriterOgr::addPoint(double, double, const std::map<std::__cxx11::basic_string<char>, double>&, std::string, int, int)’:
  293. /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.cc:391:30: warning: comparison of integer expressions of different signedness: ‘std::map<std::__cxx11::basic_string<char>, double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  294.   391 |   if(pointAttributes.size()+1!=poFeature->GetFieldCount()){
  295.       |      ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  296. /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.cc: In member function ‘int ImgWriterOgr::addData(ImgRasterGdal&, int, bool)’:
  297. /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.cc:685:33: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  298.   685 |   for(unsigned int iband=0;iband<imgReader.nrOfBand();++iband){
  299.       |                            ~~~~~^~~~~~~~~~~~~~~~~~~~~
  300. /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.cc:702:35: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  301.   702 |     for(unsigned int iband=0;iband<imgReader.nrOfBand();++iband){
  302.       |                              ~~~~~^~~~~~~~~~~~~~~~~~~~~
  303. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.h:30,
  304.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.cc:24:
  305. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(T&, int, int, int) [with T = double]’:
  306. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:363:35:   required from here
  307. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:567:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  308.   567 |     if(m_scale.size()>band||m_offset.size()>band){
  309.       |        ~~~~~~~~~~~~~~^~~~~
  310. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:567:44: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  311.   567 |     if(m_scale.size()>band||m_offset.size()>band){
  312.       |                             ~~~~~~~~~~~~~~~^~~~~
  313. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:568:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  314.   568 |       if(m_scale.size()>band)
  315.       |          ~~~~~~~~~~~~~~^~~~~
  316. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:570:25: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  317.   570 |       if(m_offset.size()>band)
  318.       |          ~~~~~~~~~~~~~~~^~~~~
  319. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.h:30,
  320.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgWriterOgr.cc:24:
  321. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: At global scope:
  322. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:105:27: warning: ‘GDALRIOResampleAlg getGDALResample(const string&)’ defined but not used [-Wunused-function]
  323.   105 | static GDALRIOResampleAlg getGDALResample(const std::string &resampleString){
  324.       |                           ^~~~~~~~~~~~~~~
  325. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:81:21: warning: ‘GDALDataType getGDALDataType(const string&)’ defined but not used [-Wunused-function]
  326.    81 | static GDALDataType getGDALDataType(const std::string &typeString){
  327.       |                     ^~~~~~~~~~~~~~~
  328. [  5%] Building CXX object src/CMakeFiles/pktools.dir/imageclasses/pkcomposite_lib.cc.o
  329. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:43,
  330.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:25:
  331. /home/kasra545/github-repos/pktools/src/apps/AppFactory.h: In member function ‘void app::AppFactory::showOptions() const’:
  332. /home/kasra545/github-repos/pktools/src/apps/AppFactory.h:124:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  333.   124 |       for(int iarg=1;iarg<m_argv.size();++iarg)
  334.       |                      ~~~~^~~~~~~~~~~~~~
  335. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:25:
  336. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In member function ‘void ImgRasterGdal::setScale(double, int)’:
  337. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:191:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  338.   191 |     if(m_scale.size()!=nrOfBand()){//initialize
  339.       |        ~~~~~~~~~~~~~~^~~~~~~~~~~~
  340. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In member function ‘void ImgRasterGdal::setOffset(double, int)’:
  341. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:200:23: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  342.   200 |     if(m_offset.size()!=nrOfBand()){
  343.       |        ~~~~~~~~~~~~~~~^~~~~~~~~~~~
  344. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc: In member function ‘CPLErr ImgCollection::composite(ImgRasterGdal&, const app::AppFactory&)’:
  345. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:283:32: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  346.   283 |       for(int iextent=0;iextent<extent_opt.size();++iextent){
  347.       |                         ~~~~~~~^~~~~~~~~~~~~~~~~~
  348. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:408:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  349.   408 |           for(unsigned int iband=0;iband<nband;++iband)
  350.       |                                    ~~~~~^~~~~~
  351. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:579:24: warning: comparison of integer expressions of different signedness: ‘__gnu_cxx::__alloc_traits<std::allocator<unsigned int>, unsigned int>::value_type’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  352.   579 |       if(mskband_opt[0]>=maskReader.nrOfBand()){
  353. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:593:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::shared_ptr<ImgRasterGdal> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  354.   593 |     for(int ifile=0;ifile<size();++ifile)
  355.       |                     ~~~~~^~~~~~~
  356. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:601:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<short int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  357.   601 |       for(int iclass=0;iclass<class_opt.size();++iclass)
  358.       |                        ~~~~~~^~~~~~~~~~~~~~~~~
  359. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:613:33: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  360.   613 |     for(unsigned int irow=0;irow<imgWriter.nrOfRow();++irow){
  361.       |                             ~~~~^~~~~~~~~~~~~~~~~~~~
  362. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:631:35: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  363.   631 |       for(unsigned int icol=0;icol<imgWriter.nrOfCol();++icol){
  364.       |                               ~~~~^~~~~~~~~~~~~~~~~~~~
  365. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:639:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  366.   639 |           for(unsigned int iband=0;iband<nband;++iband)
  367.       |                                    ~~~~~^~~~~~
  368. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:686:39: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  369.   686 |         for(unsigned int iband=0;iband<nband;++iband){
  370.       |                                  ~~~~~^~~~~~
  371. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:712:38: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<float, std::allocator<float> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  372.   712 |               for(int ivalue=0;ivalue<msknodata_opt.size();++ivalue){
  373.       |                                ~~~~~~^~~~~~~~~~~~~~~~~~~~~
  374. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:740:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<unsigned int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  375.   740 |             for(int vband=0;vband<bndnodata_opt.size();++vband){
  376.       |                             ~~~~~^~~~~~~~~~~~~~~~~~~~~
  377. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:742:37: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  378.   742 |               if(minValue_opt.size()>vband){
  379.       |                  ~~~~~~~~~~~~~~~~~~~^~~~~~
  380. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:748:37: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  381.   748 |               if(maxValue_opt.size()>vband){
  382.       |                  ~~~~~~~~~~~~~~~~~~~^~~~~~
  383. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:754:38: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  384.   754 |               if(srcnodata_opt.size()>vband){
  385.       |                  ~~~~~~~~~~~~~~~~~~~~^~~~~~
  386. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:764:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<unsigned int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  387.   764 |             for(int vband=0;vband<bndnodata_opt.size();++vband){
  388.       |                             ~~~~~^~~~~~~~~~~~~~~~~~~~~
  389. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:766:37: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  390.   766 |               if(minValue_opt.size()>vband){
  391.       |                  ~~~~~~~~~~~~~~~~~~~^~~~~~
  392. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:772:37: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  393.   772 |               if(maxValue_opt.size()>vband){
  394.       |                  ~~~~~~~~~~~~~~~~~~~^~~~~~
  395. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:778:38: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  396.   778 |               if(srcnodata_opt.size()>vband){
  397.       |                  ~~~~~~~~~~~~~~~~~~~~^~~~~~
  398. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:817:38: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  399.   817 |                     for(iband=0;iband<nband;++iband){
  400.       |                                 ~~~~~^~~~~~
  401. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:832:38: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  402.   832 |                     for(iband=0;iband<nband;++iband){
  403.       |                                 ~~~~~^~~~~~
  404. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:860:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  405.   860 |                   for(iband=0;iband<nband;++iband){
  406.       |                               ~~~~~^~~~~~
  407. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:874:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  408.   874 |                   for(iband=0;iband<nband;++iband){
  409.       |                               ~~~~~^~~~~~
  410. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:896:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  411.   896 |                   for(iband=0;iband<nband;++iband){
  412.       |                               ~~~~~^~~~~~
  413. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:904:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  414.   904 |                   for(iband=0;iband<nband;++iband){
  415.       |                               ~~~~~^~~~~~
  416. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:927:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  417.   927 |                   for(iband=0;iband<nband;++iband){
  418.       |                               ~~~~~^~~~~~
  419. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:935:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  420.   935 |                   for(iband=0;iband<nband;++iband){
  421.       |                               ~~~~~^~~~~~
  422. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:960:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  423.   960 |                   for(iband=0;iband<nband;++iband){
  424.       |                               ~~~~~^~~~~~
  425. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:968:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  426.   968 |                   for(iband=0;iband<nband;++iband){
  427.       |                               ~~~~~^~~~~~
  428. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:1000:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  429.  1000 |                   for(iband=0;iband<nband;++iband){
  430.       |                               ~~~~~^~~~~~
  431. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:1008:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  432.  1008 |                   for(iband=0;iband<nband;++iband){
  433.       |                               ~~~~~^~~~~~
  434. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:1029:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  435.  1029 |                   for(iband=0;iband<nband;++iband){
  436.       |                               ~~~~~^~~~~~
  437. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:1037:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  438.  1037 |                   for(iband=0;iband<nband;++iband){
  439.       |                               ~~~~~^~~~~~
  440. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:1056:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  441.  1056 |                   for(iband=0;iband<nband;++iband){
  442.       |                               ~~~~~^~~~~~
  443. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:1064:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  444.  1064 |                   for(iband=0;iband<nband;++iband){
  445.       |                               ~~~~~^~~~~~
  446. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:1083:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<short int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  447.  1083 |           for(int iclass=0;iclass<class_opt.size();++iclass){
  448.       |                            ~~~~~~^~~~~~~~~~~~~~~~~
  449. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:1084:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  450.  1084 |             for(unsigned int icol=0;icol<imgWriter.nrOfCol();++icol)
  451.       |                                     ~~~~^~~~~~~~~~~~~~~~~~~~
  452. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:1090:39: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  453.  1090 |           for(unsigned int icol=0;icol<imgWriter.nrOfCol();++icol){
  454.       |                                   ~~~~^~~~~~~~~~~~~~~~~~~~
  455. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:1106:39: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  456.  1106 |           for(unsigned int icol=0;icol<imgWriter.nrOfCol();++icol){
  457.       |                                   ~~~~^~~~~~~~~~~~~~~~~~~~
  458. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:25:
  459. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(T&, int, int, int) [with T = double]’:
  460. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:363:35:   required from here
  461. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:567:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  462.   567 |     if(m_scale.size()>band||m_offset.size()>band){
  463.       |        ~~~~~~~~~~~~~~^~~~~
  464. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:567:44: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  465.   567 |     if(m_scale.size()>band||m_offset.size()>band){
  466.       |                             ~~~~~~~~~~~~~~~^~~~~
  467. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:568:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  468.   568 |       if(m_scale.size()>band)
  469.       |          ~~~~~~~~~~~~~~^~~~~
  470. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:570:25: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  471.   570 |       if(m_offset.size()>band)
  472.       |          ~~~~~~~~~~~~~~~^~~~~
  473. In file included from /home/kasra545/github-repos/pktools/src/apps/AppFactory.h:26,
  474.                  from /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:43,
  475.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:25:
  476. /home/kasra545/github-repos/pktools/src/base/Optionpk.h: In instantiation of ‘std::ostream& operator<<(std::ostream&, const Optionpk<T1>&) [with T1 = short int; std::ostream = std::basic_ostream<char>]’:
  477. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:512:20:   required from here
  478. /home/kasra545/github-repos/pktools/src/base/Optionpk.h:196:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<short int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  479.   196 |   for(int index=0;index<theOption.size();++index)
  480. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:25:
  481. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(std::vector<T>&, int, int, double, int, RESAMPLE) [with T = short unsigned int]’:
  482. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:689:108:   required from here
  483. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:897:19: warning: comparison of integer expressions of different signedness: ‘std::vector<short unsigned int, std::allocator<short unsigned int> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  484.   897 |   if(buffer.size()!=maxCol-minCol+1)
  485. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(std::vector<T>&, int, int, int, int) [with T = short unsigned int]’:
  486. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:909:16:   required from ‘CPLErr ImgRasterGdal::readData(std::vector<T>&, int, int, double, int, RESAMPLE) [with T = short unsigned int]
  487. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:689:108:   required from here
  488. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:669:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  489.   669 |     if(m_scale.size()>band||m_offset.size()>band){
  490.       |        ~~~~~~~~~~~~~~^~~~~
  491. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:669:44: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  492.   669 |     if(m_scale.size()>band||m_offset.size()>band){
  493.       |                             ~~~~~~~~~~~~~~~^~~~~
  494. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:670:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  495.   670 |       if(m_scale.size()>band)
  496.       |          ~~~~~~~~~~~~~~^~~~~
  497. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:672:25: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  498.   672 |       if(m_offset.size()>band)
  499.       |          ~~~~~~~~~~~~~~~^~~~~
  500. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:676:23: warning: comparison of integer expressions of different signedness: ‘std::vector<short unsigned int, std::allocator<short unsigned int> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  501.   676 |       if(buffer.size()!=maxCol-minCol+1)
  502. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:729:23: warning: comparison of integer expressions of different signedness: ‘std::vector<short unsigned int, std::allocator<short unsigned int> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  503.   729 |       if(buffer.size()!=maxCol-minCol+1)
  504. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:732:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  505.   732 |       if(m_scale.size()>band||m_offset.size()>band){
  506.       |          ~~~~~~~~~~~~~~^~~~~
  507. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:732:46: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  508.   732 |       if(m_scale.size()>band||m_offset.size()>band){
  509.       |                               ~~~~~~~~~~~~~~~^~~~~
  510. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:733:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<short unsigned int, std::allocator<short unsigned int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  511.   733 |         for(int index=0;index<buffer.size();++index)
  512. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(std::vector<T>&, int, int, int, int) [with T = float]’:
  513. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1079:49:   required from ‘CPLErr ImgRasterGdal::readData(std::vector<T>&, int, int) [with T = float]
  514. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:709:95:   required from here
  515. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:669:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  516.   669 |     if(m_scale.size()>band||m_offset.size()>band){
  517.       |        ~~~~~~~~~~~~~~^~~~~
  518. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:669:44: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  519.   669 |     if(m_scale.size()>band||m_offset.size()>band){
  520.       |                             ~~~~~~~~~~~~~~~^~~~~
  521. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:670:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  522.   670 |       if(m_scale.size()>band)
  523.       |          ~~~~~~~~~~~~~~^~~~~
  524. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:672:25: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  525.   672 |       if(m_offset.size()>band)
  526.       |          ~~~~~~~~~~~~~~~^~~~~
  527. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:676:23: warning: comparison of integer expressions of different signedness: ‘std::vector<float, std::allocator<float> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  528.   676 |       if(buffer.size()!=maxCol-minCol+1)
  529. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:729:23: warning: comparison of integer expressions of different signedness: ‘std::vector<float, std::allocator<float> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  530.   729 |       if(buffer.size()!=maxCol-minCol+1)
  531. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:732:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  532.   732 |       if(m_scale.size()>band||m_offset.size()>band){
  533.       |          ~~~~~~~~~~~~~~^~~~~
  534. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:732:46: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  535.   732 |       if(m_scale.size()>band||m_offset.size()>band){
  536.       |                               ~~~~~~~~~~~~~~~^~~~~
  537. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:733:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<float, std::allocator<float> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  538.   733 |         for(int index=0;index<buffer.size();++index)
  539. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::writeData(std::vector<T>&, int, int, int, int) [with T = short int]’:
  540. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1287:49:   required from ‘CPLErr ImgRasterGdal::writeData(std::vector<T>&, int, int) [with T = short int]
  541. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:1086:56:   required from here
  542. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1188:19: warning: comparison of integer expressions of different signedness: std::vector<short int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  543.  1188 |   if(buffer.size()!=maxCol-minCol+1){
  544. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1229:22: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  545.  1229 |     if(m_scale.size()>band)
  546.       |        ~~~~~~~~~~~~~~^~~~~
  547. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1231:23: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  548.  1231 |     if(m_offset.size()>band)
  549.       |        ~~~~~~~~~~~~~~~^~~~~
  550. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::writeData(std::vector<T>&, int, int, int, int) [with T = double]’:
  551. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1287:49:   required from ‘CPLErr ImgRasterGdal::writeData(std::vector<T>&, int, int) [with T = double]
  552. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:1097:52:   required from here
  553. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1188:19: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  554.  1188 |   if(buffer.size()!=maxCol-minCol+1){
  555. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1229:22: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  556.  1229 |     if(m_scale.size()>band)
  557.       |        ~~~~~~~~~~~~~~^~~~~
  558. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1231:23: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  559.  1231 |     if(m_offset.size()>band)
  560.       |        ~~~~~~~~~~~~~~~^~~~~
  561. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:25:
  562. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: At global scope:
  563. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:105:27: warning: ‘GDALRIOResampleAlg getGDALResample(const string&)’ defined but not used [-Wunused-function]
  564.   105 | static GDALRIOResampleAlg getGDALResample(const std::string &resampleString){
  565.       |                           ^~~~~~~~~~~~~~~
  566. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc: In member function ‘CPLErr ImgCollection::composite(ImgRasterGdal&, const app::AppFactory&)’:
  567. /home/kasra545/github-repos/pktools/src/imageclasses/pkcomposite_lib.cc:612:16: warning: ‘pszMessage’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  568.   612 |     pfnProgress(progress,pszMessage,pProgressArg);
  569.       |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  570. [  6%] Building CXX object src/CMakeFiles/pktools.dir/imageclasses/pkcrop_lib.cc.o
  571. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:43,
  572.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:25:
  573. /home/kasra545/github-repos/pktools/src/apps/AppFactory.h: In member function ‘void app::AppFactory::showOptions() const’:
  574. /home/kasra545/github-repos/pktools/src/apps/AppFactory.h:124:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  575.   124 |       for(int iarg=1;iarg<m_argv.size();++iarg)
  576.       |                      ~~~~^~~~~~~~~~~~~~
  577. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:25:
  578. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In member function ‘void ImgRasterGdal::setScale(double, int)’:
  579. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:191:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  580.   191 |     if(m_scale.size()!=nrOfBand()){//initialize
  581.       |        ~~~~~~~~~~~~~~^~~~~~~~~~~~
  582. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In member function ‘void ImgRasterGdal::setOffset(double, int)’:
  583. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:200:23: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  584.   200 |     if(m_offset.size()!=nrOfBand()){
  585.       |        ~~~~~~~~~~~~~~~^~~~~~~~~~~~
  586. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc: In member function ‘CPLErr ImgCollection::crop(ImgRasterGdal&, const app::AppFactory&)’:
  587. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:204:28: warning: comparison of integer expressions of different signedness: ‘in’ and ‘std::vector<unsigned int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  588.   204 |       for(int ipair=0;ipair<bstart_opt.size();++ipair){
  589.       |                       ~~~~~^~~~~~~~~~~~~~~~~~
  590. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:271:30: warning: comparison of integer expressions of different signedness: ‘in’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  591.   271 |     for(int iextent=0;iextent<extent_opt.size();++iextent){
  592.       |                       ~~~~~~~^~~~~~~~~~~~~~~~~~
  593. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:332:79: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
  594.   332 |       ncropcol=abs(static_cast<unsigned int>(ceil((lrx_opt[0]-ulx_opt[0])/dx)));
  595.       |                                                                               ^
  596. In file included from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/cstdlib:75,
  597.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/ext/string_conversions.h:41,
  598.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/basic_string.h:6493,
  599.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/string:55,
  600.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:21:
  601. /cvmfs/soft.computecanada.ca/gentoo/2020/usr/include/stdlib.h:840:12: note: candidate: ‘int abs(int)
  602.   840 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
  603.       |            ^~~
  604. In file included from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/cstdlib:77,
  605.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/ext/string_conversions.h:41,
  606.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/basic_string.h:6493,
  607.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/string:55,
  608.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:21:
  609. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:79:3: note: candidate: ‘constexpr long double std::abs(long double)
  610.    79 |   abs(long double __x)
  611.       |   ^~~
  612. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:75:3: note: candidate: ‘constexpr float std::abs(float)
  613.    75 |   abs(float __x)
  614.       |   ^~~
  615. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:71:3: note: candidate: ‘constexpr double std::abs(double)
  616.    71 |   abs(double __x)
  617.       |   ^~~
  618. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:61:3: note: candidate: ‘long long int std::abs(long long int)
  619.    61 |   abs(long long __x) { return __builtin_llabs (__x); }
  620.       |   ^~~
  621. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:56:3: note: candidate: ‘long int std::abs(long int)
  622.    56 |   abs(long __i) { return __builtin_labs(__i); }
  623.       |   ^~~
  624. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:333:79: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
  625.   333 |       ncroprow=abs(static_cast<unsigned int>(ceil((uly_opt[0]-lry_opt[0])/dy)));
  626.       |                                                                               ^
  627. In file included from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/cstdlib:75,
  628.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/ext/string_conversions.h:41,
  629.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/basic_string.h:6493,
  630.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/string:55,
  631.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:21:
  632. /cvmfs/soft.computecanada.ca/gentoo/2020/usr/include/stdlib.h:840:12: note: candidate: ‘int abs(int)
  633.   840 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
  634.       |            ^~~
  635. In file included from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/cstdlib:77,
  636.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/ext/string_conversions.h:41,
  637.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/basic_string.h:6493,
  638.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/string:55,
  639.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:21:
  640. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:79:3: note: candidate: ‘constexpr long double std::abs(long double)
  641.    79 |   abs(long double __x)
  642.       |   ^~~
  643. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:75:3: note: candidate: ‘constexpr float std::abs(float)
  644.    75 |   abs(float __x)
  645.       |   ^~~
  646. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:71:3: note: candidate: ‘constexpr double std::abs(double)
  647.    71 |   abs(double __x)
  648.       |   ^~~
  649. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:61:3: note: candidate: ‘long long int std::abs(long long int)
  650.    61 |   abs(long long __x) { return __builtin_llabs (__x); }
  651.       |   ^~~
  652. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:56:3: note: candidate: ‘long int std::abs(long int)
  653.    56 |   abs(long __i) { return __builtin_labs(__i); }
  654.       |   ^~~
  655. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:364:24: warning: comparison of integer expressions of different signedness: ‘__gnu_cxx::__alloc_traits<std::allocator<unsigned int>, unsigned int>::value_type’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  656.   364 |       if(mskband_opt[0]>=maskReader.nrOfBand()){
  657. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:428:73: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
  658.   428 |       ncropcol=abs(static_cast<unsigned int>(ceil((croplrx-cropulx)/dx)));
  659.       |                                                                         ^
  660. In file included from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/cstdlib:75,
  661.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/ext/string_conversions.h:41,
  662.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/basic_string.h:6493,
  663.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/string:55,
  664.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:21:
  665. /cvmfs/soft.computecanada.ca/gentoo/2020/usr/include/stdlib.h:840:12: note: candidate: ‘int abs(int)
  666.   840 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
  667.       |            ^~~
  668. In file included from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/cstdlib:77,
  669.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/ext/string_conversions.h:41,
  670.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/basic_string.h:6493,
  671.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/string:55,
  672.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:21:
  673. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:79:3: note: candidate: ‘constexpr long double std::abs(long double)
  674.    79 |   abs(long double __x)
  675.       |   ^~~
  676. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:75:3: note: candidate: ‘constexpr float std::abs(float)
  677.    75 |   abs(float __x)
  678.       |   ^~~
  679. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:71:3: note: candidate: ‘constexpr double std::abs(double)
  680.    71 |   abs(double __x)
  681.       |   ^~~
  682. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:61:3: note: candidate: ‘long long int std::abs(long long int)
  683.    61 |   abs(long long __x) { return __builtin_llabs (__x); }
  684.       |   ^~~
  685. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:56:3: note: candidate: ‘long int std::abs(long int)
  686.    56 |   abs(long __i) { return __builtin_labs(__i); }
  687.       |   ^~~
  688. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:429:73: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
  689.   429 |       ncroprow=abs(static_cast<unsigned int>(ceil((cropuly-croplry)/dy)));
  690.       |                                                                         ^
  691. In file included from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/cstdlib:75,
  692.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/ext/string_conversions.h:41,
  693.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/basic_string.h:6493,
  694.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/string:55,
  695.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:21:
  696. /cvmfs/soft.computecanada.ca/gentoo/2020/usr/include/stdlib.h:840:12: note: candidate: ‘int abs(int)
  697.   840 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
  698.       |            ^~~
  699. In file included from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/cstdlib:77,
  700.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/ext/string_conversions.h:41,
  701.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/basic_string.h:6493,
  702.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/string:55,
  703.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:21:
  704. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:79:3: note: candidate: ‘constexpr long double std::abs(long double)
  705.    79 |   abs(long double __x)
  706.       |   ^~~
  707. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:75:3: note: candidate: ‘constexpr float std::abs(float)
  708.    75 |   abs(float __x)
  709.       |   ^~~
  710. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:71:3: note: candidate: ‘constexpr double std::abs(double)
  711.    71 |   abs(double __x)
  712.       |   ^~~
  713. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:61:3: note: candidate: ‘long long int std::abs(long long int)
  714.    61 |   abs(long long __x) { return __builtin_llabs (__x); }
  715.       |   ^~~
  716. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:56:3: note: candidate: ‘long int std::abs(long int)
  717.    56 |   abs(long __i) { return __builtin_labs(__i); }
  718.       |   ^~~
  719. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:465:73: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
  720.   465 |       ncropcol=abs(static_cast<unsigned int>(ceil((croplrx-cropulx)/dx)));
  721.       |                                                                         ^
  722. In file included from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/cstdlib:75,
  723.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/ext/string_conversions.h:41,
  724.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/basic_string.h:6493,
  725.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/string:55,
  726.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:21:
  727. /cvmfs/soft.computecanada.ca/gentoo/2020/usr/include/stdlib.h:840:12: note: candidate: ‘int abs(int)
  728.   840 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
  729.       |            ^~~
  730. In file included from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/cstdlib:77,
  731.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/ext/string_conversions.h:41,
  732.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/basic_string.h:6493,
  733.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/string:55,
  734.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:21:
  735. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:79:3: note: candidate: ‘constexpr long double std::abs(long double)
  736.    79 |   abs(long double __x)
  737.       |   ^~~
  738. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:75:3: note: candidate: ‘constexpr float std::abs(float)
  739.    75 |   abs(float __x)
  740.       |   ^~~
  741. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:71:3: note: candidate: ‘constexpr double std::abs(double)
  742.    71 |   abs(double __x)
  743.       |   ^~~
  744. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:61:3: note: candidate: ‘long long int std::abs(long long int)
  745.    61 |   abs(long long __x) { return __builtin_llabs (__x); }
  746.       |   ^~~
  747. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:56:3: note: candidate: ‘long int std::abs(long int)
  748.    56 |   abs(long __i) { return __builtin_labs(__i); }
  749.       |   ^~~
  750. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:466:73: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
  751.   466 |       ncroprow=abs(static_cast<unsigned int>(ceil((cropuly-croplry)/dy)));
  752.       |                                                                         ^
  753. In file included from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/cstdlib:75,
  754.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/ext/string_conversions.h:41,
  755.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/basic_string.h:6493,
  756.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/string:55,
  757.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:21:
  758. /cvmfs/soft.computecanada.ca/gentoo/2020/usr/include/stdlib.h:840:12: note: candidate: ‘int abs(int)
  759.   840 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
  760.       |            ^~~
  761. In file included from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/cstdlib:77,
  762.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/ext/string_conversions.h:41,
  763.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/basic_string.h:6493,
  764.                  from /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/string:55,
  765.                  from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:21:
  766. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:79:3: note: candidate: ‘constexpr long double std::abs(long double)
  767.    79 |   abs(long double __x)
  768.       |   ^~~
  769. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:75:3: note: candidate: ‘constexpr float std::abs(float)
  770.    75 |   abs(float __x)
  771.       |   ^~~
  772. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:71:3: note: candidate: ‘constexpr double std::abs(double)
  773.    71 |   abs(double __x)
  774.       |   ^~~
  775. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:61:3: note: candidate: ‘long long int std::abs(long long int)
  776.    61 |   abs(long long __x) { return __builtin_llabs (__x); }
  777.       |   ^~~
  778. /cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/gcccore/9.3.0/include/c++/9.3.0/bits/std_abs.h:56:3: note: candidate: ‘long int std::abs(long int)
  779.    56 |   abs(long __i) { return __builtin_labs(__i); }
  780.       |   ^~~
  781. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:656:44: warning: comparison of integer expressions of different signedness: ‘in’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  782.   656 |                     for(int ivalue=0;ivalue<msknodata_opt.size();++ivalue){
  783.       |                                      ~~~~~~^~~~~~~~~~~~~~~~~~~~~
  784. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:658:45: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  785.   658 |                         if(nodata_opt.size()>ivalue)
  786.       |                            ~~~~~~~~~~~~~~~~~^~~~~~~
  787. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:696:30: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  788.   696 |         if(writeBuffer.size()!=imgWriter.nrOfCol())
  789.       |            ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
  790. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:25:
  791. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(T&, int, int, int) [with T = double]’:
  792. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:363:35:   required from here
  793. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:567:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  794.   567 |     if(m_scale.size()>band||m_offset.size()>band){
  795.       |        ~~~~~~~~~~~~~~^~~~~
  796. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:567:44: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  797.   567 |     if(m_scale.size()>band||m_offset.size()>band){
  798.       |                             ~~~~~~~~~~~~~~~^~~~~
  799. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:568:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  800.   568 |       if(m_scale.size()>band)
  801.       |          ~~~~~~~~~~~~~~^~~~~
  802. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:570:25: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  803.   570 |       if(m_offset.size()>band)
  804.       |          ~~~~~~~~~~~~~~~^~~~~
  805. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(std::vector<T>&, int, int, double, int, RESAMPLE) [with T = double]’:
  806. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:615:90:   required from here
  807. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:897:19: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  808.   897 |   if(buffer.size()!=maxCol-minCol+1)
  809. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::readData(std::vector<T>&, int, int, int, int) [with T = double]’:
  810. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:909:16:   required from ‘CPLErr ImgRasterGdal::readData(std::vector<T>&, int, int, double, int, RESAMPLE) [with T = double]
  811. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:615:90:   required from here
  812. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:669:22: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  813.   669 |     if(m_scale.size()>band||m_offset.size()>band){
  814.       |        ~~~~~~~~~~~~~~^~~~~
  815. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:669:44: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  816.   669 |     if(m_scale.size()>band||m_offset.size()>band){
  817.       |                             ~~~~~~~~~~~~~~~^~~~~
  818. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:670:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  819.   670 |       if(m_scale.size()>band)
  820.       |          ~~~~~~~~~~~~~~^~~~~
  821. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:672:25: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  822.   672 |       if(m_offset.size()>band)
  823.       |          ~~~~~~~~~~~~~~~^~~~~
  824. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:676:23: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  825.   676 |       if(buffer.size()!=maxCol-minCol+1)
  826. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:729:23: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  827.   729 |       if(buffer.size()!=maxCol-minCol+1)
  828. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:732:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  829.   732 |       if(m_scale.size()>band||m_offset.size()>band){
  830.       |          ~~~~~~~~~~~~~~^~~~~
  831. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:732:46: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  832.   732 |       if(m_scale.size()>band||m_offset.size()>band){
  833.       |                               ~~~~~~~~~~~~~~~^~~~~
  834. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:733:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  835.   733 |         for(int index=0;index<buffer.size();++index)
  836. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: In instantiation of ‘CPLErr ImgRasterGdal::writeData(std::vector<T>&, int, int, int, int) [with T = double]’:
  837. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1287:49:   required from ‘CPLErr ImgRasterGdal::writeData(std::vector<T>&, int, int) [with T = double]
  838. /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:701:57:   required from here
  839. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1188:19: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  840.  1188 |   if(buffer.size()!=maxCol-minCol+1){
  841. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1229:22: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  842.  1229 |     if(m_scale.size()>band)
  843.       |        ~~~~~~~~~~~~~~^~~~~
  844. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:1231:23: warning: comparison of integer expressions of different signedness: std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  845.  1231 |     if(m_offset.size()>band)
  846.       |        ~~~~~~~~~~~~~~~^~~~~
  847. In file included from /home/kasra545/github-repos/pktools/src/imageclasses/pkcrop_lib.cc:25:
  848. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h: At global scope:
  849. /home/kasra545/github-repos/pktools/src/imageclasses/ImgRasterGdal.h:105:27: warning: ‘GDALRIOResampleAlg getGDALResample(const string&)’ defined but not used [-Wunused-function]
  850.   105 | static GDALRIOResampleAlg getGDALResample(const std::string &resampleString){
  851.       |                           ^~~~~~~~~~~~~~~
  852. make[2]: *** [src/CMakeFiles/pktools.dir/build.make:128: src/CMakeFiles/pktools.dir/imageclasses/pkcrop_lib.cc.o] Error 1
  853. make[1]: *** [CMakeFiles/Makefile2:1181: src/CMakeFiles/pktools.dir/all] Error 2
  854. make: *** [Makefile:152: all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement