def crop_borders(self, shapefile):
     for per_dist in self.percent_range():
         bord_file = self.bord_path(per_dist)
         print("Cropping: %s" % bord_file)
         cropper = CropBorders(bord_file, shapefile)
         cropper.crop()
         cropper.write(bord_file)
Exemple #2
0
 def crop_borders(self, shapefile):
     for per_dist in self.percent_range():
         bord_file = self.bord_path(per_dist)
         print('Cropping: %s' % bord_file)
         cropper = CropBorders(bord_file, shapefile)
         cropper.crop()
         cropper.write(bord_file)
def crop_borders(ctx):
    infile = ctx.obj["infile"]
    shapefile = ctx.obj["shapefile"]
    cropper = CropBorders(infile, shapefile)
    cropper.crop()
    cropper.write()
Exemple #4
0
def crop_borders(ctx):
    infile = ctx.obj['infile']
    shapefile = ctx.obj['shapefile']
    cropper = CropBorders(infile, shapefile)
    cropper.crop()
    cropper.write()