  
  For an overview on performing distance queries, please refer to
  the :ref:`distance queries introduction <distance-queries>`.
  
  Distance lookups take the following form::
  
      <field>__<distance lookup>=(<geometry/raster>, <distance value>[, 'spheroid'])
      <field>__<distance lookup>=(<raster>, <band_index>, <distance value>[, 'spheroid'])
      <field>__<band_index>__<distance lookup>=(<raster>, <band_index>, <distance value>[, 'spheroid'])
  
 
</s> remove     <field>__<distance lookup>=(<geometry/raster>, <distance value>[, 'spheroid'])
    <field>__<distance lookup>=(<raster>, <band_index>, <distance value>[, 'spheroid'])
    <field>__<band_index>__<distance lookup>=(<raster>, <band_index>, <distance value>[, 'spheroid'])
 </s> add .. code-block:: text

    <field>__<distance lookup>=(<geometry/raster>, <distance value>[, "spheroid"])
    <field>__<distance lookup>=(<raster>, <band_index>, <distance value>[, "spheroid"])
    <field>__<band_index>__<distance lookup>=(<raster>, <band_index>, <distance value>[, "spheroid"]) </s> remove .. code-block:: pycon
 </s> add .. code-block:: text </s> remove .. code-block:: pycon
 </s> add .. code-block:: text </s> remove     }
 </s> add     },
  }
Distance lookups take the following form:
  
  For an overview on performing distance queries, please refer to
  the :ref:`distance queries introduction <distance-queries>`.
  
Distance lookups take the following form:
  
      <field>__<distance lookup>=(<geometry/raster>, <distance value>[, 'spheroid'])
      <field>__<distance lookup>=(<raster>, <band_index>, <distance value>[, 'spheroid'])
      <field>__<band_index>__<distance lookup>=(<raster>, <band_index>, <distance value>[, 'spheroid'])
  
keep keep keep keep replace keep keep keep keep keep
 Refs #34140 -- Corrected rst code-block and various formatting issues in docs. 
docs/ref/contrib/gis/geoquerysets.txt