{
 "currentVersion": 11.1,
 "cimVersion": "3.1.0",
 "id": 3,
 "name": "Water Quality - Stream Health",
 "type": "Feature Layer",
 "parentLayer": null,
 "defaultVisibility": true,
 "minScale": 125000,
 "maxScale": 0,
 "canScaleSymbols": false,
 "geometryType": "esriGeometryPoint",
 "description": "Sites monitored as part of Environment Canterbury's stream health quality program. The results of chemical and biological tests are accessible from the location listed inthe LINK field.",
 "copyrightText": "Environment Canterbury",
 "editFieldsInfo": null,
 "ownershipBasedAccessControlForFeatures": null,
 "syncCanReturnChanges": false,
 "relationships": [],
 "isDataVersioned": false,
 "isDataArchived": false,
 "infoInEstimates": [
  "count"
 ],
 "isDataBranchVersioned": false,
 "isDataReplicaTracked": false,
 "isCoGoEnabled": false,
 "supportsRollbackOnFailureParameter": true,
 "archivingInfo": {
  "supportsQueryWithHistoricMoment": false,
  "startArchivingMoment": -1
 },
 "supportsStatistics": true,
 "supportsExceedsLimitStatistics": true,
 "supportsAdvancedQueries": true,
 "supportsValidateSQL": true,
 "supportsCoordinatesQuantization": true,
 "supportsQuantizationEditMode": true,
 "supportsCalculate": true,
 "supportsASyncCalculate": true,
 "supportsDatumTransformation": true,
 "advancedQueryCapabilities": {
  "supportsPagination": true,
  "supportsTrueCurve": true,
  "supportsQueryWithDistance": true,
  "supportsReturningQueryExtent": true,
  "supportsStatistics": true,
  "supportsPercentileStatistics": true,
  "supportsHavingClause": true,
  "supportsOrderBy": true,
  "supportsDistinct": true,
  "supportsCountDistinct": true,
  "supportsQueryWithResultType": true,
  "supportsReturningGeometryCentroid": false,
  "supportsSqlExpression": true,
  "supportsQueryWithDatumTransformation": true,
  "supportsLod": false,
  "supportsQueryWithLodSR": false,
  "supportsQueryAnalytic": true
 },
 "advancedQueryAnalyticCapabilities": {
  "supportsLinearRegression": true,
  "supportsAsync": false,
  "supportsPercentileAnalytic": true
 },
 "advancedEditingCapabilities": {
  "supportedSqlFormatsInCalculate": [
   "standard"
  ],
  "supportsAsyncApplyEdits": true,
  "supportsApplyEditsbyUploadID": true,
  "supportedApplyEditsUploadIDFormats": "JSON"
 },
 "hasMetadata": true,
 "extent": {
  "xmin": -4020763.2677228367,
  "ymin": 2036.0570636580535,
  "xmax": 7220763.267722837,
  "ymax": 1.9997963942936342E7,
  "spatialReference": {
   "wkid": 2193,
   "latestWkid": 2193,
   "xyTolerance": 0.001,
   "zTolerance": 0.001,
   "mTolerance": 0.001,
   "falseX": -4020900,
   "falseY": 1900,
   "xyUnits": 4.504455473910538E8,
   "falseZ": -100000,
   "zUnits": 10000,
   "falseM": -100000,
   "mUnits": 10000
  }
 },
 "sourceSpatialReference": {
  "wkid": 2193,
  "latestWkid": 2193,
  "xyTolerance": 0.001,
  "zTolerance": 0.001,
  "mTolerance": 0.001,
  "falseX": -4020900,
  "falseY": 1900,
  "xyUnits": 10000,
  "falseZ": -100000,
  "zUnits": 10000,
  "falseM": -100000,
  "mUnits": 10000
 },
 "drawingInfo": {
  "renderer": {
   "type": "simple",
   "symbol": {
    "type": "esriPMS",
    "url": "a30c99635d2ff532e72947f39b048690",
    "imageData": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAUklEQVQYlWNhIBKwQOnNDAwMPjjUnGVgYDCBKfSRCWFg4FZCVfH1HgPDkzUMxsgmghUJGhG2moFYN9JAIcjh6OD3e0yFZ2G+wwJAwQNXaELIbgACUg5meQJOAgAAAABJRU5ErkJggg==",
    "contentType": "image/png",
    "width": 7,
    "height": 7,
    "angle": 0,
    "xoffset": 0,
    "yoffset": 0
   }
  },
  "scaleSymbols": true,
  "transparency": 0,
  "labelingInfo": [
   {
    "labelExpression": "[SITE_ID]",
    "labelPlacement": "esriServerPointLabelPlacementAboveRight",
    "deconflictionStrategy": "dynamic",
    "stackLabel": true,
    "stackAlignment": "dynamic",
    "removeDuplicates": "none",
    "stackRowLength": 24,
    "useCodedValues": true,
    "maxScale": 0,
    "minScale": 20000,
    "name": "Default",
    "priority": 6,
    "symbol": {
     "type": "esriTS",
     "color": [
      0,
      0,
      0,
      255
     ],
     "backgroundColor": null,
     "borderLineColor": null,
     "borderLineSize": null,
     "verticalAlignment": "bottom",
     "horizontalAlignment": "left",
     "rightToLeft": false,
     "angle": 0,
     "xoffset": 0,
     "yoffset": 0,
     "kerning": true,
     "haloColor": [
      245,
      245,
      245,
      255
     ],
     "haloSize": 1,
     "font": {
      "family": "Arial",
      "size": 7,
      "style": "normal",
      "weight": "bold",
      "decoration": "none"
     }
    }
   }
  ]
 },
 "hasM": false,
 "hasZ": false,
 "allowGeometryUpdates": false,
 "allowTrueCurvesUpdates": false,
 "onlyAllowTrueCurveUpdatesByTrueCurveClients": false,
 "hasAttachments": false,
 "supportsApplyEditsWithGlobalIds": false,
 "htmlPopupType": "esriServerHTMLPopupTypeNone",
 "objectIdField": "OBJECTID",
 "globalIdField": "",
 "displayField": "SITE_ID",
 "typeIdField": "",
 "subtypeField": "",
 "fields": [
  {
   "name": "SITE_ID",
   "type": "esriFieldTypeString",
   "alias": "SITE_ID",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 12,
   "defaultValue": null,
   "modelName": "SITE_ID"
  },
  {
   "name": "SITE_NAME",
   "type": "esriFieldTypeString",
   "alias": "SITE_NAME",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 150,
   "defaultValue": null,
   "modelName": "SITE_NAME"
  },
  {
   "name": "SOURCE",
   "type": "esriFieldTypeString",
   "alias": "SOURCE",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 50,
   "defaultValue": null,
   "modelName": "SOURCE"
  },
  {
   "name": "SITE_TYPE",
   "type": "esriFieldTypeString",
   "alias": "SITE_TYPE",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 25,
   "defaultValue": null,
   "modelName": "SITE_TYPE"
  },
  {
   "name": "SPRING_NO",
   "type": "esriFieldTypeString",
   "alias": "SPRING_NO",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 9,
   "defaultValue": null,
   "modelName": "SPRING_NO"
  },
  {
   "name": "GAUGING_SITE_INDEX",
   "type": "esriFieldTypeInteger",
   "alias": "GAUGING_SITE_INDEX",
   "domain": null,
   "editable": true,
   "nullable": true,
   "defaultValue": null,
   "modelName": "GAUGING_SITE_INDEX"
  },
  {
   "name": "ALTITUDE",
   "type": "esriFieldTypeInteger",
   "alias": "ALTITUDE",
   "domain": null,
   "editable": true,
   "nullable": true,
   "defaultValue": null,
   "modelName": "ALTITUDE"
  },
  {
   "name": "OBJECTID",
   "type": "esriFieldTypeOID",
   "alias": "QAR_CODE",
   "domain": null,
   "editable": false,
   "nullable": false,
   "defaultValue": null,
   "modelName": "OBJECTID"
  },
  {
   "name": "SOF",
   "type": "esriFieldTypeString",
   "alias": "SOF",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 20,
   "defaultValue": null,
   "modelName": "SOF"
  },
  {
   "name": "LANDUSE_CODE",
   "type": "esriFieldTypeString",
   "alias": "LANDUSE_CODE",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 2,
   "defaultValue": null,
   "modelName": "LANDUSE_CODE"
  },
  {
   "name": "REFERENCE_SITE",
   "type": "esriFieldTypeString",
   "alias": "REFERENCE_SITE",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 1,
   "defaultValue": null,
   "modelName": "REFERENCE_SITE"
  },
  {
   "name": "REFERENCED_TO_SITE",
   "type": "esriFieldTypeString",
   "alias": "REFERENCED_TO_SITE",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 9,
   "defaultValue": null,
   "modelName": "REFERENCED_TO_SITE"
  },
  {
   "name": "STREAMHEALTH_SAMPLEDESCRIPTION",
   "type": "esriFieldTypeString",
   "alias": "STREAMHEALTH_SAMPLEDESCRIPTION",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 150,
   "defaultValue": null,
   "modelName": "STREAMHEALTH_SAMPLEDESCRIPTION"
  },
  {
   "name": "STREAMHEALTH_OLDNUMBER",
   "type": "esriFieldTypeInteger",
   "alias": "STREAMHEALTH_OLDNUMBER",
   "domain": null,
   "editable": true,
   "nullable": true,
   "defaultValue": null,
   "modelName": "STREAMHEALTH_OLDNUMBER"
  },
  {
   "name": "QSITE_ID",
   "type": "esriFieldTypeString",
   "alias": "QSITE_ID",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 9,
   "defaultValue": null,
   "modelName": "QSITE_ID"
  },
  {
   "name": "NZMGX",
   "type": "esriFieldTypeInteger",
   "alias": "NZMGX",
   "domain": null,
   "editable": true,
   "nullable": true,
   "defaultValue": null,
   "modelName": "NZMGX"
  },
  {
   "name": "NZMGY",
   "type": "esriFieldTypeInteger",
   "alias": "NZMGY",
   "domain": null,
   "editable": true,
   "nullable": true,
   "defaultValue": null,
   "modelName": "NZMGY"
  },
  {
   "name": "NZMS260",
   "type": "esriFieldTypeString",
   "alias": "NZMS260",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 16,
   "defaultValue": null,
   "modelName": "NZMS260"
  },
  {
   "name": "NZTMX",
   "type": "esriFieldTypeInteger",
   "alias": "NZTMX",
   "domain": null,
   "editable": true,
   "nullable": true,
   "defaultValue": null,
   "modelName": "NZTMX"
  },
  {
   "name": "NZTMY",
   "type": "esriFieldTypeInteger",
   "alias": "NZTMY",
   "domain": null,
   "editable": true,
   "nullable": true,
   "defaultValue": null,
   "modelName": "NZTMY"
  },
  {
   "name": "NZTOPO50",
   "type": "esriFieldTypeString",
   "alias": "NZTOPO50",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 16,
   "defaultValue": null,
   "modelName": "NZTOPO50"
  },
  {
   "name": "QAR_CODE",
   "type": "esriFieldTypeSmallInteger",
   "alias": "QAR_CODE",
   "domain": null,
   "editable": true,
   "nullable": false,
   "defaultValue": null,
   "modelName": "QAR_CODE"
  }
 ],
 "geometryField": {
  "name": "SHAPE",
  "type": "esriFieldTypeGeometry",
  "alias": "SHAPE",
  "domain": null,
  "editable": false,
  "nullable": true,
  "defaultValue": null,
  "modelName": "SHAPE"
 },
 "datesInUnknownTimezone": false,
 "dateFieldsTimeReference": {
  "timeZone": "New Zealand Standard Time",
  "respectsDaylightSaving": false
 },
 "preferredTimeReference": null,
 "types": [],
 "templates": [
  {
   "name": "Water Quality - Stream Health",
   "description": "",
   "prototype": {
    "attributes": {
     "NZTOPO50": null,
     "SITE_ID": null,
     "SITE_NAME": null,
     "SOURCE": null,
     "SITE_TYPE": null,
     "SPRING_NO": null,
     "GAUGING_SITE_INDEX": null,
     "ALTITUDE": null,
     "QAR_CODE": 0,
     "SOF": null,
     "LANDUSE_CODE": null,
     "REFERENCE_SITE": null,
     "REFERENCED_TO_SITE": null,
     "STREAMHEALTH_SAMPLEDESCRIPTION": null,
     "STREAMHEALTH_OLDNUMBER": null,
     "QSITE_ID": null,
     "NZMGX": null,
     "NZMGY": null,
     "NZMS260": null,
     "NZTMX": null,
     "NZTMY": null
    }
   },
   "drawingTool": "esriFeatureEditToolPoint"
  }
 ],
 "maxRecordCount": 1000,
 "supportedQueryFormats": "JSON, geoJSON, PBF",
 "supportedExportFormats": "sqlite,filegdb,shapefile,csv,geojson",
 "capabilities": "Query",
 "useStandardizedQueries": true,
 "supportedSpatialRelationships": [
  "esriSpatialRelIntersects",
  "esriSpatialRelContains",
  "esriSpatialRelCrosses",
  "esriSpatialRelEnvelopeIntersects",
  "esriSpatialRelIndexIntersects",
  "esriSpatialRelOverlaps",
  "esriSpatialRelTouches",
  "esriSpatialRelWithin",
  "esriSpatialRelRelation"
 ],
 "standardMaxRecordCount": 32000,
 "tileMaxRecordCount": 8000,
 "standardMaxRecordCountNoGeometry": 32000,
 "maxRecordCountFactor": 1
}