Пример #1
0
 def patch(self):
     """Patch the final results."""
     bboxes = split_region_tiles(width=self.width, height=self.height)
     loc = Location()
     mset = loc[self.mset.name]
     mset.visible.extend(loc.mapsets())
     noutputs = 0
     for otmap in self.module.outputs:
         otm = self.module.outputs[otmap]
         if otm.typedesc == "raster" and otm.value:
             rpatch_map(
                 otm.value,
                 self.mset.name,
                 self.msetstr,
                 bboxes,
                 self.module.flags.overwrite,
                 self.start_row,
                 self.start_col,
                 self.out_prefix,
             )
             noutputs += 1
     if noutputs < 1:
         msg = "No raster output option defined for <{}>".format(self.module.name)
         if self.module.name == "r.mapcalc":
             msg += ". Use <{}.simple> instead".format(self.module.name)
         raise RuntimeError(msg)
Пример #2
0
 def patch(self):
     """Patch the final results."""
     bboxes = split_region_tiles(width=self.width, height=self.height)
     loc = Location()
     mset = loc[self.mset.name]
     mset.visible.extend(loc.mapsets())
     for otmap in self.module.outputs:
         otm = self.module.outputs[otmap]
         if otm.typedesc == 'raster' and otm.value:
             rpatch_map(otm.value, self.mset.name, self.msetstr, bboxes,
                        self.module.flags.overwrite, self.start_row,
                        self.start_col, self.out_prefix)
Пример #3
0
 def patch(self):
     """Patch the final results."""
     bboxes = split_region_tiles(width=self.width, height=self.height)
     loc = Location()
     mset = loc[self.mset.name]
     mset.visible.extend(loc.mapsets())
     for otmap in self.module.outputs:
         otm = self.module.outputs[otmap]
         if otm.typedesc == 'raster' and otm.value:
             rpatch_map(otm.value,
                        self.mset.name, self.msetstr, bboxes,
                        self.module.flags.overwrite,
                        self.start_row, self.start_col, self.out_prefix)