Skip to content
Permalink
Browse files
tests for GRASS provider
  • Loading branch information
alexbruy committed Jun 21, 2021
1 parent 6e93efe commit a0945cfdfe1447b151902d5e5a90ccdcbf77d2e2
Showing with 1,849 additions and 349 deletions.
  1. +1 −0 python/plugins/grassprovider/CMakeLists.txt
  2. +2 −5 python/plugins/grassprovider/Grass7Algorithm.py
  3. +2 −2 python/plugins/grassprovider/Grass7AlgorithmProvider.py
  4. +1 −1 python/plugins/grassprovider/ext/CMakeLists.txt
  5. +1 −1 python/plugins/grassprovider/ext/i.py
  6. +2 −2 python/plugins/grassprovider/ext/i_pansharpen.py
  7. +1 −1 python/plugins/grassprovider/ext/r_blend_rgb.py
  8. +1 −1 python/plugins/grassprovider/ext/r_category.py
  9. +1 −1 python/plugins/grassprovider/ext/r_colors.py
  10. +1 −1 python/plugins/grassprovider/ext/r_colors_stddev.py
  11. +1 −1 python/plugins/grassprovider/ext/r_mask_rast.py
  12. +1 −1 python/plugins/grassprovider/ext/r_mask_vect.py
  13. +1 −1 python/plugins/grassprovider/ext/r_proj.py
  14. +1 −1 python/plugins/grassprovider/ext/r_series_interp.py
  15. +1 −1 python/plugins/grassprovider/ext/r_statistics.py
  16. +2 −2 python/plugins/grassprovider/ext/r_stats_quantile_rast.py
  17. +1 −1 python/plugins/grassprovider/ext/r_tileset.py
  18. +1 −1 python/plugins/grassprovider/ext/v_proj.py
  19. +1 −1 python/plugins/grassprovider/ext/v_rectify.py
  20. +429 −0 python/plugins/grassprovider/tests/AlgorithmsTestBase.py
  21. +11 −0 python/plugins/grassprovider/tests/CMakeLists.txt
  22. +6 −1 python/plugins/{processing → grassprovider}/tests/Grass7AlgorithmsImageryTest.py
  23. +6 −1 python/plugins/{processing → grassprovider}/tests/Grass7AlgorithmsRasterTestPt1.py
  24. +5 −1 python/plugins/{processing → grassprovider}/tests/Grass7AlgorithmsRasterTestPt2.py
  25. +14 −10 python/plugins/{processing → grassprovider}/tests/Grass7AlgorithmsVectorTest.py
  26. 0 python/plugins/{processing → grassprovider}/tests/grass7_todo.md
  27. BIN python/plugins/grassprovider/tests/testdata/dem.tif
  28. +29 −0 python/plugins/grassprovider/tests/testdata/dem.tif.aux.xml
  29. BIN python/plugins/grassprovider/tests/testdata/dem_crs.tif
  30. +11 −0 python/plugins/grassprovider/tests/testdata/dem_crs.tif.aux.xml
  31. BIN ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_lines.dbf
  32. 0 ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_lines.prj
  33. BIN ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_lines.shp
  34. BIN ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_lines.shx
  35. BIN ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_points_field.dbf
  36. 0 ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_points_field.prj
  37. BIN ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_points_field.shp
  38. BIN ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_points_field.shx
  39. BIN ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_polys_layer2.dbf
  40. 0 ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_polys_layer2.prj
  41. BIN ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_polys_layer2.shp
  42. BIN ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_polys_layer2.shx
  43. BIN ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_polys_layer3.dbf
  44. 0 ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_polys_layer3.prj
  45. BIN ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_polys_layer3.shp
  46. BIN ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/buffer_polys_layer3.shx
  47. 0 .../{processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/i.gensig.txt
  48. 0 ...rocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/i.gensigset.txt
  49. 0 ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.category.out.txt
  50. 0 ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.colors.out.txt
  51. 0 ...s/{processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.kappa.txt
  52. 0 ...ssing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.cwed.ascii.txt
  53. 0 .../tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.dominance.ascii.txt
  54. 0 ...ests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.edgedensity.ascii.txt
  55. 0 ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.mpa.ascii.txt
  56. 0 ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.mps.ascii.txt
  57. 0 ...sing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.padcv.ascii.txt
  58. 0 ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.padrange.ascii.txt
  59. 0 ...sing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.padsd.ascii.txt
  60. 0 ...sts/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.patchdensity.ascii.txt
  61. 0 ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.patchnum.ascii.txt
  62. 0 ...ing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.pielou.ascii.txt
  63. 0 ...sing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.renyi.ascii.txt
  64. 0 ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.richness.ascii.txt
  65. 0 ...ng/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.shannon.ascii.txt
  66. 0 ...sing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.shape.ascii.txt
  67. 0 ...ng/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.li.simpson.ascii.txt
  68. 0 ...sing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.stats.quantile.txt
  69. 0 ...rocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.terraflow.txt
  70. 0 ...sts/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.topomodel.topidxstats.txt
  71. 0 .../{processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.univar.txt
  72. 0 ...cessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.what.coords.txt
  73. 0 ...cessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r.what.points.txt
  74. 0 ...ssing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r_category_out.html
  75. 0 ...s/{processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r_coin.html
  76. 0 .../{processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r_covar.html
  77. 0 ...rocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r_describe.html
  78. 0 ...rocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r_distance.html
  79. 0 ...s/{processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r_info.html
  80. 0 .../{processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r_stats.html
  81. 0 ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r_surf_area.html
  82. 0 ...processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r_tileset.html
  83. 0 ...rocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r_transect.html
  84. 0 ...cessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/r_what_color.html
  85. BIN ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_allpairs.dbf
  86. 0 ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_allpairs.prj
  87. BIN ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_allpairs.shp
  88. BIN ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_allpairs.shx
  89. BIN ...sing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_centrality.dbf
  90. 0 ...sing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_centrality.prj
  91. BIN ...sing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_centrality.shp
  92. BIN ...sing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_centrality.shx
  93. BIN ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_distance.dbf
  94. 0 ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_distance.prj
  95. BIN ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_distance.shp
  96. BIN ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_distance.shx
  97. 0 ...rocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_nodes.gml
  98. 0 ...rocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_nodes.xsd
  99. 0 ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_nreport.html
  100. 0 ...cessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_report.html
  101. BIN ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_salesman.dbf
  102. 0 ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_salesman.prj
  103. BIN ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_salesman.shp
  104. BIN ...essing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_salesman.shx
  105. 0 ...ng/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_salesman_seq.csv
  106. BIN ...cessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_steiner.dbf
  107. 0 ...cessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_steiner.prj
  108. BIN ...cessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_steiner.shp
  109. BIN ...cessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_net_steiner.shx
  110. BIN ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_rast_stats.dbf
  111. 0 ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_rast_stats.prj
  112. BIN ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_rast_stats.shp
  113. BIN ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_rast_stats.shx
  114. 0 ...cessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_rast_stats2.gml
  115. 0 ...cessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_rast_stats2.xsd
  116. 0 ...{processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_report.html
  117. BIN ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_cvdev.dbf
  118. 0 ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_cvdev.prj
  119. BIN ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_cvdev.shp
  120. BIN ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_cvdev.shx
  121. BIN ...tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_rst_deviations.dbf
  122. 0 ...tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_rst_deviations.prj
  123. BIN ...tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_rst_deviations.shp
  124. BIN ...tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_rst_deviations.shx
  125. BIN ...ng/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_rst_overlap.dbf
  126. 0 ...ng/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_rst_overlap.prj
  127. BIN ...ng/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_rst_overlap.shp
  128. BIN ...ng/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_rst_overlap.shx
  129. BIN ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_rst_quadtree.dbf
  130. 0 ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_rst_quadtree.prj
  131. BIN ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_rst_quadtree.shp
  132. BIN ...g/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_surf_rst_quadtree.shx
  133. BIN ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_vect_stats.dbf
  134. 0 ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_vect_stats.prj
  135. BIN ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_vect_stats.shp
  136. BIN ...ocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_vect_stats.shx
  137. BIN ...{processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_voronoi.dbf
  138. 0 ...{processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_voronoi.prj
  139. BIN ...{processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_voronoi.shp
  140. BIN ...{processing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_voronoi.shx
  141. BIN ...rocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_what_rast.dbf
  142. 0 ...rocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_what_rast.prj
  143. BIN ...rocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_what_rast.shp
  144. BIN ...rocessing/tests/testdata/expected/grass7 → grassprovider/tests/testdata/expected}/v_what_rast.shx
  145. BIN ...plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/float_raster.tif
  146. +11 −0 python/plugins/grassprovider/tests/testdata/float_raster.tif.aux.xml
  147. +99 −100 python/plugins/{processing → grassprovider}/tests/testdata/grass7_algorithms_imagery_tests.yaml
  148. +79 −74 python/plugins/{processing → grassprovider}/tests/testdata/grass7_algorithms_raster_tests1.yaml
  149. +97 −94 python/plugins/{processing → grassprovider}/tests/testdata/grass7_algorithms_raster_tests2.yaml
  150. +35 −36 python/plugins/{processing → grassprovider}/tests/testdata/grass7_algorithms_vector_tests.yaml
  151. 0 python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/i.atcorr.txt
  152. 0 ...on/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/i.cluster.txt
  153. +16 −0 python/plugins/grassprovider/tests/testdata/lines.gfs
  154. +48 −0 python/plugins/grassprovider/tests/testdata/lines.gml
  155. 0 .../{processing/tests/testdata/custom/grass7/network.cpg → grassprovider/tests/testdata/lines_z.cpg}
  156. BIN python/plugins/grassprovider/tests/testdata/lines_z.dbf
  157. 0 ...essing/tests/testdata/custom/grass7/sample_points.prj → grassprovider/tests/testdata/lines_z.prj}
  158. 0 ...essing/tests/testdata/custom/grass7/sample_points.qpj → grassprovider/tests/testdata/lines_z.qpj}
  159. BIN python/plugins/grassprovider/tests/testdata/lines_z.shp
  160. BIN python/plugins/grassprovider/tests/testdata/lines_z.shx
  161. 0 ...ssing/tests/testdata/custom/grass7/network_points.cpg → grassprovider/tests/testdata/network.cpg}
  162. BIN python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/network.dbf
  163. 0 python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/network.prj
  164. 0 python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/network.qpj
  165. BIN python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/network.shp
  166. BIN python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/network.shx
  167. 0 ...tests/testdata/custom/grass7/sample_points.cpg → grassprovider/tests/testdata/network_points.cpg}
  168. BIN ...ugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/network_points.dbf
  169. 0 ...ugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/network_points.prj
  170. 0 ...ugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/network_points.qpj
  171. BIN ...ugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/network_points.shp
  172. BIN ...ugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/network_points.shx
  173. 0 ...on/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/point_end.gml
  174. 0 ...on/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/point_end.xsd
  175. 0 .../plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/point_start.gml
  176. 0 .../plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/point_start.xsd
  177. BIN python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/points.dbf
  178. +26 −0 python/plugins/grassprovider/tests/testdata/points.gfs
  179. +77 −0 python/plugins/grassprovider/tests/testdata/points.gml
  180. 0 python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/points.prj
  181. 0 python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/points.qpj
  182. BIN python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/points.shp
  183. BIN python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/points.shx
  184. BIN python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/points2.dbf
  185. 0 python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/points2.prj
  186. 0 python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/points2.qpj
  187. BIN python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/points2.shp
  188. BIN python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/points2.shx
  189. +20 −0 python/plugins/grassprovider/tests/testdata/pointsz.gfs
  190. +68 −0 python/plugins/grassprovider/tests/testdata/pointsz.gml
  191. BIN python/plugins/grassprovider/tests/testdata/pol.gpkg
  192. BIN ...lugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/raster_1class.tif
  193. +14 −0 python/plugins/grassprovider/tests/testdata/raster_1class.tif.aux.xml
  194. BIN ...lugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/raster_4class.tif
  195. +18 −0 python/plugins/grassprovider/tests/testdata/raster_4class.tif.aux.xml
  196. BIN ...lugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/raster_5class.tif
  197. +18 −0 python/plugins/grassprovider/tests/testdata/raster_5class.tif.aux.xml
  198. BIN ...lugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/raster_6class.tif
  199. +18 −0 python/plugins/grassprovider/tests/testdata/raster_6class.tif.aux.xml
  200. 0 python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/rliconfig
  201. 0 .../plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/rliconfigmoving
  202. +21 −0 python/plugins/grassprovider/tests/testdata/roads.gfs
  203. +644 −0 python/plugins/grassprovider/tests/testdata/roads.gml
  204. +1 −0 python/plugins/grassprovider/tests/testdata/sample_points.cpg
  205. BIN ...lugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/sample_points.dbf
  206. +1 −0 python/plugins/grassprovider/tests/testdata/sample_points.prj
  207. +1 −0 python/plugins/grassprovider/tests/testdata/sample_points.qpj
  208. BIN ...lugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/sample_points.shp
  209. BIN ...lugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/sample_points.shx
  210. 0 python/plugins/{processing/tests/testdata/custom/grass7 → grassprovider/tests/testdata}/weighted.csv
  211. +1 −0 python/plugins/grassprovider/tests/testdata/zonal_stats.cpg
  212. BIN python/plugins/grassprovider/tests/testdata/zonal_stats.dbf
  213. +1 −0 python/plugins/grassprovider/tests/testdata/zonal_stats.prj
  214. +1 −0 python/plugins/grassprovider/tests/testdata/zonal_stats.qpj
  215. BIN python/plugins/grassprovider/tests/testdata/zonal_stats.shp
  216. BIN python/plugins/grassprovider/tests/testdata/zonal_stats.shx
  217. +0 −4 python/plugins/processing/tests/CMakeLists.txt
  218. +0 −3 python/plugins/processing/tests/testdata/custom/grass7/.gitignore
@@ -3,6 +3,7 @@ file(GLOB OTHER_FILES grass7.txt metadata.txt)
file(GLOB DESCR_FILES description/*.txt)

add_subdirectory(ext)
add_subdirectory(tests)

PLUGIN_INSTALL(grassprovider . ${PY_FILES} ${OTHER_FILES})
PLUGIN_INSTALL(grassprovider ./description ${DESCR_FILES})
@@ -75,7 +75,7 @@

from processing.core.parameters import getParameterFromString

from .Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils

from processing.tools.system import isWindows, getTempFilename

@@ -141,7 +141,7 @@ def __init__(self, descriptionfile):
name = self.name().replace('.', '_')
try:
self.module = importlib.import_module(
'processing.algs.grass7.ext.{}'.format(name))
'grassprovider.ext.{}'.format(name))
except ImportError:
self.module = None

@@ -445,9 +445,6 @@ def processAlgorithm(self, original_parameters, context, feedback):
outName = out.name()
if outName in parameters:
if outName in self.fileOutputs:
print('ADD', outName)
print('VAL', parameters[outName])
print('VAL 2', self.fileOutputs[outName])
outputs[outName] = self.fileOutputs[outName]
else:
outputs[outName] = parameters[outName]
@@ -31,8 +31,8 @@
QgsProcessingUtils,
QgsRuntimeProfiler)
from processing.core.ProcessingConfig import (ProcessingConfig, Setting)
from .Grass7Utils import Grass7Utils
from .Grass7Algorithm import Grass7Algorithm
from grassprovider.Grass7Utils import Grass7Utils
from grassprovider.Grass7Algorithm import Grass7Algorithm
from processing.tools.system import isWindows, isMac


@@ -1,3 +1,3 @@
file(GLOB PY_FILES *.py)

PLUGIN_INSTALL(processing algs/grass7/ext ${PY_FILES})
PLUGIN_INSTALL(grassprovider ./ext ${PY_FILES})
@@ -23,7 +23,7 @@

import os
from processing.tools.system import (isWindows, getTempFilename)
from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils
from qgis.PyQt.QtCore import QDir
from qgis.core import QgsProcessingParameterString
from qgis.core import QgsMessageLog
@@ -22,9 +22,9 @@
__copyright__ = '(C) 2016, Médéric Ribreux'

import os
from processing.tools.system import getTempFilename
from processing.algs.grass7.Grass7Utils import Grass7Utils
from qgis.core import QgsProcessingParameterString
from processing.tools.system import getTempFilename
from grassprovider.Grass7Utils import Grass7Utils


def processCommand(alg, parameters, context, feedback):
@@ -22,7 +22,7 @@
__copyright__ = '(C) 2016, Médéric Ribreux'

import os
from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils


def processInputs(alg, parameters, context, feedback):
@@ -22,7 +22,7 @@
__copyright__ = '(C) 2016, Médéric Ribreux'

from processing.tools.system import getTempFilename
from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils


def checkParameterValuesBeforeExecuting(alg, parameters, context):
@@ -22,7 +22,7 @@
__copyright__ = '(C) 2016, Médéric Ribreux'

import os
from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils
from processing.tools.system import getTempFilename


@@ -21,7 +21,7 @@
__date__ = 'February 2016'
__copyright__ = '(C) 2016, Médéric Ribreux'

from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils


def processInputs(alg, parameters, context, feedback):
@@ -21,7 +21,7 @@
__date__ = 'February 2016'
__copyright__ = '(C) 2016, Médéric Ribreux'

from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils


def processCommand(alg, parameters, context, feedback):
@@ -21,7 +21,7 @@
__date__ = 'February 2016'
__copyright__ = '(C) 2016, Médéric Ribreux'

from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils


def processCommand(alg, parameters, context, feedback):
@@ -23,7 +23,7 @@

from qgis.core import QgsProcessingParameterString
from processing.tools.system import isWindows
from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils


def processInputs(alg, parameters, context, feedback):
@@ -22,7 +22,7 @@
__copyright__ = '(C) 2016, Médéric Ribreux'

import os
from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils


def checkParameterValuesBeforeExecuting(alg, parameters, context):
@@ -22,7 +22,7 @@
__copyright__ = '(C) 2017, Médéric Ribreux'

from qgis.core import QgsProcessingParameterString
from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils


def processCommand(alg, parameters, context, feedback):
@@ -21,9 +21,9 @@
__date__ = 'February 2016'
__copyright__ = '(C) 2016, Médéric Ribreux'

from qgis.core import QgsProcessingParameterString
from processing.algs.grass7.Grass7Utils import Grass7Utils
import os
from qgis.core import QgsProcessingParameterString
from grassprovider.Grass7Utils import Grass7Utils


def processCommand(alg, parameters, context, feedback):
@@ -21,7 +21,7 @@
__date__ = 'October 2017'
__copyright__ = '(C) 2017, Médéric Ribreux'

from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils


def processOutputs(alg, parameters, context, feedback):
@@ -22,7 +22,7 @@
__copyright__ = '(C) 2017, Médéric Ribreux'

from qgis.core import QgsProcessingParameterString
from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils


def processInputs(alg, parameters, context, feedback):
@@ -22,7 +22,7 @@
__copyright__ = '(C) 2016, Médéric Ribreux'

import os
from processing.algs.grass7.Grass7Utils import Grass7Utils
from grassprovider.Grass7Utils import Grass7Utils
from processing.tools.system import getTempFilename


Loading

0 comments on commit a0945cf

Please sign in to comment.