class_docstr: For use with `rasterio.rio.helpers.write_features()`.
class_docstr_tok: ["For","use","with","`","rasterio.rio.helpers.write_features","(",")","`","."]
docstr: Export raster dataset windows to GeoJSON polygon features.
  
  Parameters
  ----------
  dataset : a dataset object opened in 'r' mode
      Source dataset
  bidx : int
      Extract windows from this band
  precision : int, optional
      Coordinate precision
  geographic : bool, optional
      Reproject geometries to ``EPSG:4326`` if ``True``
  
  Yields
  ------
  dict
      GeoJSON polygon feature
docstr_tok: ["Export","raster","dataset","windows","to","GeoJSON","polygon","features",".","Parameters","--","--","--","--","--","dataset",":","a","dataset","object","opened","in","'","r","'","mode","Source","dataset","bidx",":","int","Extract","windows","from","this","band","precision",":","int",",","optional","Coordinate","precision","geographic",":","bool",",","optional","Reproject","geometries","to","``","EPSG:4326","``","if","``","True","``","Yields","--","--","--","dict","GeoJSON","polygon","feature"]
code: def __init__(self, dataset, bidx, precision=6, geographic=True):
      """Export raster dataset windows to GeoJSON polygon features.
  
      Parameters
      ----------
      dataset : a dataset object opened in 'r' mode
          Source dataset
      bidx : int
          Extract windows from this band
      precision : int, optional
          Coordinate precision
      geographic : bool, optional
          Reproject geometries to ``EPSG:4326`` if ``True``
  
      Yields
      ------
      dict
          GeoJSON polygon feature
      """
  
      self._src = dataset
      self._bidx = bidx
      self._precision = precision
      self._geographic = geographic
  
file_path: rasterio/rasterio/rio/blocks.py
imports: import json
  import logging
  import os.path
  import click
  import cligj
  import rasterio
  from rasterio.rio import options
  from rasterio.rio.helpers import write_features
  from rasterio.warp import transform_bounds
label_desc: Use image node_id 1 to create a new _Collection object  with example: obj = _Collection(dataset, bidx, precision, geographic)