docstr: 在EISeg中用于处理遥感栅格数据的宫格类.
  
  参数:
      tif_path (str): GTiff数据的路径.
      show_band (Union[List[int], Tuple[int]], optional): 用于RGB合成显示的波段. 默认为 [1, 1, 1].
      grid_size (Union[List[int], Tuple[int]], optional): 切片大小. 默认为 [512, 512].
      overlap (Union[List[int], Tuple[int]], optional): 重叠区域的大小. 默认为 [24, 24].
docstr_tok: ["\u5728EISeg\u4e2d\u7528\u4e8e\u5904\u7406\u9065\u611f\u6805\u683c\u6570\u636e\u7684\u5bab\u683c\u7c7b",".","\u53c2\u6570",":","tif_path","(","str",")",":","GTiff\u6570\u636e\u7684\u8def\u5f84",".","show_band","(","Union","[","List","[","int","]",",","Tuple","[","int","]","]",",","optional",")",":","\u7528\u4e8eRGB\u5408\u6210\u663e\u793a\u7684\u6ce2\u6bb5",".","\u9ed8\u8ba4\u4e3a","[","1",",","1",",","1","]",".","grid_size","(","Union","[","List","[","int","]",",","Tuple","[","int","]","]",",","optional",")",":","\u5207\u7247\u5927\u5c0f",".","\u9ed8\u8ba4\u4e3a","[","512",",","512","]",".","overlap","(","Union","[","List","[","int","]",",","Tuple","[","int","]","]",",","optional",")",":","\u91cd\u53e0\u533a\u57df\u7684\u5927\u5c0f",".","\u9ed8\u8ba4\u4e3a","[","24",",","24","]","."]
code: def __init__(self, raset: Raster) -> None:
      """在EISeg中用于处理遥感栅格数据的宫格类.
  
      参数:
          tif_path (str): GTiff数据的路径.
          show_band (Union[List[int], Tuple[int]], optional): 用于RGB合成显示的波段. 默认为 [1, 1, 1].
          grid_size (Union[List[int], Tuple[int]], optional): 切片大小. 默认为 [512, 512].
          overlap (Union[List[int], Tuple[int]], optional): 重叠区域的大小. 默认为 [24, 24].
      """
      super(RSGrids, self).__init__()
      self.raster = raset
      self.clear()
  
file_path: PaddleSeg/EISeg/eiseg/plugin/n2grid/rs_grid.py
imports: import numpy
  from typing import List, Tuple
  from eiseg.plugin.remotesensing.raster import Raster
label_desc: Use image node_id 1 to create a new RSGrids object  with example: obj = RSGrids(raset)