nodes: 0, module; 1, function_definition; 2, function_name:computeStatisticsHistograms; 3, parameters; 4, block; 5, identifier:self; 6, identifier:geometry; 7, identifier:geometryType; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, expression_statement; 12, expression_statement; 13, expression_statement; 14, if_statement; 15, if_statement; 16, if_statement; 17, return_statement; 18, identifier:mosaicRule; 19, None; 20, identifier:renderingRule; 21, None; 22, identifier:pixelSize; 23, None; 24, comment:"""
          The computeStatisticsHistograms operation is performed on an image service
          resource. This operation is supported by any image service published with
          mosaic datasets or a raster dataset. The result of this operation contains
          both statistics and histograms computed from the given extent.
  
          Inputs:
  
          geometry - A geometry that defines the geometry within which the histogram
           is computed. The geometry can be an envelope or a polygon. The structure of
           the geometry is the same as the structure of the JSON geometry objects
           returned by the ArcGIS REST API.
  
          geometryType - The type of geometry specified by the geometry parameter.
           The geometry type can be an envelope or polygon.
           Values: esriGeometryEnvelope | esriGeometryPolygon
  
          mosaicRule - Specifies the mosaic rule when defining how individual
           images should be mosaicked. When a mosaic rule is not specified, the
           default mosaic rule of the image service will be used (as advertised
           in the root resource: defaultMosaicMethod, mosaicOperator, sortField,
           sortValue).
  
          renderingRule - Specifies the rendering rule for how the requested
           image should be rendered.
  
          pixelSize - The pixel level being used (or the resolution being looked at).
           If pixel size is not specified, then pixelSize will default to the base
           resolution of the dataset. The raster at the specified pixel size in the
           mosaic dataset will be used for histogram calculation.
           The structure of the pixelSize parameter is the same as the structure of
           the point object returned by the ArcGIS REST API. In addition to the JSON
           structure, you can specify the pixel size with a simple comma-separated syntax.
          """; 25, assignment; 26, assignment; 27, not_operator; 28, block; 29, not_operator; 30, block; 31, not_operator; 32, block; 33, call; 34, identifier:url; 35, binary_operator:self._url + "/computeStatisticsHistograms"; 36, identifier:params; 37, dictionary; 38, comparison_operator:mosaicRule is None; 39, expression_statement; 40, comparison_operator:renderingRule is None; 41, expression_statement; 42, comparison_operator:pixelSize is None; 43, expression_statement; 44, attribute; 45, argument_list; 46, attribute; 47, string:"/computeStatisticsHistograms"; 48, pair; 49, pair; 50, pair; 51, identifier:mosaicRule; 52, None; 53, assignment; 54, identifier:renderingRule; 55, None; 56, assignment; 57, identifier:pixelSize; 58, None; 59, assignment; 60, identifier:self; 61, identifier:_get; 62, keyword_argument; 63, keyword_argument; 64, keyword_argument; 65, keyword_argument; 66, keyword_argument; 67, identifier:self; 68, identifier:_url; 69, string:"f"; 70, string:"json"; 71, string:"geometry"; 72, identifier:geometry; 73, string:"geometryType"; 74, identifier:geometryType; 75, subscript; 76, identifier:mosaicRule; 77, subscript; 78, identifier:renderingRule; 79, subscript; 80, identifier:pixelSize; 81, identifier:url; 82, identifier:url; 83, identifier:param_dict; 84, identifier:params; 85, identifier:securityHandler; 86, attribute; 87, identifier:proxy_url; 88, attribute; 89, identifier:proxy_port; 90, attribute; 91, identifier:params; 92, string:"mosaicRule"; 93, identifier:params; 94, string:"renderingRule"; 95, identifier:params; 96, string:"pixelSize"; 97, identifier:self; 98, identifier:_securityHandler; 99, identifier:self; 100, identifier:_proxy_url; 101, identifier:self; 102, identifier:_proxy_port
code: def computeStatisticsHistograms(self,geometry,geometryType,mosaicRule=None,
                                      renderingRule=None,pixelSize=None):
          """
          The computeStatisticsHistograms operation is performed on an image service
          resource. This operation is supported by any image service published with
          mosaic datasets or a raster dataset. The result of this operation contains
          both statistics and histograms computed from the given extent.
  
          Inputs:
  
          geometry - A geometry that defines the geometry within which the histogram
           is computed. The geometry can be an envelope or a polygon. The structure of
           the geometry is the same as the structure of the JSON geometry objects
           returned by the ArcGIS REST API.
  
          geometryType - The type of geometry specified by the geometry parameter.
           The geometry type can be an envelope or polygon.
           Values: esriGeometryEnvelope | esriGeometryPolygon
  
          mosaicRule - Specifies the mosaic rule when defining how individual
           images should be mosaicked. When a mosaic rule is not specified, the
           default mosaic rule of the image service will be used (as advertised
           in the root resource: defaultMosaicMethod, mosaicOperator, sortField,
           sortValue).
  
          renderingRule - Specifies the rendering rule for how the requested
           image should be rendered.
  
          pixelSize - The pixel level being used (or the resolution being looked at).
           If pixel size is not specified, then pixelSize will default to the base
           resolution of the dataset. The raster at the specified pixel size in the
           mosaic dataset will be used for histogram calculation.
           The structure of the pixelSize parameter is the same as the structure of
           the point object returned by the ArcGIS REST API. In addition to the JSON
           structure, you can specify the pixel size with a simple comma-separated syntax.
          """
  
          url = self._url + "/computeStatisticsHistograms"
          params = {
              "f" : "json",
              "geometry" : geometry,
              "geometryType": geometryType
          }
  
          if not mosaicRule is None:
              params["mosaicRule"] = mosaicRule
          if not renderingRule is None:
              params["renderingRule"] = renderingRule
          if not pixelSize is None:
              params["pixelSize"] = pixelSize
  
          return self._get(url=url,
                           param_dict=params,
                           securityHandler=self._securityHandler,
                           proxy_url=self._proxy_url,
                           proxy_port=self._proxy_port)