@@ -545,7 +545,7 @@ def feature(
545545 # Get BBOX of the polygon
546546 bbox = featureBounds (shape )
547547
548- vrt_options = kwargs .pop ("vrt_options " , {})
548+ reproject_options = kwargs .pop ("reproject_options " , {})
549549
550550 img = self .part (
551551 bbox ,
@@ -556,7 +556,7 @@ def feature(
556556 max_size = max_size ,
557557 width = width ,
558558 height = height ,
559- vrt_options = vrt_options ,
559+ reproject_options = reproject_options ,
560560 buffer = buffer ,
561561 ** kwargs ,
562562 )
@@ -705,7 +705,6 @@ def tile( # type: ignore
705705 tilesize : int = 256 ,
706706 indexes : Optional [Indexes ] = None ,
707707 expression : Optional [str ] = None ,
708- force_binary_mask : bool = True ,
709708 resampling_method : RIOResampling = "nearest" ,
710709 unscale : bool = False ,
711710 post_process : Optional [
@@ -721,7 +720,6 @@ def tile( # type: ignore
721720 tilesize (int, optional): Output image size. Defaults to `256`.
722721 indexes (int or sequence of int, optional): Band indexes.
723722 expression (str, optional): rio-tiler expression (e.g. b1/b2+b3).
724- force_binary_mask (bool, optional): Cast returned mask to binary values (0 or 255). Defaults to `True`.
725723 resampling_method (RIOResampling, optional): RasterIO resampling algorithm. Defaults to `nearest`.
726724 unscale (bool, optional): Apply 'scales' and 'offsets' on output data value. Defaults to `False`.
727725 post_process (callable, optional): Function to apply on output data and mask values.
@@ -744,7 +742,6 @@ def tile( # type: ignore
744742 max_size = None ,
745743 indexes = indexes ,
746744 expression = expression ,
747- force_binary_mask = force_binary_mask ,
748745 resampling_method = resampling_method ,
749746 unscale = unscale ,
750747 post_process = post_process ,
@@ -758,7 +755,6 @@ def part( # type: ignore
758755 max_size : Optional [int ] = None ,
759756 height : Optional [int ] = None ,
760757 width : Optional [int ] = None ,
761- force_binary_mask : bool = True ,
762758 resampling_method : RIOResampling = "nearest" ,
763759 unscale : bool = False ,
764760 post_process : Optional [
@@ -774,7 +770,6 @@ def part( # type: ignore
774770 max_size (int, optional): Limit the size of the longest dimension of the dataset read, respecting bounds X/Y aspect ratio.
775771 height (int, optional): Output height of the array.
776772 width (int, optional): Output width of the array.
777- force_binary_mask (bool, optional): Cast returned mask to binary values (0 or 255). Defaults to `True`.
778773 resampling_method (RIOResampling, optional): RasterIO resampling algorithm. Defaults to `nearest`.
779774 unscale (bool, optional): Apply 'scales' and 'offsets' on output data value. Defaults to `False`.
780775 post_process (callable, optional): Function to apply on output data and mask values.
@@ -800,7 +795,6 @@ def part( # type: ignore
800795 width = width ,
801796 height = height ,
802797 indexes = indexes ,
803- force_binary_mask = force_binary_mask ,
804798 resampling_method = resampling_method ,
805799 unscale = unscale ,
806800 post_process = post_process ,
@@ -864,7 +858,6 @@ def feature( # type: ignore
864858 max_size : Optional [int ] = None ,
865859 height : Optional [int ] = None ,
866860 width : Optional [int ] = None ,
867- force_binary_mask : bool = True ,
868861 resampling_method : RIOResampling = "nearest" ,
869862 unscale : bool = False ,
870863 post_process : Optional [
@@ -883,7 +876,6 @@ def feature( # type: ignore
883876 max_size = max_size ,
884877 height = height ,
885878 width = width ,
886- force_binary_mask = force_binary_mask ,
887879 resampling_method = resampling_method ,
888880 unscale = unscale ,
889881 post_process = post_process ,
0 commit comments