{
 "currentVersion": 11.3,
 "cimVersion": "3.3.0",
 "id": 1,
 "name": "Water Quality Areas",
 "type": "Feature Layer",
 "description": "Areas of waterways around Christchurch are affected by human sewage contamination due to the 22 February 2011 earthquake and ongoing infrastructure repairs. Areas marked as closed to recreational use should be avoided.",
 "geometryType": "esriGeometryPolygon",
 "sourceSpatialReference": {
  "wkid": 102100,
  "latestWkid": 3857,
  "xyTolerance": 0.001,
  "zTolerance": 0.001,
  "mTolerance": 0.001,
  "falseX": -20037700,
  "falseY": -30241100,
  "xyUnits": 10000,
  "falseZ": 0,
  "zUnits": 1,
  "falseM": 0,
  "mUnits": 1
 },
 "copyrightText": "Environment Canterbury 2011",
 "parentLayer": null,
 "subLayers": [],
 "minScale": 3000000,
 "maxScale": 0,
 "referenceScale": 0.0,
 "drawingInfo": {
  "renderer": {
   "type": "uniqueValue",
   "field1": "STATUS_DESCRIPTION",
   "uniqueValueGroups": [
    {
     "heading": "",
     "classes": [
      {
       "label": "Area closed to recreational use",
       "description": "Area closed to recreational use",
       "symbol": {
        "type": "esriSFS",
        "style": "esriSFSBackwardDiagonal",
        "color": [
         255,
         0,
         0,
         255
        ],
        "outline": {
         "type": "esriSLS",
         "style": "esriSLSSolid",
         "color": [
          255,
          0,
          0,
          255
         ],
         "width": 1
        }
       },
       "values": [
        [
         "Area closed to recreational use"
        ]
       ]
      },
      {
       "label": "Normal water quality",
       "description": "Normal water quality",
       "symbol": {
        "type": "esriSFS",
        "style": "esriSFSSolid",
        "color": [
         190,
         232,
         255,
         255
        ],
        "outline": {
         "type": "esriSLS",
         "style": "esriSLSSolid",
         "color": [
          115,
          178,
          255,
          255
         ],
         "width": 0.4
        }
       },
       "values": [
        [
         "Normal water quality"
        ]
       ]
      }
     ]
    }
   ],
   "uniqueValueInfos": [
    {
     "symbol": {
      "type": "esriSFS",
      "style": "esriSFSBackwardDiagonal",
      "color": [
       255,
       0,
       0,
       255
      ],
      "outline": {
       "type": "esriSLS",
       "style": "esriSLSSolid",
       "color": [
        255,
        0,
        0,
        255
       ],
       "width": 1
      }
     },
     "value": "Area closed to recreational use",
     "label": "Area closed to recreational use"
    },
    {
     "symbol": {
      "type": "esriSFS",
      "style": "esriSFSSolid",
      "color": [
       190,
       232,
       255,
       255
      ],
      "outline": {
       "type": "esriSLS",
       "style": "esriSLSSolid",
       "color": [
        115,
        178,
        255,
        255
       ],
       "width": 0.4
      }
     },
     "value": "Normal water quality",
     "label": "Normal water quality"
    }
   ],
   "fieldDelimiter": ",",
   "authoringInfo": {
    "colorRamp": {
     "type": "multipart",
     "colorRamps": [
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        41,
        64,
        133,
        255
       ],
       "toColor": [
        41,
        64,
        133,
        255
       ]
      },
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        59,
        173,
        43,
        255
       ],
       "toColor": [
        59,
        173,
        43,
        255
       ]
      },
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        176,
        49,
        42,
        255
       ],
       "toColor": [
        176,
        49,
        42,
        255
       ]
      },
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        46,
        166,
        160,
        255
       ],
       "toColor": [
        46,
        166,
        160,
        255
       ]
      },
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        133,
        118,
        61,
        255
       ],
       "toColor": [
        133,
        118,
        61,
        255
       ]
      },
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        173,
        49,
        134,
        255
       ],
       "toColor": [
        173,
        49,
        134,
        255
       ]
      },
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        74,
        35,
        166,
        255
       ],
       "toColor": [
        74,
        35,
        166,
        255
       ]
      },
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        128,
        61,
        69,
        255
       ],
       "toColor": [
        128,
        61,
        69,
        255
       ]
      },
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        55,
        109,
        138,
        255
       ],
       "toColor": [
        55,
        109,
        138,
        255
       ]
      },
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        67,
        145,
        76,
        255
       ],
       "toColor": [
        67,
        145,
        76,
        255
       ]
      },
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        171,
        102,
        38,
        255
       ],
       "toColor": [
        171,
        102,
        38,
        255
       ]
      },
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        122,
        153,
        37,
        255
       ],
       "toColor": [
        122,
        153,
        37,
        255
       ]
      },
      {
       "type": "algorithmic",
       "algorithm": "esriCIELabAlgorithm",
       "fromColor": [
        151,
        41,
        171,
        255
       ],
       "toColor": [
        151,
        41,
        171,
        255
       ]
      }
     ]
    }
   }
  },
  "scaleSymbols": true,
  "transparency": 0,
  "labelingInfo": null
 },
 "defaultVisibility": true,
 "extent": {
  "xmin": 1.91765280752E7,
  "ymin": -5453954.2181,
  "xmax": 1.92763241167E7,
  "ymax": -5350706.2782000005,
  "spatialReference": {
   "wkid": 102100,
   "latestWkid": 3857,
   "xyTolerance": 0.001,
   "zTolerance": 2,
   "mTolerance": 0.001,
   "falseX": -20037700,
   "falseY": -30241100,
   "xyUnits": 1.4892314192838538E8,
   "falseZ": 0,
   "zUnits": 1,
   "falseM": -100000,
   "mUnits": 10000
  }
 },
 "hasAttachments": false,
 "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
 "displayField": "STATUS_DESCRIPTION",
 "typeIdField": null,
 "subtypeFieldName": null,
 "subtypeField": null,
 "defaultSubtypeCode": null,
 "fields": [
  {
   "name": "OBJECTID",
   "type": "esriFieldTypeOID",
   "alias": "OBJECTID",
   "domain": null
  },
  {
   "name": "AREA_NAME",
   "type": "esriFieldTypeString",
   "alias": "AREA_NAME",
   "length": 50,
   "domain": null
  },
  {
   "name": "STATUS",
   "type": "esriFieldTypeString",
   "alias": "STATUS",
   "length": 10,
   "domain": {
    "type": "codedValue",
    "name": "WATERQUALITY_AREAS",
    "description": "BLUE_RED",
    "codedValues": [
     {
      "name": "BLUE",
      "code": "BLUE"
     },
     {
      "name": "RED",
      "code": "ORANGE"
     }
    ],
    "mergePolicy": "esriMPTDefaultValue",
    "splitPolicy": "esriSPTDefaultValue"
   }
  },
  {
   "name": "STATUS_DESCRIPTION",
   "type": "esriFieldTypeString",
   "alias": "STATUS_DESCRIPTION",
   "length": 254,
   "domain": {
    "type": "codedValue",
    "name": "WATERQUALITY_AREAS_DESC",
    "description": "Water quality description",
    "codedValues": [
     {
      "name": "Normal water quality",
      "code": "Normal water quality"
     },
     {
      "name": "Area closed to recreational use",
      "code": "Area closed to recreational use"
     }
    ],
    "mergePolicy": "esriMPTDefaultValue",
    "splitPolicy": "esriSPTDefaultValue"
   }
  },
  {
   "name": "PERIMETER_M",
   "type": "esriFieldTypeDouble",
   "alias": "PERIMETER_M",
   "domain": null
  },
  {
   "name": "AREA_M2",
   "type": "esriFieldTypeDouble",
   "alias": "AREA_M2",
   "domain": null
  },
  {
   "name": "AREA_HA",
   "type": "esriFieldTypeDouble",
   "alias": "AREA_HA",
   "domain": null
  },
  {
   "name": "SOURCECODE",
   "type": "esriFieldTypeString",
   "alias": "SOURCECODE",
   "length": 6,
   "domain": {
    "type": "codedValue",
    "name": "QA_SourceCode",
    "description": "Source of record shapes for QA purposes",
    "codedValues": [
     {
      "name": "Derived from a NZMS 260 Grid Reference.",
      "code": "NZMSGR"
     },
     {
      "name": "Derived from a NZTM Grid Reference",
      "code": "NZTMGR"
     },
     {
      "name": "Direct input from a GPS device",
      "code": "GPS"
     },
     {
      "name": "Derived from cadastral dataset",
      "code": "PARCEL"
     },
     {
      "name": "Manually derived by a user from a GIS application",
      "code": "MANCAP"
     },
     {
      "name": "Derivation unknown",
      "code": "UNKNWN"
     }
    ],
    "mergePolicy": "esriMPTDefaultValue",
    "splitPolicy": "esriSPTDefaultValue"
   }
  },
  {
   "name": "QARCODE",
   "type": "esriFieldTypeSmallInteger",
   "alias": "QARCODE",
   "domain": {
    "type": "codedValue",
    "name": "QA_QARCode",
    "description": "Description code for the accuracy of the GIS record.",
    "codedValues": [
     {
      "name": "Differential GPS (advanced) or Geodetic Land Survey.",
      "code": 1
     },
     {
      "name": "Standard handheld GPS OR accurate location sketch, confirmed by GIS.",
      "code": 2
     },
     {
      "name": "Site visit OR dillers GPS OR checked location sketch using GIS.",
      "code": 3
     },
     {
      "name": "Old Gridref ±100m, no location sketch, Location not checked.",
      "code": 4
     },
     {
      "name": "Proposed Location, should be within 50m of final location.",
      "code": 5
     },
     {
      "name": "Cadastral Accuracy, (1:10,000 scale accuracy)",
      "code": 6
     },
     {
      "name": "Unknown",
      "code": 0
     }
    ],
    "mergePolicy": "esriMPTDefaultValue",
    "splitPolicy": "esriSPTDefaultValue"
   }
  },
  {
   "name": "CREATEDBY",
   "type": "esriFieldTypeString",
   "alias": "CREATEDBY",
   "length": 16,
   "domain": null
  },
  {
   "name": "CREATEDDATE",
   "type": "esriFieldTypeDate",
   "alias": "CREATEDDATE",
   "length": 8,
   "domain": null
  },
  {
   "name": "MODIFIEDBY",
   "type": "esriFieldTypeString",
   "alias": "MODIFIEDBY",
   "length": 16,
   "domain": null
  },
  {
   "name": "MODIFIEDDATE",
   "type": "esriFieldTypeDate",
   "alias": "MODIFIEDDATE",
   "length": 8,
   "domain": null
  },
  {
   "name": "SHAPE",
   "type": "esriFieldTypeGeometry",
   "alias": "SHAPE",
   "domain": null
  },
  {
   "name": "SHAPE.STArea()",
   "type": "esriFieldTypeDouble",
   "alias": "SHAPE.STArea()",
   "domain": null
  },
  {
   "name": "SHAPE.STLength()",
   "type": "esriFieldTypeDouble",
   "alias": "SHAPE.STLength()",
   "domain": null
  }
 ],
 "geometryField": {
  "name": "SHAPE",
  "type": "esriFieldTypeGeometry",
  "alias": "SHAPE"
 },
 "indexes": [
  {
   "name": "R152_pk",
   "fields": "OBJECTID",
   "isAscending": true,
   "isUnique": true,
   "description": ""
  },
  {
   "name": "S146_idx",
   "fields": "SHAPE",
   "isAscending": true,
   "isUnique": true,
   "description": ""
  }
 ],
 "subtypes": [],
 "relationships": [],
 "canModifyLayer": true,
 "canScaleSymbols": false,
 "hasLabels": false,
 "capabilities": "Map,Query,Data",
 "maxRecordCount": 1000,
 "supportsStatistics": true,
 "supportsExceedsLimitStatistics": true,
 "supportsAdvancedQueries": true,
 "supportedQueryFormats": "JSON, geoJSON, PBF",
 "isDataVersioned": false,
 "ownershipBasedAccessControlForFeatures": {"allowOthersToQuery": true},
 "useStandardizedQueries": true,
 "supportedSpatialRelationships": [
  "esriSpatialRelIntersects",
  "esriSpatialRelContains",
  "esriSpatialRelCrosses",
  "esriSpatialRelEnvelopeIntersects",
  "esriSpatialRelIndexIntersects",
  "esriSpatialRelOverlaps",
  "esriSpatialRelTouches",
  "esriSpatialRelWithin",
  "esriSpatialRelRelation"
 ],
 "advancedQueryCapabilities": {
  "useStandardizedQueries": true,
  "supportsStatistics": true,
  "supportsPercentileStatistics": true,
  "supportsHavingClause": true,
  "supportsOrderBy": true,
  "supportsDistinct": true,
  "supportsCountDistinct": true,
  "supportsAdvancedQueryRelated": true,
  "supportsQueryRelatedPagination": true,
  "supportsPagination": true,
  "supportsLod": false,
  "supportsQueryWithLodSR": false,
  "supportsTrueCurve": true,
  "supportsQueryWithDatumTransformation": true,
  "supportsReturningQueryExtent": true,
  "supportsQueryWithDistance": true,
  "supportsSqlExpression": true,
  "supportsTimeRelation": true,
  "supportsSqlFormat": false,
  "supportsQueryAnalytic": true,
  "supportsCurrentUserQueries": true
 },
 "supportsDatumTransformation": true,
 "advancedQueryAnalyticCapabilities": {
  "supportsLinearRegression": true,
  "supportsAsync": false,
  "supportsPercentileAnalytic": true
 },
 "dateFieldsTimeReference": null,
 "preferredTimeReference": null,
 "datesInUnknownTimezone": false,
 "hasGeometryProperties": true,
 "geometryProperties": {
  "shapeAreaFieldName": "SHAPE.STArea()",
  "shapeLengthFieldName": "SHAPE.STLength()",
  "units": "esriMeters",
  "mapUnits": {"uwkid": 9001}
 },
 "hasMetadata": true,
 "isDataArchived": false,
 "archivingInfo": {
  "supportsQueryWithHistoricMoment": false,
  "startArchivingMoment": -1
 },
 "supportsCoordinatesQuantization": true,
 "supportsDynamicLegends": true
}