docs: def __geometryListToGeomTemplate(self, geometries):
          """
              converts a list of common.Geometry objects to the geometry
              template value
              Input:
                 geometries - list of common.Geometry objects
              Output:
                 Dictionary in geometry service template
          """
          template = {"geometryType": None,
                      "geometries" : []}
          if isinstance(geometries, list) and len(geometries) > 0:
              for g in geometries:
                  if isinstance(g, Polyline):
                      template['geometryType'] = "esriGeometryPolyline"
                  elif isinstance(g, Polygon):
                      template['geometryType'] = "esriGeometryPolygon"
                  elif isinstance(g, Point):
                      template['geometryType'] = "esriGeometryPoint"
                  elif isinstance(g, MultiPoint):
                      template['geometryType'] = "esriGeometryMultipoint"
                  elif isinstance(g, Envelope):
                      template['geometryType'] = "esriGeometryEnvelope"
                  else:
                      raise AttributeError("Invalid geometry type")
                  template['geometries'].append(g.asDictionary)
                  del g
              return template
          return template