{
 "layers": [
  {
   "currentVersion": 11.3,
   "cimVersion": "3.3.0",
   "id": 0,
   "name": "Water Quality - Surface Water",
   "type": "Feature Layer",
   "description": "Sites where surface water (i.e. rivers, streams, estuaries, drains, lakes, etc) quality samples have been taken and tested.  The results of chemical and biological tests are accessible from the location listed inthe LINK field.",
   "geometryType": "esriGeometryPoint",
   "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
   },
   "copyrightText": "Environment Canterbury",
   "parentLayer": null,
   "subLayers": [],
   "minScale": 125000,
   "maxScale": 0,
   "referenceScale": 0.0,
   "drawingInfo": {
    "renderer": {
     "type": "simple",
     "symbol": {
      "type": "esriPMS",
      "url": "b3e990093385f7d413e6dd67c7973691",
      "imageData": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAVUlEQVQYlWNhIBKwQOnNDAwMPjjUnGVgYDCBKfTRbchlEDLWRlHx7uxVhssNk42RTQQrkvZxJGg1A7FupIFCkMPRwfdnrzAUnoX5DgsABQ9coQkhuwHR8BL+Y3TNAwAAAABJRU5ErkJggg==",
      "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": 2,
      "symbol": {
       "type": "esriTS",
       "color": [
        0,
        168,
        132,
        255
       ],
       "backgroundColor": null,
       "borderLineColor": null,
       "borderLineSize": null,
       "verticalAlignment": "bottom",
       "horizontalAlignment": "center",
       "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": "normal",
        "decoration": "none"
       }
      }
     }
    ]
   },
   "defaultVisibility": true,
   "extent": {
    "xmin": 1274228.6890000002,
    "ymin": 5004186.1432,
    "xmax": 2465123.0349000003,
    "ymax": 5355772.9677,
    "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
    }
   },
   "hasAttachments": false,
   "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
   "displayField": "SITE_NAME",
   "typeIdField": null,
   "subtypeFieldName": null,
   "subtypeField": null,
   "defaultSubtypeCode": null,
   "fields": [
    {
     "name": "SHAPE",
     "type": "esriFieldTypeGeometry",
     "alias": "SHAPE",
     "domain": null
    },
    {
     "name": "SITE_ID",
     "type": "esriFieldTypeString",
     "alias": "SITE_ID",
     "length": 12,
     "domain": null
    },
    {
     "name": "SITE_NAME",
     "type": "esriFieldTypeString",
     "alias": "SITE_NAME",
     "length": 150,
     "domain": null
    },
    {
     "name": "SOURCE",
     "type": "esriFieldTypeString",
     "alias": "SOURCE",
     "length": 50,
     "domain": null
    },
    {
     "name": "SITE_TYPE",
     "type": "esriFieldTypeString",
     "alias": "SITE_TYPE",
     "length": 25,
     "domain": null
    },
    {
     "name": "SPRING_NO",
     "type": "esriFieldTypeString",
     "alias": "SPRING_NO",
     "length": 9,
     "domain": null
    },
    {
     "name": "GAUGING_SITE_INDEX",
     "type": "esriFieldTypeInteger",
     "alias": "GAUGING_SITE_INDEX",
     "domain": null
    },
    {
     "name": "ALTITUDE",
     "type": "esriFieldTypeInteger",
     "alias": "ALTITUDE",
     "domain": null
    },
    {
     "name": "Link",
     "type": "esriFieldTypeString",
     "alias": "Link",
     "length": 75,
     "domain": null
    },
    {
     "name": "QAR_CODE",
     "type": "esriFieldTypeSmallInteger",
     "alias": "QAR_CODE",
     "domain": null
    },
    {
     "name": "NZMGX",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGX",
     "domain": null
    },
    {
     "name": "NZMGY",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGY",
     "domain": null
    },
    {
     "name": "NZMS260",
     "type": "esriFieldTypeString",
     "alias": "NZMS260",
     "length": 16,
     "domain": null
    },
    {
     "name": "NZTMX",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMX",
     "domain": null
    },
    {
     "name": "NZTMY",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMY",
     "domain": null
    },
    {
     "name": "NZTOPO50",
     "type": "esriFieldTypeString",
     "alias": "NZTOPO50",
     "length": 16,
     "domain": null
    },
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "OBJECTID",
     "domain": null
    }
   ],
   "geometryField": {
    "name": "SHAPE",
    "type": "esriFieldTypeGeometry",
    "alias": "SHAPE"
   },
   "indexes": null,
   "subtypes": [],
   "relationships": [],
   "canModifyLayer": true,
   "canScaleSymbols": false,
   "hasLabels": true,
   "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": {
    "timeZone": "New Zealand Standard Time",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "datesInUnknownTimezone": false,
   "hasMetadata": true,
   "isDataArchived": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsCoordinatesQuantization": true,
   "supportsDynamicLegends": true
  },
  {
   "currentVersion": 11.3,
   "cimVersion": "3.3.0",
   "id": 1,
   "name": "Water Quality - Groundwater ",
   "type": "Feature Layer",
   "description": "Sites where groundwater quality samples have been taken from wells and test bores and tested.  The results of chemical and biological tests are accessible from the location listed inthe LINK field.",
   "geometryType": "esriGeometryPoint",
   "sourceSpatialReference": {
    "wkid": 2193,
    "latestWkid": 2193,
    "xyTolerance": 0.001,
    "zTolerance": 0.001,
    "mTolerance": 0.001,
    "falseX": -4020900,
    "falseY": 1900,
    "xyUnits": 10000,
    "falseZ": 0,
    "zUnits": 1,
    "falseM": 0,
    "mUnits": 1
   },
   "copyrightText": "Environment Canterbury",
   "parentLayer": null,
   "subLayers": [],
   "minScale": 125000,
   "maxScale": 0,
   "referenceScale": 0.0,
   "drawingInfo": {
    "renderer": {
     "type": "simple",
     "symbol": {
      "type": "esriPMS",
      "url": "577274173966d81837c6ff33ed1390e5",
      "imageData": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAVklEQVQYlWNhIBKwQOnNDAwMPjjUnGVgYDCBKfTx8/NjkJeXR1Hx8OFDhk2bNhkjmwhWpK+vT9BqBmLdSAOFIIejg48fP2IoPAvzHRYACh64QhNCdgMAtP4THyCmSyIAAAAASUVORK5CYII=",
      "contentType": "image/png",
      "width": 7,
      "height": 7,
      "angle": 0,
      "xoffset": 0,
      "yoffset": 0
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": [
     {
      "labelExpression": "[well_no]",
      "labelPlacement": "esriServerPointLabelPlacementAboveRight",
      "deconflictionStrategy": "dynamic",
      "stackLabel": true,
      "stackAlignment": "dynamic",
      "removeDuplicates": "none",
      "stackRowLength": 24,
      "useCodedValues": true,
      "maxScale": 0,
      "minScale": 0,
      "name": "Default",
      "priority": 3,
      "symbol": {
       "type": "esriTS",
       "color": [
        156,
        156,
        156,
        255
       ],
       "backgroundColor": null,
       "borderLineColor": null,
       "borderLineSize": null,
       "verticalAlignment": "bottom",
       "horizontalAlignment": "center",
       "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": "normal",
        "decoration": "none"
       }
      }
     }
    ]
   },
   "defaultVisibility": true,
   "extent": {
    "xmin": 1346869,
    "ymin": 5023808,
    "xmax": 1674411,
    "ymax": 5332683,
    "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
    }
   },
   "hasAttachments": false,
   "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
   "displayField": "well_no",
   "typeIdField": null,
   "subtypeFieldName": null,
   "subtypeField": null,
   "defaultSubtypeCode": null,
   "fields": [
    {
     "name": "Shape",
     "type": "esriFieldTypeGeometry",
     "alias": "SHAPE",
     "domain": null
    },
    {
     "name": "well_type_desc",
     "type": "esriFieldTypeString",
     "alias": "WELL_TYPE_DESC",
     "length": 50,
     "domain": null
    },
    {
     "name": "locality",
     "type": "esriFieldTypeString",
     "alias": "LOCALITY",
     "length": 70,
     "domain": null
    },
    {
     "name": "road_or_street",
     "type": "esriFieldTypeString",
     "alias": "ROAD_OR_STREET",
     "length": 50,
     "domain": null
    },
    {
     "name": "depth",
     "type": "esriFieldTypeDouble",
     "alias": "DEPTH",
     "domain": null
    },
    {
     "name": "diameter",
     "type": "esriFieldTypeSmallInteger",
     "alias": "DIAMETER",
     "domain": null
    },
    {
     "name": "date_drilled",
     "type": "esriFieldTypeDate",
     "alias": "DATE_DRILLED",
     "length": 8,
     "domain": null
    },
    {
     "name": "aquifer_tests",
     "type": "esriFieldTypeSmallInteger",
     "alias": "AQUIFER_TESTS",
     "domain": null
    },
    {
     "name": "step_test_steps",
     "type": "esriFieldTypeSmallInteger",
     "alias": "STEP_TEST_STEPS",
     "domain": null
    },
    {
     "name": "link",
     "type": "esriFieldTypeString",
     "alias": "Link",
     "length": 200,
     "domain": null
    },
    {
     "name": "nztmx",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMX",
     "domain": null
    },
    {
     "name": "nztmy",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMY",
     "domain": null
    },
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "OBJECTID",
     "domain": null
    },
    {
     "name": "sample_count",
     "type": "esriFieldTypeString",
     "alias": "sample_count",
     "length": 2048,
     "domain": null
    },
    {
     "name": "well_no",
     "type": "esriFieldTypeString",
     "alias": "well_no",
     "length": 9,
     "domain": null
    },
    {
     "name": "well_status_desc",
     "type": "esriFieldTypeString",
     "alias": "well_status_desc",
     "length": 50,
     "domain": null
    },
    {
     "name": "driller",
     "type": "esriFieldTypeString",
     "alias": "driller",
     "length": 50,
     "domain": null
    },
    {
     "name": "use_code_1_desc",
     "type": "esriFieldTypeString",
     "alias": "use_code_1_desc",
     "length": 50,
     "domain": null
    },
    {
     "name": "use_code_2_desc",
     "type": "esriFieldTypeString",
     "alias": "use_code_2_desc",
     "length": 50,
     "domain": null
    },
    {
     "name": "top_screen_1",
     "type": "esriFieldTypeDouble",
     "alias": "top_screen_1",
     "domain": null
    },
    {
     "name": "top_screen_2",
     "type": "esriFieldTypeDouble",
     "alias": "top_screen_2",
     "domain": null
    },
    {
     "name": "top_screen_3",
     "type": "esriFieldTypeDouble",
     "alias": "top_screen_3",
     "domain": null
    },
    {
     "name": "bottom_screen_1",
     "type": "esriFieldTypeDouble",
     "alias": "bottom_screen_1",
     "domain": null
    },
    {
     "name": "bottom_screen_2",
     "type": "esriFieldTypeDouble",
     "alias": "bottom_screen_2",
     "domain": null
    },
    {
     "name": "bottom_screen_3",
     "type": "esriFieldTypeDouble",
     "alias": "bottom_screen_3",
     "domain": null
    },
    {
     "name": "highest_water_level",
     "type": "esriFieldTypeDouble",
     "alias": "highest_water_level",
     "domain": null
    },
    {
     "name": "lowest_water_level",
     "type": "esriFieldTypeDouble",
     "alias": "lowest_water_level",
     "domain": null
    },
    {
     "name": "initial_swl",
     "type": "esriFieldTypeDouble",
     "alias": "initial_swl",
     "domain": null
    },
    {
     "name": "start_readings",
     "type": "esriFieldTypeDate",
     "alias": "start_readings",
     "length": 8,
     "domain": null
    },
    {
     "name": "end_readings",
     "type": "esriFieldTypeDate",
     "alias": "end_readings",
     "length": 8,
     "domain": null
    },
    {
     "name": "strata",
     "type": "esriFieldTypeSmallInteger",
     "alias": "strata",
     "domain": null
    },
    {
     "name": "samples_from",
     "type": "esriFieldTypeDate",
     "alias": "Samples From",
     "length": 8,
     "domain": null
    },
    {
     "name": "samples_to",
     "type": "esriFieldTypeDate",
     "alias": "Samples To",
     "length": 8,
     "domain": null
    }
   ],
   "geometryField": {
    "name": "Shape",
    "type": "esriFieldTypeGeometry",
    "alias": "SHAPE"
   },
   "indexes": [
    {
     "name": "R1055_pk",
     "fields": "OBJECTID",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    }
   ],
   "subtypes": [],
   "relationships": [],
   "canModifyLayer": true,
   "canScaleSymbols": false,
   "hasLabels": true,
   "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": {
    "timeZone": "New Zealand Standard Time",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "datesInUnknownTimezone": false,
   "hasMetadata": true,
   "isDataArchived": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsCoordinatesQuantization": true,
   "supportsDynamicLegends": true
  },
  {
   "currentVersion": 11.3,
   "cimVersion": "3.3.0",
   "id": 3,
   "name": "Water Quality - Stream Health",
   "type": "Feature Layer",
   "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.",
   "geometryType": "esriGeometryPoint",
   "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
   },
   "copyrightText": "Environment Canterbury",
   "parentLayer": null,
   "subLayers": [],
   "minScale": 125000,
   "maxScale": 0,
   "referenceScale": 0.0,
   "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"
       }
      }
     }
    ]
   },
   "defaultVisibility": 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
    }
   },
   "hasAttachments": false,
   "htmlPopupType": "esriServerHTMLPopupTypeNone",
   "displayField": "SITE_ID",
   "typeIdField": null,
   "subtypeFieldName": null,
   "subtypeField": null,
   "defaultSubtypeCode": null,
   "fields": [
    {
     "name": "SHAPE",
     "type": "esriFieldTypeGeometry",
     "alias": "Shape",
     "domain": null
    },
    {
     "name": "SITE_ID",
     "type": "esriFieldTypeString",
     "alias": "SITE_ID",
     "length": 12,
     "domain": null
    },
    {
     "name": "SITE_NAME",
     "type": "esriFieldTypeString",
     "alias": "SITE_NAME",
     "length": 150,
     "domain": null
    },
    {
     "name": "SOURCE",
     "type": "esriFieldTypeString",
     "alias": "SOURCE",
     "length": 50,
     "domain": null
    },
    {
     "name": "SITE_TYPE",
     "type": "esriFieldTypeString",
     "alias": "SITE_TYPE",
     "length": 25,
     "domain": null
    },
    {
     "name": "SPRING_NO",
     "type": "esriFieldTypeString",
     "alias": "SPRING_NO",
     "length": 9,
     "domain": null
    },
    {
     "name": "GAUGING_SITE_INDEX",
     "type": "esriFieldTypeInteger",
     "alias": "GAUGING_SITE_INDEX",
     "domain": null
    },
    {
     "name": "ALTITUDE",
     "type": "esriFieldTypeInteger",
     "alias": "ALTITUDE",
     "domain": null
    },
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "QAR_CODE",
     "domain": null
    },
    {
     "name": "SOF",
     "type": "esriFieldTypeString",
     "alias": "SOF",
     "length": 20,
     "domain": null
    },
    {
     "name": "LANDUSE_CODE",
     "type": "esriFieldTypeString",
     "alias": "LANDUSE_CODE",
     "length": 2,
     "domain": null
    },
    {
     "name": "REFERENCE_SITE",
     "type": "esriFieldTypeString",
     "alias": "REFERENCE_SITE",
     "length": 1,
     "domain": null
    },
    {
     "name": "REFERENCED_TO_SITE",
     "type": "esriFieldTypeString",
     "alias": "REFERENCED_TO_SITE",
     "length": 9,
     "domain": null
    },
    {
     "name": "STREAMHEALTH_SAMPLEDESCRIPTION",
     "type": "esriFieldTypeString",
     "alias": "STREAMHEALTH_SAMPLEDESCRIPTION",
     "length": 150,
     "domain": null
    },
    {
     "name": "STREAMHEALTH_OLDNUMBER",
     "type": "esriFieldTypeInteger",
     "alias": "STREAMHEALTH_OLDNUMBER",
     "domain": null
    },
    {
     "name": "QSITE_ID",
     "type": "esriFieldTypeString",
     "alias": "QSITE_ID",
     "length": 9,
     "domain": null
    },
    {
     "name": "NZMGX",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGX",
     "domain": null
    },
    {
     "name": "NZMGY",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGY",
     "domain": null
    },
    {
     "name": "NZMS260",
     "type": "esriFieldTypeString",
     "alias": "NZMS260",
     "length": 16,
     "domain": null
    },
    {
     "name": "NZTMX",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMX",
     "domain": null
    },
    {
     "name": "NZTMY",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMY",
     "domain": null
    },
    {
     "name": "NZTOPO50",
     "type": "esriFieldTypeString",
     "alias": "NZTOPO50",
     "length": 16,
     "domain": null
    },
    {
     "name": "QAR_CODE",
     "type": "esriFieldTypeSmallInteger",
     "alias": "QAR_CODE",
     "domain": null
    }
   ],
   "geometryField": {
    "name": "SHAPE",
    "type": "esriFieldTypeGeometry",
    "alias": "Shape"
   },
   "indexes": null,
   "subtypes": [],
   "relationships": [],
   "canModifyLayer": true,
   "canScaleSymbols": false,
   "hasLabels": true,
   "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": {
    "timeZone": "New Zealand Standard Time",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "datesInUnknownTimezone": false,
   "hasMetadata": true,
   "isDataArchived": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsCoordinatesQuantization": true,
   "supportsDynamicLegends": true
  },
  {
   "currentVersion": 11.3,
   "cimVersion": "3.3.0",
   "id": 4,
   "name": "River Gaugings",
   "type": "Feature Layer",
   "description": "Locations where river and stream flows have been measured. These locations are derived from Environment Canterbury's Gaugings Database.  Each record summarises the date of the first and most recent survey, the number of surveys recorded for the site, whether the site is monitored for a specific reason (such as for compliance or low flow monitoring purposes) and lists the minimum and maximum surveyed flows recorded.",
   "geometryType": "esriGeometryPoint",
   "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
   },
   "copyrightText": "Environment Canterbury",
   "parentLayer": null,
   "subLayers": [],
   "minScale": 125000,
   "maxScale": 0,
   "referenceScale": 0.0,
   "drawingInfo": {
    "renderer": {
     "type": "simple",
     "symbol": {
      "type": "esriPMS",
      "url": "291b9f4a1769a3c64ff898b73f2b50ac",
      "imageData": "iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAo0lEQVQokWNhwA6kGBgYnmGTYMEiZszAwLCZgYFBkoGBwYSBgeEsPg1gxcYMrpLvGV4y3GO4dAZdEws2xWUMC8EClQweGJpYcCkGgXaGHRiaWKAexFCMQ5M0CzQ0wG7GBQQZxEEUipNMQCaATAKZiAy6GOIZzjLsBiluBBkO0wASwNCEphgU1CihhKIJ5Ax0xdjiAa4JykZRjE0DTJM0lI2RPADVzkYrXI5ceAAAAABJRU5ErkJggg==",
      "contentType": "image/png",
      "width": 9,
      "height": 9,
      "angle": 0,
      "xoffset": 0,
      "yoffset": 0
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": [
     {
      "labelExpression": "[SITENUMBER]",
      "labelPlacement": "esriServerPointLabelPlacementAboveRight",
      "deconflictionStrategy": "dynamic",
      "stackLabel": true,
      "stackAlignment": "dynamic",
      "removeDuplicates": "none",
      "stackRowLength": 24,
      "useCodedValues": true,
      "maxScale": 0,
      "minScale": 20000,
      "name": "Default",
      "priority": 7,
      "symbol": {
       "type": "esriTS",
       "color": [
        169,
        0,
        230,
        255
       ],
       "backgroundColor": null,
       "borderLineColor": null,
       "borderLineSize": null,
       "verticalAlignment": "bottom",
       "horizontalAlignment": "left",
       "rightToLeft": false,
       "angle": 0,
       "xoffset": 0,
       "yoffset": 0,
       "kerning": true,
       "haloColor": [
        255,
        255,
        255,
        255
       ],
       "haloSize": 1,
       "font": {
        "family": "Arial",
        "size": 7,
        "style": "normal",
        "weight": "bold",
        "decoration": "none"
       }
      }
     }
    ]
   },
   "defaultVisibility": 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
    }
   },
   "hasAttachments": false,
   "htmlPopupType": "esriServerHTMLPopupTypeNone",
   "displayField": "OBJECTID",
   "typeIdField": null,
   "subtypeFieldName": null,
   "subtypeField": null,
   "defaultSubtypeCode": null,
   "fields": [
    {
     "name": "SHAPE",
     "type": "esriFieldTypeGeometry",
     "alias": "SHAPE",
     "domain": null
    },
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "SiteNumber",
     "domain": null
    },
    {
     "name": "RIVER",
     "type": "esriFieldTypeString",
     "alias": "RIVER",
     "length": 50,
     "domain": null
    },
    {
     "name": "SITENAME",
     "type": "esriFieldTypeString",
     "alias": "SITENAME",
     "length": 64,
     "domain": null
    },
    {
     "name": "SITE",
     "type": "esriFieldTypeString",
     "alias": "SITE",
     "length": 118,
     "domain": null
    },
    {
     "name": "TIM_CHCH",
     "type": "esriFieldTypeString",
     "alias": "TIM_CHCH",
     "length": 1,
     "domain": null
    },
    {
     "name": "FLOW_OR_STAGE",
     "type": "esriFieldTypeString",
     "alias": "FLOW_OR_STAGE",
     "length": 1,
     "domain": null
    },
    {
     "name": "RECORDER_SITE",
     "type": "esriFieldTypeString",
     "alias": "RECORDER_SITE",
     "length": 1,
     "domain": null
    },
    {
     "name": "TELEMETERED",
     "type": "esriFieldTypeString",
     "alias": "TELEMETERED",
     "length": 1,
     "domain": null
    },
    {
     "name": "COMPLIANCE_MONITORING",
     "type": "esriFieldTypeString",
     "alias": "COMPLIANCE_MONITORING",
     "length": 1,
     "domain": null
    },
    {
     "name": "FLOOD_CONTROL",
     "type": "esriFieldTypeString",
     "alias": "FLOOD_CONTROL",
     "length": 1,
     "domain": null
    },
    {
     "name": "NO_OF_GAUGINGS",
     "type": "esriFieldTypeInteger",
     "alias": "NO_OF_GAUGINGS",
     "domain": null
    },
    {
     "name": "FIRST_GAUGING",
     "type": "esriFieldTypeDate",
     "alias": "FIRST_GAUGING",
     "length": 8,
     "domain": null
    },
    {
     "name": "LAST_GAUGING",
     "type": "esriFieldTypeDate",
     "alias": "LAST_GAUGING",
     "length": 8,
     "domain": null
    },
    {
     "name": "MINIMUM_FLOW_SITE",
     "type": "esriFieldTypeString",
     "alias": "MINIMUM_FLOW_SITE",
     "length": 1,
     "domain": null
    },
    {
     "name": "MINIMUM",
     "type": "esriFieldTypeSingle",
     "alias": "MINIMUM",
     "domain": null
    },
    {
     "name": "LOWEST_FLOW",
     "type": "esriFieldTypeSingle",
     "alias": "LOWEST_FLOW",
     "domain": null
    },
    {
     "name": "HIGHEST_FLOW",
     "type": "esriFieldTypeSingle",
     "alias": "HIGHEST_FLOW",
     "domain": null
    },
    {
     "name": "ALTITUDE",
     "type": "esriFieldTypeSmallInteger",
     "alias": "ALTITUDE",
     "domain": null
    },
    {
     "name": "NZMGX",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGX",
     "domain": null
    },
    {
     "name": "NZMGY",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGY",
     "domain": null
    },
    {
     "name": "NZMS260",
     "type": "esriFieldTypeString",
     "alias": "NZMS260",
     "length": 16,
     "domain": null
    },
    {
     "name": "NZTMX",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMX",
     "domain": null
    },
    {
     "name": "NZTMY",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMY",
     "domain": null
    },
    {
     "name": "NZTOPO50",
     "type": "esriFieldTypeString",
     "alias": "NZTOPO50",
     "length": 16,
     "domain": null
    },
    {
     "name": "SITENUMBER",
     "type": "esriFieldTypeInteger",
     "alias": "SITENUMBER",
     "domain": null
    }
   ],
   "geometryField": {
    "name": "SHAPE",
    "type": "esriFieldTypeGeometry",
    "alias": "SHAPE"
   },
   "indexes": null,
   "subtypes": [],
   "relationships": [],
   "canModifyLayer": true,
   "canScaleSymbols": false,
   "hasLabels": true,
   "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": {
    "timeZone": "New Zealand Standard Time",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "datesInUnknownTimezone": false,
   "hasMetadata": true,
   "isDataArchived": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsCoordinatesQuantization": true,
   "supportsDynamicLegends": true
  },
  {
   "currentVersion": 11.3,
   "cimVersion": "3.3.0",
   "id": 5,
   "name": "Rainfall Monitoring Sites",
   "type": "Feature Layer",
   "description": "Locations where rainfall measuremnts have been recorded. These locations are derived from Environment Canterbury's Gaugings Database.  If the site is continuously monitored, summaries of the recorded daily rainfall for previous 7 dayas are listed.  This information is drawn from Environment Canterbury's Telemetry Network.",
   "geometryType": "esriGeometryPoint",
   "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
   },
   "copyrightText": "Environment Canterbury",
   "parentLayer": null,
   "subLayers": [],
   "minScale": 500000,
   "maxScale": 0,
   "referenceScale": 0.0,
   "drawingInfo": {
    "renderer": {
     "type": "simple",
     "symbol": {
      "type": "esriPMS",
      "url": "842121f3a4dd1ed9cc023660c83ed836",
      "imageData": "iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAsklEQVQokWNhIBOw4JHbDKV9SdG4WUZRw+fJ/Rsg9hkGBgYTYjSCNbmFpDLwCYowTKiKN8ammQWXJi0jG7BAQdtCrJpZ8GkCARlFDayaWfBpwqEZFGi+cBtBAQHyEz7AJyjC8On9m2cgNgtSkJ8BmQgyGWQDMgAZOq+7GKRpCwMDQzq6H02waX6Cqgkep+ihiqIZBLBpwqYRRTPUTxiacGmEad4MDQiwn4jVCAJY0ygMAAAgfVdnLJuT6AAAAABJRU5ErkJggg==",
      "contentType": "image/png",
      "width": 10,
      "height": 10,
      "angle": 0,
      "xoffset": 0,
      "yoffset": 0
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": [
     {
      "labelExpression": "[SITENUMBER] CONCAT \" - \" CONCAT [SITE]",
      "labelPlacement": "esriServerPointLabelPlacementAboveRight",
      "deconflictionStrategy": "dynamic",
      "allowOverlapOfFeatureInterior": "avoid",
      "stackLabel": true,
      "stackAlignment": "dynamic",
      "removeDuplicates": "none",
      "stackRowLength": 24,
      "useCodedValues": true,
      "maxScale": 0,
      "minScale": 20000,
      "name": "Default",
      "priority": 8,
      "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,
        253,
        255,
        255
       ],
       "haloSize": 1,
       "font": {
        "family": "Arial",
        "size": 7,
        "style": "normal",
        "weight": "bold",
        "decoration": "none"
       }
      }
     }
    ]
   },
   "defaultVisibility": 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
    }
   },
   "timeInfo": {
    "startTimeField": "LAST_SAMPLE",
    "endTimeField": null,
    "trackIdField": null,
    "type": "field",
    "timeExtent": [
     1524593700000,
     1524707100000
    ],
    "timeReference": {
     "timeZone": "New Zealand Standard Time",
     "respectsDaylightSaving": false
    },
    "timeInterval": 2,
    "timeIntervalUnits": "esriTimeUnitsHours",
    "exportOptions": {
     "useTime": true,
     "timeDataCumulative": false,
     "timeOffset": null,
     "timeOffsetUnits": null
    },
    "hasLiveData": false,
    "timeRelation": "esriTimeRelationOverlaps"
   },
   "hasAttachments": false,
   "htmlPopupType": "esriServerHTMLPopupTypeNone",
   "displayField": "SiteName",
   "typeIdField": null,
   "subtypeFieldName": null,
   "subtypeField": null,
   "defaultSubtypeCode": null,
   "fields": [
    {
     "name": "SHAPE",
     "type": "esriFieldTypeGeometry",
     "alias": "Shape",
     "domain": null
    },
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "SITENUMBER",
     "domain": null
    },
    {
     "name": "RIVER",
     "type": "esriFieldTypeString",
     "alias": "RIVER",
     "length": 50,
     "domain": null
    },
    {
     "name": "SITENAME",
     "type": "esriFieldTypeString",
     "alias": "SITENAME",
     "length": 64,
     "domain": null
    },
    {
     "name": "SITE",
     "type": "esriFieldTypeString",
     "alias": "SITE",
     "length": 118,
     "domain": null
    },
    {
     "name": "TIM_CHCH",
     "type": "esriFieldTypeString",
     "alias": "TIM_CHCH",
     "length": 1,
     "domain": null
    },
    {
     "name": "TELEMETERED",
     "type": "esriFieldTypeString",
     "alias": "TELEMETERED",
     "length": 1,
     "domain": null
    },
    {
     "name": "COMPLIANCE_MONITORING",
     "type": "esriFieldTypeString",
     "alias": "COMPLIANCE_MONITORING",
     "length": 1,
     "domain": null
    },
    {
     "name": "FLOOD_CONTROL",
     "type": "esriFieldTypeString",
     "alias": "FLOOD_CONTROL",
     "length": 1,
     "domain": null
    },
    {
     "name": "LAST_SAMPLE",
     "type": "esriFieldTypeDate",
     "alias": "LAST_SAMPLE",
     "length": 8,
     "domain": null
    },
    {
     "name": "LAST_HOUR",
     "type": "esriFieldTypeDouble",
     "alias": "LAST_HOUR",
     "domain": null
    },
    {
     "name": "RAIN_TODAY",
     "type": "esriFieldTypeDouble",
     "alias": "RAIN_TODAY",
     "domain": null
    },
    {
     "name": "RAIN_1_DAY_AGO",
     "type": "esriFieldTypeDouble",
     "alias": "RAIN_1_DAY_AGO",
     "domain": null
    },
    {
     "name": "RAIN_2_DAYS_AGO",
     "type": "esriFieldTypeDouble",
     "alias": "RAIN_2_DAYS_AGO",
     "domain": null
    },
    {
     "name": "RAIN_3_DAYS_AGO",
     "type": "esriFieldTypeDouble",
     "alias": "RAIN_3_DAYS_AGO",
     "domain": null
    },
    {
     "name": "RAIN_4_DAYS_AGO",
     "type": "esriFieldTypeDouble",
     "alias": "RAIN_4_DAYS_AGO",
     "domain": null
    },
    {
     "name": "RAIN_5_DAYS_AGO",
     "type": "esriFieldTypeDouble",
     "alias": "RAIN_5_DAYS_AGO",
     "domain": null
    },
    {
     "name": "RAIN_6_DAYS_AGO",
     "type": "esriFieldTypeDouble",
     "alias": "RAIN_6_DAYS_AGO",
     "domain": null
    },
    {
     "name": "RAIN_7_DAYS_AGO",
     "type": "esriFieldTypeDouble",
     "alias": "RAIN_7_DAYS_AGO",
     "domain": null
    },
    {
     "name": "TOTAL_RAINFALL",
     "type": "esriFieldTypeDouble",
     "alias": "TOTAL_RAINFALL",
     "domain": null
    },
    {
     "name": "ALTITUDE",
     "type": "esriFieldTypeSmallInteger",
     "alias": "ALTITUDE",
     "domain": null
    },
    {
     "name": "NZMGX",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGX",
     "domain": null
    },
    {
     "name": "NZMGY",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGY",
     "domain": null
    },
    {
     "name": "NZMS260",
     "type": "esriFieldTypeString",
     "alias": "NZMS260",
     "length": 16,
     "domain": null
    },
    {
     "name": "NZTMX",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMX",
     "domain": null
    },
    {
     "name": "NZTMY",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMY",
     "domain": null
    },
    {
     "name": "NZTOPO50",
     "type": "esriFieldTypeString",
     "alias": "NZTOPO50",
     "length": 16,
     "domain": null
    },
    {
     "name": "SITENUMBER",
     "type": "esriFieldTypeInteger",
     "alias": "SITENUMBER",
     "domain": null
    }
   ],
   "geometryField": {
    "name": "SHAPE",
    "type": "esriFieldTypeGeometry",
    "alias": "Shape"
   },
   "indexes": null,
   "subtypes": [],
   "relationships": [],
   "canModifyLayer": true,
   "canScaleSymbols": false,
   "hasLabels": true,
   "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": {
    "timeZone": "New Zealand Standard Time",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "datesInUnknownTimezone": false,
   "hasMetadata": true,
   "isDataArchived": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsCoordinatesQuantization": true,
   "supportsDynamicLegends": true
  },
  {
   "currentVersion": 11.3,
   "cimVersion": "3.3.0",
   "id": 6,
   "name": "River Flow and Stage Monitoring Sites",
   "type": "Feature Layer",
   "description": "Locations where river flow or stage measurements have been recorded. These locations are derived from Environment Canterbury's Gaugings Database.  Each record summarises the date of the first and most recent survey, the number of surveys recorded for the site, whether the site is monitored for a specific reason (such as for compliance or low flow monitoring purposes) and lists the minimum and maximum surveyed flows recorded.",
   "geometryType": "esriGeometryPoint",
   "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
   },
   "copyrightText": "Environment Canterbury",
   "parentLayer": null,
   "subLayers": [],
   "minScale": 500000,
   "maxScale": 0,
   "referenceScale": 0.0,
   "drawingInfo": {
    "renderer": {
     "type": "simple",
     "symbol": {
      "type": "esriPMS",
      "url": "73470eac03fa02a233cfc2832779e2bf",
      "imageData": "iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAq0lEQVQokWNhIBOw4JHbDKV9SdG4mYFfyYfh4z0Q+wwDA4MJMRohmtRDGBg4BBgYDlUZY9PMglOTuBFExK4Nq2YWvJpAgF8Jq2YWvJqwawYFmi/CRlBAgPyED3AIMjD8eP8MxGRBCvIzYBNBJoNsQAYgQ091gzRtYWBgSEf3owlWzR9RNMHjFD1UUTWDABZN2DSiaob4CUMTLo0wzZuhAQH2E7EaQQBrGoUBAJutQmkSkv+xAAAAAElFTkSuQmCC",
      "contentType": "image/png",
      "width": 10,
      "height": 10,
      "angle": 0,
      "xoffset": 0,
      "yoffset": 0
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": [
     {
      "labelExpression": "[Site]",
      "labelPlacement": "esriServerPointLabelPlacementAboveRight",
      "deconflictionStrategy": "dynamic",
      "allowOverlapOfFeatureInterior": "avoid",
      "stackLabel": true,
      "stackAlignment": "dynamic",
      "removeDuplicates": "none",
      "stackRowLength": 24,
      "useCodedValues": true,
      "maxScale": 0,
      "minScale": 20000,
      "name": "Default",
      "priority": 9,
      "symbol": {
       "type": "esriTS",
       "color": [
        0,
        77,
        168,
        255
       ],
       "backgroundColor": null,
       "borderLineColor": null,
       "borderLineSize": null,
       "verticalAlignment": "bottom",
       "horizontalAlignment": "left",
       "rightToLeft": false,
       "angle": 0,
       "xoffset": 0,
       "yoffset": 0,
       "kerning": true,
       "haloColor": [
        255,
        255,
        255,
        255
       ],
       "haloSize": 1,
       "font": {
        "family": "Arial",
        "size": 7,
        "style": "normal",
        "weight": "bold",
        "decoration": "none"
       }
      }
     }
    ]
   },
   "defaultVisibility": 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
    }
   },
   "hasAttachments": false,
   "htmlPopupType": "esriServerHTMLPopupTypeNone",
   "displayField": "SiteName",
   "typeIdField": null,
   "subtypeFieldName": null,
   "subtypeField": null,
   "defaultSubtypeCode": null,
   "fields": [
    {
     "name": "SHAPE",
     "type": "esriFieldTypeGeometry",
     "alias": "Shape",
     "domain": null
    },
    {
     "name": "SITENUMBER",
     "type": "esriFieldTypeInteger",
     "alias": "SITENUMBER",
     "domain": null
    },
    {
     "name": "RIVER",
     "type": "esriFieldTypeString",
     "alias": "RIVER",
     "length": 50,
     "domain": null
    },
    {
     "name": "SITENAME",
     "type": "esriFieldTypeString",
     "alias": "SITENAME",
     "length": 64,
     "domain": null
    },
    {
     "name": "SITE",
     "type": "esriFieldTypeString",
     "alias": "SITE",
     "length": 118,
     "domain": null
    },
    {
     "name": "TIM_CHCH",
     "type": "esriFieldTypeString",
     "alias": "TIM_CHCH",
     "length": 1,
     "domain": null
    },
    {
     "name": "RECORDER_SITE",
     "type": "esriFieldTypeString",
     "alias": "RECORDER_SITE",
     "length": 1,
     "domain": null
    },
    {
     "name": "TELEMETERED",
     "type": "esriFieldTypeString",
     "alias": "TELEMETERED",
     "length": 1,
     "domain": null
    },
    {
     "name": "COMPLIANCE_MONITORING",
     "type": "esriFieldTypeString",
     "alias": "COMPLIANCE_MONITORING",
     "length": 1,
     "domain": null
    },
    {
     "name": "FLOOD_CONTROL",
     "type": "esriFieldTypeString",
     "alias": "FLOOD_CONTROL",
     "length": 1,
     "domain": null
    },
    {
     "name": "MINIMUM_FLOW_SITE",
     "type": "esriFieldTypeString",
     "alias": "MINIMUM_FLOW_SITE",
     "length": 1,
     "domain": null
    },
    {
     "name": "MINIMUM_FLOW",
     "type": "esriFieldTypeSingle",
     "alias": "MINIMUM_FLOW",
     "domain": null
    },
    {
     "name": "NO_OF_GAUGINGS",
     "type": "esriFieldTypeInteger",
     "alias": "NO_OF_GAUGINGS",
     "domain": null
    },
    {
     "name": "FIRST_GAUGING",
     "type": "esriFieldTypeDate",
     "alias": "FIRST_GAUGING",
     "length": 8,
     "domain": null
    },
    {
     "name": "LAST_GAUGING",
     "type": "esriFieldTypeDate",
     "alias": "LAST_GAUGING",
     "length": 8,
     "domain": null
    },
    {
     "name": "LOWEST_FLOW",
     "type": "esriFieldTypeSingle",
     "alias": "LOWEST_FLOW",
     "domain": null
    },
    {
     "name": "HIGHEST_FLOW",
     "type": "esriFieldTypeSingle",
     "alias": "HIGHEST_FLOW",
     "domain": null
    },
    {
     "name": "ALTITUDE",
     "type": "esriFieldTypeSmallInteger",
     "alias": "ALTITUDE",
     "domain": null
    },
    {
     "name": "NZMGX",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGX",
     "domain": null
    },
    {
     "name": "NZMGY",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGY",
     "domain": null
    },
    {
     "name": "NZMS260",
     "type": "esriFieldTypeString",
     "alias": "NZMS260",
     "length": 16,
     "domain": null
    },
    {
     "name": "NZTMX",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMX",
     "domain": null
    },
    {
     "name": "NZTMY",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMY",
     "domain": null
    },
    {
     "name": "NZTOPO50",
     "type": "esriFieldTypeString",
     "alias": "NZTOPO50",
     "length": 16,
     "domain": null
    },
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "OBJECTID",
     "domain": null
    }
   ],
   "geometryField": {
    "name": "SHAPE",
    "type": "esriFieldTypeGeometry",
    "alias": "Shape"
   },
   "indexes": null,
   "subtypes": [],
   "relationships": [],
   "canModifyLayer": true,
   "canScaleSymbols": false,
   "hasLabels": true,
   "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": {
    "timeZone": "New Zealand Standard Time",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "datesInUnknownTimezone": false,
   "hasMetadata": true,
   "isDataArchived": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsCoordinatesQuantization": true,
   "supportsDynamicLegends": true
  },
  {
   "currentVersion": 11.3,
   "cimVersion": "3.3.0",
   "id": 11,
   "name": "River Flow and Stage Monitoring Sites with Plan Limits",
   "type": "Feature Layer",
   "description": "Subset of the river flow and stage monitoring sites which are associated with water use plan limits.",
   "geometryType": "esriGeometryPoint",
   "sourceSpatialReference": {
    "wkid": 2193,
    "latestWkid": 2193,
    "xyTolerance": 0.001,
    "zTolerance": 0.001,
    "mTolerance": 0.001,
    "falseX": -4020900,
    "falseY": 1900,
    "xyUnits": 10000,
    "falseZ": 0,
    "zUnits": 1,
    "falseM": 0,
    "mUnits": 1
   },
   "copyrightText": "",
   "parentLayer": null,
   "subLayers": [],
   "minScale": 0,
   "maxScale": 0,
   "referenceScale": 0.0,
   "drawingInfo": {
    "renderer": {
     "type": "simple",
     "symbol": {
      "type": "esriSMS",
      "style": "esriSMSCircle",
      "color": [
       50,
       132,
       81,
       255
      ],
      "size": 4,
      "angle": 0,
      "xoffset": 0,
      "yoffset": 0,
      "outline": {
       "color": [
        0,
        0,
        0,
        255
       ],
       "width": 0.7
      }
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": null
   },
   "defaultVisibility": false,
   "extent": {
    "xmin": 1339755,
    "ymin": 5020368,
    "xmax": 1659278,
    "ymax": 5315528,
    "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
    }
   },
   "hasAttachments": false,
   "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
   "displayField": "SITENAME",
   "typeIdField": null,
   "subtypeFieldName": null,
   "subtypeField": null,
   "defaultSubtypeCode": null,
   "fields": [
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "OBJECTID",
     "domain": null
    },
    {
     "name": "SITENUMBER",
     "type": "esriFieldTypeInteger",
     "alias": "SITENUMBER",
     "domain": null
    },
    {
     "name": "RIVER",
     "type": "esriFieldTypeString",
     "alias": "RIVER",
     "length": 50,
     "domain": null
    },
    {
     "name": "SITENAME",
     "type": "esriFieldTypeString",
     "alias": "SITENAME",
     "length": 50,
     "domain": null
    },
    {
     "name": "SITE",
     "type": "esriFieldTypeString",
     "alias": "SITE",
     "length": 100,
     "domain": null
    },
    {
     "name": "TIM_CHCH",
     "type": "esriFieldTypeString",
     "alias": "TIM_CHCH",
     "length": 1,
     "domain": null
    },
    {
     "name": "RECORDER_SITE",
     "type": "esriFieldTypeString",
     "alias": "RECORDER_SITE",
     "length": 1,
     "domain": null
    },
    {
     "name": "TELEMETERED",
     "type": "esriFieldTypeString",
     "alias": "TELEMETERED",
     "length": 1,
     "domain": null
    },
    {
     "name": "COMPLIANCE_MONITORING",
     "type": "esriFieldTypeString",
     "alias": "COMPLIANCE_MONITORING",
     "length": 1,
     "domain": null
    },
    {
     "name": "FLOOD_CONTROL",
     "type": "esriFieldTypeString",
     "alias": "FLOOD_CONTROL",
     "length": 1,
     "domain": null
    },
    {
     "name": "MINIMUM_FLOW_SITE",
     "type": "esriFieldTypeString",
     "alias": "MINIMUM_FLOW_SITE",
     "length": 1,
     "domain": null
    },
    {
     "name": "MINIMUM_FLOW",
     "type": "esriFieldTypeDouble",
     "alias": "MINIMUM_FLOW",
     "domain": null
    },
    {
     "name": "NO_OF_GAUGINGS",
     "type": "esriFieldTypeInteger",
     "alias": "NO_OF_GAUGINGS",
     "domain": null
    },
    {
     "name": "FIRST_GAUGING",
     "type": "esriFieldTypeDate",
     "alias": "FIRST_GAUGING",
     "length": 8,
     "domain": null
    },
    {
     "name": "LAST_GAUGING",
     "type": "esriFieldTypeDate",
     "alias": "LAST_GAUGING",
     "length": 8,
     "domain": null
    },
    {
     "name": "LOWEST_FLOW",
     "type": "esriFieldTypeDouble",
     "alias": "LOWEST_FLOW",
     "domain": null
    },
    {
     "name": "HIGHEST_FLOW",
     "type": "esriFieldTypeDouble",
     "alias": "HIGHEST_FLOW",
     "domain": null
    },
    {
     "name": "ALTITUDE",
     "type": "esriFieldTypeDouble",
     "alias": "ALTITUDE",
     "domain": null
    },
    {
     "name": "ALTITUDE_DATUM",
     "type": "esriFieldTypeString",
     "alias": "ALTITUDE_DATUM",
     "length": 50,
     "domain": null
    },
    {
     "name": "NZTMX",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMX",
     "domain": null
    },
    {
     "name": "NZTMY",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMY",
     "domain": null
    },
    {
     "name": "SOURCE_SYSTEM",
     "type": "esriFieldTypeString",
     "alias": "SOURCE_SYSTEM",
     "length": 50,
     "domain": null
    },
    {
     "name": "PUBLISHDATE",
     "type": "esriFieldTypeDate",
     "alias": "PUBLISHDATE",
     "length": 8,
     "domain": null
    },
    {
     "name": "PROCESSID",
     "type": "esriFieldTypeString",
     "alias": "PROCESSID",
     "length": 50,
     "domain": null
    },
    {
     "name": "Shape",
     "type": "esriFieldTypeGeometry",
     "alias": "Shape",
     "domain": null
    }
   ],
   "geometryField": {
    "name": "Shape",
    "type": "esriFieldTypeGeometry",
    "alias": "Shape"
   },
   "indexes": [
    {
     "name": "R994_pk",
     "fields": "OBJECTID",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    },
    {
     "name": "S976_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": {
    "timeZone": "New Zealand Standard Time",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "datesInUnknownTimezone": false,
   "hasMetadata": true,
   "isDataArchived": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsCoordinatesQuantization": true,
   "supportsDynamicLegends": true
  },
  {
   "currentVersion": 11.3,
   "cimVersion": "3.3.0",
   "id": 7,
   "name": "Ministry for the Environment",
   "type": "Group Layer",
   "description": "",
   "geometryType": null,
   "copyrightText": "",
   "parentLayer": null,
   "subLayers": [
    {
     "id": 8,
     "name": "MFE - NES Drinking Water Source"
    },
    {
     "id": 9,
     "name": "MFE - NES Drinking Water Treatment Plants"
    }
   ],
   "minScale": 125000,
   "maxScale": 0,
   "defaultVisibility": false,
   "extent": {
    "xmin": 1174509.0129000004,
    "ymin": 4794598.1663,
    "xmax": 2082464.9353999998,
    "ymax": 6190164.1198,
    "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
    }
   },
   "hasAttachments": false,
   "htmlPopupType": "esriServerHTMLPopupTypeNone",
   "displayField": "",
   "typeIdField": null,
   "subtypeFieldName": null,
   "subtypeField": null,
   "defaultSubtypeCode": null,
   "fields": null,
   "geometryField": {},
   "indexes": [],
   "subtypes": [],
   "relationships": [],
   "canModifyLayer": false,
   "canScaleSymbols": false,
   "hasLabels": false,
   "capabilities": "Map,Query",
   "supportsStatistics": false,
   "supportsExceedsLimitStatistics": false,
   "supportsAdvancedQueries": false,
   "supportedQueryFormats": "JSON, geoJSON, PBF",
   "isDataVersioned": false,
   "ownershipBasedAccessControlForFeatures": {"allowOthersToQuery": true},
   "useStandardizedQueries": true,
   "advancedQueryCapabilities": {
    "useStandardizedQueries": true,
    "supportsStatistics": false,
    "supportsPercentileStatistics": false,
    "supportsHavingClause": false,
    "supportsOrderBy": false,
    "supportsDistinct": false,
    "supportsCountDistinct": false,
    "supportsAdvancedQueryRelated": true,
    "supportsQueryRelatedPagination": true,
    "supportsPagination": false,
    "supportsLod": false,
    "supportsQueryWithLodSR": false,
    "supportsTrueCurve": true,
    "supportsQueryWithDatumTransformation": true,
    "supportsReturningQueryExtent": true,
    "supportsQueryWithDistance": true,
    "supportsSqlExpression": false,
    "supportsTimeRelation": true,
    "supportsSqlFormat": false,
    "supportsQueryAnalytic": false,
    "supportsCurrentUserQueries": true
   },
   "supportsDatumTransformation": true,
   "dateFieldsTimeReference": {
    "timeZone": "New Zealand Standard Time",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "datesInUnknownTimezone": false,
   "hasMetadata": true,
   "isDataArchived": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsCoordinatesQuantization": true,
   "supportsDynamicLegends": false
  },
  {
   "currentVersion": 11.3,
   "cimVersion": "3.3.0",
   "id": 8,
   "name": "MFE - NES Drinking Water Source",
   "type": "Feature Layer",
   "description": "Drinking water source abstraction points obtained from the Ministry of Health's WINZ database",
   "geometryType": "esriGeometryPoint",
   "sourceSpatialReference": {
    "wkid": 2193,
    "latestWkid": 2193,
    "xyTolerance": 0.001,
    "zTolerance": 0.001,
    "mTolerance": 0.001,
    "falseX": -4020900,
    "falseY": 1900,
    "xyUnits": 10000,
    "falseZ": 0,
    "zUnits": 1,
    "falseM": 0,
    "mUnits": 1
   },
   "copyrightText": "Ministry for the Environment; Ministry of Health",
   "parentLayer": {
    "id": 7,
    "name": "Ministry for the Environment"
   },
   "subLayers": [],
   "minScale": 125000,
   "maxScale": 0,
   "referenceScale": 0.0,
   "drawingInfo": {
    "renderer": {
     "type": "simple",
     "symbol": {
      "type": "esriPMS",
      "url": "673065e5122ec8932d261598d3630204",
      "imageData": "iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABCElEQVQYlWNhIAGwYIikzWRleMknwfBR4jnDAcc/uBX7rshlfMnY/P/ff34m/lc/GPxWtv4zut7G0NDwD1Wxz4poZmam5oZ0KzYjLXGG24/ec7TMOl717rwm5z8GhmpUxUwMdenBei+tDaXVQFw9VVGGmjRLzuKe/cUMDvObGQ4k/kAo/s+gqqcq+hTZVapyggx///1nZ+DnEGVgYHiM7OYb+04/eq2mICQDE7h06/VfJibGr/8Mbzxl2IjiQcbaVbtvzWdnZTnubC6nff3+u2/9S85w/Pv3vxrTg5vD1zL4LP+3eOvV9sVbr/IyMDC8Y2BkaGXYHDENe9BtiVzPwMAAwkRGCh4AADzOW+rFt0ABAAAAAElFTkSuQmCC",
      "contentType": "image/png",
      "width": 8,
      "height": 8,
      "angle": 0,
      "xoffset": 0,
      "yoffset": 0
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": [
     {
      "labelExpression": "[soSourceNa]",
      "labelPlacement": "esriServerPointLabelPlacementAboveRight",
      "deconflictionStrategy": "dynamic",
      "stackLabel": true,
      "stackAlignment": "dynamic",
      "removeDuplicates": "none",
      "stackRowLength": 24,
      "useCodedValues": true,
      "maxScale": 0,
      "minScale": 20000,
      "name": "Default",
      "priority": 5,
      "symbol": {
       "type": "esriTS",
       "color": [
        0,
        77,
        168,
        255
       ],
       "backgroundColor": null,
       "borderLineColor": null,
       "borderLineSize": null,
       "verticalAlignment": "bottom",
       "horizontalAlignment": "center",
       "rightToLeft": false,
       "angle": 0,
       "xoffset": 0,
       "yoffset": 0,
       "kerning": true,
       "haloColor": [
        255,
        255,
        255,
        255
       ],
       "haloSize": 1,
       "font": {
        "family": "Arial",
        "size": 9,
        "style": "normal",
        "weight": "bold",
        "decoration": "none"
       }
      }
     }
    ]
   },
   "defaultVisibility": false,
   "extent": {
    "xmin": 1174509.0129000004,
    "ymin": 4794598.1663,
    "xmax": 2082464.9353999998,
    "ymax": 6190164.1198,
    "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
    }
   },
   "hasAttachments": false,
   "htmlPopupType": "esriServerHTMLPopupTypeNone",
   "displayField": "soSourceName",
   "typeIdField": null,
   "subtypeFieldName": null,
   "subtypeField": null,
   "defaultSubtypeCode": null,
   "fields": [
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "OBJECTID",
     "domain": null
    },
    {
     "name": "soSourceCode",
     "type": "esriFieldTypeString",
     "alias": "soSourceCode",
     "length": 254,
     "domain": null
    },
    {
     "name": "soSourceName",
     "type": "esriFieldTypeString",
     "alias": "soSourceName",
     "length": 254,
     "domain": null
    },
    {
     "name": "soPlantCod",
     "type": "esriFieldTypeString",
     "alias": "soPlantCod",
     "length": 254,
     "domain": null
    },
    {
     "name": "soEast",
     "type": "esriFieldTypeDouble",
     "alias": "soEast",
     "domain": null
    },
    {
     "name": "soNorth",
     "type": "esriFieldTypeDouble",
     "alias": "soNorth",
     "domain": null
    },
    {
     "name": "PlantPop",
     "type": "esriFieldTypeDouble",
     "alias": "PlantPop",
     "domain": null
    },
    {
     "name": "WZSourceType",
     "type": "esriFieldTypeString",
     "alias": "WZSourceType",
     "length": 254,
     "domain": null
    },
    {
     "name": "GenSourceType",
     "type": "esriFieldTypeString",
     "alias": "GenSourceType",
     "length": 254,
     "domain": null
    },
    {
     "name": "WZSecureGW",
     "type": "esriFieldTypeString",
     "alias": "WZSecureGW",
     "length": 254,
     "domain": null
    },
    {
     "name": "PlantHasAllSecure",
     "type": "esriFieldTypeString",
     "alias": "PlantHasAllSecure",
     "length": 254,
     "domain": null
    },
    {
     "name": "Shape",
     "type": "esriFieldTypeGeometry",
     "alias": "Shape",
     "domain": null
    },
    {
     "name": "NZMGX",
     "type": "esriFieldTypeDouble",
     "alias": "NZMGX",
     "domain": null
    },
    {
     "name": "NZMGY",
     "type": "esriFieldTypeDouble",
     "alias": "NZMGY",
     "domain": null
    },
    {
     "name": "NZMS260",
     "type": "esriFieldTypeString",
     "alias": "NZMS260",
     "length": 16,
     "domain": null
    },
    {
     "name": "NZTMX",
     "type": "esriFieldTypeDouble",
     "alias": "NZTMX",
     "domain": null
    },
    {
     "name": "NZTMY",
     "type": "esriFieldTypeDouble",
     "alias": "NZTMY",
     "domain": null
    },
    {
     "name": "NZTOPO50",
     "type": "esriFieldTypeString",
     "alias": "NZTOPO50",
     "length": 16,
     "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
    }
   ],
   "geometryField": {
    "name": "Shape",
    "type": "esriFieldTypeGeometry",
    "alias": "Shape"
   },
   "indexes": [
    {
     "name": "R163_pk",
     "fields": "OBJECTID",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    },
    {
     "name": "S157_idx",
     "fields": "Shape",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    }
   ],
   "subtypes": [],
   "relationships": [],
   "canModifyLayer": true,
   "canScaleSymbols": false,
   "hasLabels": true,
   "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": {
    "timeZone": "New Zealand Standard Time",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "datesInUnknownTimezone": false,
   "hasMetadata": true,
   "isDataArchived": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsCoordinatesQuantization": true,
   "supportsDynamicLegends": true
  },
  {
   "currentVersion": 11.3,
   "cimVersion": "3.3.0",
   "id": 9,
   "name": "MFE - NES Drinking Water Treatment Plants",
   "type": "Feature Layer",
   "description": "Drinking water treatment plants obtained from the Ministry of Health's WINZ database",
   "geometryType": "esriGeometryPoint",
   "sourceSpatialReference": {
    "wkid": 2193,
    "latestWkid": 2193,
    "xyTolerance": 0.001,
    "zTolerance": 0.001,
    "mTolerance": 0.001,
    "falseX": -4020900,
    "falseY": 1900,
    "xyUnits": 10000,
    "falseZ": 0,
    "zUnits": 1,
    "falseM": 0,
    "mUnits": 1
   },
   "copyrightText": "Ministry for the Environment; Ministry of Health",
   "parentLayer": {
    "id": 7,
    "name": "Ministry for the Environment"
   },
   "subLayers": [],
   "minScale": 125000,
   "maxScale": 0,
   "referenceScale": 0.0,
   "drawingInfo": {
    "renderer": {
     "type": "simple",
     "symbol": {
      "type": "esriPMS",
      "url": "1502742337c0be2e7368c87f9f1d784c",
      "imageData": "iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAa0lEQVQokWNhIBGwwBh7X/5XZvrLwIpL4S8mhsfuEoxf4RpKew5cVlcQ4sSm+NX7bww1aRaeDAwMO+AaFKX5f6cG62HVMHvtJUwnkeyH4aDh8p3X7MihgQzuPvmAqeHWFHeOW3hMdmwn00kAIUEeKy0eqa8AAAAASUVORK5CYII=",
      "contentType": "image/png",
      "width": 9,
      "height": 9,
      "angle": 0,
      "xoffset": 0,
      "yoffset": 0
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": [
     {
      "labelExpression": "[plPlantNam]",
      "labelPlacement": "esriServerPointLabelPlacementCenterRight",
      "deconflictionStrategy": "dynamic",
      "stackLabel": true,
      "stackAlignment": "dynamic",
      "removeDuplicates": "none",
      "stackRowLength": 24,
      "useCodedValues": true,
      "maxScale": 0,
      "minScale": 20000,
      "name": "Default",
      "priority": 4,
      "symbol": {
       "type": "esriTS",
       "color": [
        0,
        77,
        168,
        255
       ],
       "backgroundColor": null,
       "borderLineColor": null,
       "borderLineSize": null,
       "verticalAlignment": "bottom",
       "horizontalAlignment": "center",
       "rightToLeft": false,
       "angle": 0,
       "xoffset": 0,
       "yoffset": 0,
       "kerning": true,
       "haloColor": [
        255,
        255,
        255,
        255
       ],
       "haloSize": 1,
       "font": {
        "family": "Arial",
        "size": 9,
        "style": "normal",
        "weight": "bold",
        "decoration": "none"
       }
      }
     }
    ]
   },
   "defaultVisibility": false,
   "extent": {
    "xmin": 1175404.221,
    "ymin": 4794598.1663,
    "xmax": 2082464.9353999998,
    "ymax": 6190164.1198,
    "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
    }
   },
   "hasAttachments": false,
   "htmlPopupType": "esriServerHTMLPopupTypeNone",
   "displayField": "plPlantName",
   "typeIdField": null,
   "subtypeFieldName": null,
   "subtypeField": null,
   "defaultSubtypeCode": null,
   "fields": [
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "OBJECTID",
     "domain": null
    },
    {
     "name": "plPlantCode",
     "type": "esriFieldTypeString",
     "alias": "plPlantCode",
     "length": 254,
     "domain": null
    },
    {
     "name": "plPlantName",
     "type": "esriFieldTypeString",
     "alias": "plPlantName",
     "length": 254,
     "domain": null
    },
    {
     "name": "OwnerType",
     "type": "esriFieldTypeString",
     "alias": "OwnerType",
     "length": 254,
     "domain": null
    },
    {
     "name": "Owner",
     "type": "esriFieldTypeString",
     "alias": "Owner",
     "length": 254,
     "domain": null
    },
    {
     "name": "plEast",
     "type": "esriFieldTypeDouble",
     "alias": "plEast",
     "domain": null
    },
    {
     "name": "plNorth",
     "type": "esriFieldTypeDouble",
     "alias": "plNorth",
     "domain": null
    },
    {
     "name": "plPopulation",
     "type": "esriFieldTypeDouble",
     "alias": "plPopulation",
     "domain": null
    },
    {
     "name": "PopClass",
     "type": "esriFieldTypeDouble",
     "alias": "PopClass",
     "domain": null
    },
    {
     "name": "plP2List",
     "type": "esriFieldTypeString",
     "alias": "plP2List",
     "length": 254,
     "domain": null
    },
    {
     "name": "EColiTransgression2005",
     "type": "esriFieldTypeString",
     "alias": "EColiTransgression2005",
     "length": 254,
     "domain": null
    },
    {
     "name": "ProtozoaComply2005",
     "type": "esriFieldTypeString",
     "alias": "ProtozoaComply2005",
     "length": 254,
     "domain": null
    },
    {
     "name": "TrtmtChlorine",
     "type": "esriFieldTypeSmallInteger",
     "alias": "TrtmtChlorine",
     "domain": null
    },
    {
     "name": "TrtmtOzone",
     "type": "esriFieldTypeSmallInteger",
     "alias": "TrtmtOzone",
     "domain": null
    },
    {
     "name": "TrtmtUV",
     "type": "esriFieldTypeSmallInteger",
     "alias": "TrtmtUV",
     "domain": null
    },
    {
     "name": "TrtmtCoagFilter",
     "type": "esriFieldTypeSmallInteger",
     "alias": "TrtmtCoagFilter",
     "domain": null
    },
    {
     "name": "TrtmtMembraneCartridge",
     "type": "esriFieldTypeSmallInteger",
     "alias": "TrtmtMembraneCartridge",
     "domain": null
    },
    {
     "name": "TrtmtSlowSlowSandDE",
     "type": "esriFieldTypeSmallInteger",
     "alias": "TrtmtSlowSlowSandDE",
     "domain": null
    },
    {
     "name": "Shape",
     "type": "esriFieldTypeGeometry",
     "alias": "Shape",
     "domain": null
    },
    {
     "name": "NZMGX",
     "type": "esriFieldTypeDouble",
     "alias": "NZMGX",
     "domain": null
    },
    {
     "name": "NZMGY",
     "type": "esriFieldTypeDouble",
     "alias": "NZMGY",
     "domain": null
    },
    {
     "name": "NZMS260",
     "type": "esriFieldTypeString",
     "alias": "NZMS260",
     "length": 16,
     "domain": null
    },
    {
     "name": "NZTMX",
     "type": "esriFieldTypeDouble",
     "alias": "NZTMX",
     "domain": null
    },
    {
     "name": "NZTMY",
     "type": "esriFieldTypeDouble",
     "alias": "NZTMY",
     "domain": null
    },
    {
     "name": "NZTOPO50",
     "type": "esriFieldTypeString",
     "alias": "NZTOPO50",
     "length": 16,
     "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
    }
   ],
   "geometryField": {
    "name": "Shape",
    "type": "esriFieldTypeGeometry",
    "alias": "Shape"
   },
   "indexes": [
    {
     "name": "R164_pk",
     "fields": "OBJECTID",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    },
    {
     "name": "S158_idx",
     "fields": "Shape",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    }
   ],
   "subtypes": [],
   "relationships": [],
   "canModifyLayer": true,
   "canScaleSymbols": false,
   "hasLabels": true,
   "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": {
    "timeZone": "New Zealand Standard Time",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "datesInUnknownTimezone": false,
   "hasMetadata": true,
   "isDataArchived": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsCoordinatesQuantization": true,
   "supportsDynamicLegends": true
  },
  {
   "currentVersion": 11.3,
   "cimVersion": "3.3.0",
   "id": 10,
   "name": "Water Quality -  Lakes",
   "type": "Feature Layer",
   "description": "Sites where surface water lakes quality samples have been taken and tested.  The results of chemical and biological tests are accessible from the location listed inthe LINK field.",
   "geometryType": "esriGeometryPoint",
   "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
   },
   "copyrightText": "Environment Canterbury",
   "parentLayer": null,
   "subLayers": [],
   "minScale": 125000,
   "maxScale": 0,
   "referenceScale": 0.0,
   "drawingInfo": {
    "renderer": {
     "type": "uniqueValue",
     "field1": "Grade2010",
     "uniqueValueGroups": [
      {
       "heading": "Grade 2010",
       "classes": [
        {
         "label": "Microtrophic",
         "description": "Microtrophic",
         "symbol": {
          "type": "esriSMS",
          "style": "esriSMSCircle",
          "color": [
           0,
           197,
           255,
           255
          ],
          "size": 7,
          "angle": 0,
          "xoffset": 0,
          "yoffset": 0,
          "outline": {
           "color": [
            0,
            0,
            0,
            255
           ],
           "width": 1
          }
         },
         "values": [
          [
           "Microtrophic"
          ]
         ]
        },
        {
         "label": "Oligotrophic",
         "description": "Oligotrophic",
         "symbol": {
          "type": "esriSMS",
          "style": "esriSMSCircle",
          "color": [
           137,
           205,
           102,
           255
          ],
          "size": 7,
          "angle": 0,
          "xoffset": 0,
          "yoffset": 0,
          "outline": {
           "color": [
            0,
            0,
            0,
            255
           ],
           "width": 1
          }
         },
         "values": [
          [
           "Oligotrophic"
          ]
         ]
        },
        {
         "label": "Mesotrophic",
         "description": "Mesotrophic",
         "symbol": {
          "type": "esriSMS",
          "style": "esriSMSCircle",
          "color": [
           255,
           255,
           0,
           255
          ],
          "size": 7,
          "angle": 0,
          "xoffset": 0,
          "yoffset": 0,
          "outline": {
           "color": [
            0,
            0,
            0,
            255
           ],
           "width": 1
          }
         },
         "values": [
          [
           "Mesotrophic"
          ]
         ]
        },
        {
         "label": "Eutrophic",
         "description": "Eutrophic",
         "symbol": {
          "type": "esriSMS",
          "style": "esriSMSCircle",
          "color": [
           255,
           0,
           0,
           255
          ],
          "size": 7,
          "angle": 0,
          "xoffset": 0,
          "yoffset": 0,
          "outline": {
           "color": [
            0,
            0,
            0,
            255
           ],
           "width": 1
          }
         },
         "values": [
          [
           "Eutrophic"
          ]
         ]
        },
        {
         "label": "Supertrophic",
         "description": "Supertrophic",
         "symbol": {
          "type": "esriSMS",
          "style": "esriSMSCircle",
          "color": [
           156,
           156,
           156,
           255
          ],
          "size": 7,
          "angle": 0,
          "xoffset": 0,
          "yoffset": 0,
          "outline": {
           "color": [
            0,
            0,
            0,
            255
           ],
           "width": 1
          }
         },
         "values": [
          [
           "Supertrophic"
          ]
         ]
        },
        {
         "label": "Hypertrophic",
         "description": "Hypertrophic",
         "symbol": {
          "type": "esriSMS",
          "style": "esriSMSCircle",
          "color": [
           137,
           68,
           68,
           255
          ],
          "size": 7,
          "angle": 0,
          "xoffset": 0,
          "yoffset": 0,
          "outline": {
           "color": [
            0,
            0,
            0,
            255
           ],
           "width": 1
          }
         },
         "values": [
          [
           "Hypertrophic"
          ]
         ]
        }
       ]
      }
     ],
     "uniqueValueInfos": [
      {
       "symbol": {
        "type": "esriSMS",
        "style": "esriSMSCircle",
        "color": [
         0,
         197,
         255,
         255
        ],
        "size": 7,
        "angle": 0,
        "xoffset": 0,
        "yoffset": 0,
        "outline": {
         "color": [
          0,
          0,
          0,
          255
         ],
         "width": 1
        }
       },
       "value": "Microtrophic",
       "label": "Microtrophic"
      },
      {
       "symbol": {
        "type": "esriSMS",
        "style": "esriSMSCircle",
        "color": [
         137,
         205,
         102,
         255
        ],
        "size": 7,
        "angle": 0,
        "xoffset": 0,
        "yoffset": 0,
        "outline": {
         "color": [
          0,
          0,
          0,
          255
         ],
         "width": 1
        }
       },
       "value": "Oligotrophic",
       "label": "Oligotrophic"
      },
      {
       "symbol": {
        "type": "esriSMS",
        "style": "esriSMSCircle",
        "color": [
         255,
         255,
         0,
         255
        ],
        "size": 7,
        "angle": 0,
        "xoffset": 0,
        "yoffset": 0,
        "outline": {
         "color": [
          0,
          0,
          0,
          255
         ],
         "width": 1
        }
       },
       "value": "Mesotrophic",
       "label": "Mesotrophic"
      },
      {
       "symbol": {
        "type": "esriSMS",
        "style": "esriSMSCircle",
        "color": [
         255,
         0,
         0,
         255
        ],
        "size": 7,
        "angle": 0,
        "xoffset": 0,
        "yoffset": 0,
        "outline": {
         "color": [
          0,
          0,
          0,
          255
         ],
         "width": 1
        }
       },
       "value": "Eutrophic",
       "label": "Eutrophic"
      },
      {
       "symbol": {
        "type": "esriSMS",
        "style": "esriSMSCircle",
        "color": [
         156,
         156,
         156,
         255
        ],
        "size": 7,
        "angle": 0,
        "xoffset": 0,
        "yoffset": 0,
        "outline": {
         "color": [
          0,
          0,
          0,
          255
         ],
         "width": 1
        }
       },
       "value": "Supertrophic",
       "label": "Supertrophic"
      },
      {
       "symbol": {
        "type": "esriSMS",
        "style": "esriSMSCircle",
        "color": [
         137,
         68,
         68,
         255
        ],
        "size": 7,
        "angle": 0,
        "xoffset": 0,
        "yoffset": 0,
        "outline": {
         "color": [
          0,
          0,
          0,
          255
         ],
         "width": 1
        }
       },
       "value": "Hypertrophic",
       "label": "Hypertrophic"
      }
     ],
     "fieldDelimiter": ",",
     "authoringInfo": {
      "colorRamp": {
       "type": "multipart",
       "colorRamps": [
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          219,
          149,
          151,
          255
         ],
         "toColor": [
          219,
          149,
          151,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          250,
          76,
          52,
          255
         ],
         "toColor": [
          250,
          76,
          52,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          209,
          67,
          98,
          255
         ],
         "toColor": [
          209,
          67,
          98,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          181,
          88,
          65,
          255
         ],
         "toColor": [
          181,
          88,
          65,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          184,
          53,
          39,
          255
         ],
         "toColor": [
          184,
          53,
          39,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          247,
          123,
          116,
          255
         ],
         "toColor": [
          247,
          123,
          116,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          186,
          93,
          107,
          255
         ],
         "toColor": [
          186,
          93,
          107,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          235,
          52,
          79,
          255
         ],
         "toColor": [
          235,
          52,
          79,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          245,
          195,
          191,
          255
         ],
         "toColor": [
          245,
          195,
          191,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          247,
          119,
          144,
          255
         ],
         "toColor": [
          247,
          119,
          144,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          181,
          143,
          146,
          255
         ],
         "toColor": [
          181,
          143,
          146,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          179,
          41,
          55,
          255
         ],
         "toColor": [
          179,
          41,
          55,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          247,
          103,
          84,
          255
         ],
         "toColor": [
          247,
          103,
          84,
          255
         ]
        }
       ]
      }
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": [
     {
      "labelExpression": "[SITE_NAME]",
      "labelPlacement": "esriServerPointLabelPlacementAboveRight",
      "deconflictionStrategy": "dynamic",
      "stackLabel": true,
      "stackAlignment": "dynamic",
      "removeDuplicates": "none",
      "stackRowLength": 24,
      "useCodedValues": true,
      "maxScale": 0,
      "minScale": 0,
      "name": "Default",
      "priority": 1,
      "symbol": {
       "type": "esriTS",
       "color": [
        0,
        0,
        0,
        255
       ],
       "backgroundColor": null,
       "borderLineColor": null,
       "borderLineSize": null,
       "verticalAlignment": "bottom",
       "horizontalAlignment": "center",
       "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": "normal",
        "decoration": "none"
       }
      }
     }
    ]
   },
   "defaultVisibility": true,
   "extent": {
    "xmin": 1352540.2999,
    "ymin": 5048432.5746,
    "xmax": 1648032.7218000004,
    "ymax": 5304769.2333,
    "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
    }
   },
   "hasAttachments": false,
   "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
   "displayField": "SITE_NAME",
   "typeIdField": null,
   "subtypeFieldName": null,
   "subtypeField": null,
   "defaultSubtypeCode": null,
   "fields": [
    {
     "name": "SHAPE",
     "type": "esriFieldTypeGeometry",
     "alias": "SHAPE",
     "domain": null
    },
    {
     "name": "SITE_ID",
     "type": "esriFieldTypeString",
     "alias": "SITE_ID",
     "length": 12,
     "domain": null
    },
    {
     "name": "SITE_NAME",
     "type": "esriFieldTypeString",
     "alias": "SITE_NAME",
     "length": 150,
     "domain": null
    },
    {
     "name": "SOURCE",
     "type": "esriFieldTypeString",
     "alias": "SOURCE",
     "length": 50,
     "domain": null
    },
    {
     "name": "SITE_TYPE",
     "type": "esriFieldTypeString",
     "alias": "SITE_TYPE",
     "length": 25,
     "domain": null
    },
    {
     "name": "SPRING_NO",
     "type": "esriFieldTypeString",
     "alias": "SPRING_NO",
     "length": 9,
     "domain": null
    },
    {
     "name": "GAUGING_SITE_INDEX",
     "type": "esriFieldTypeInteger",
     "alias": "GAUGING_SITE_INDEX",
     "domain": null
    },
    {
     "name": "ALTITUDE",
     "type": "esriFieldTypeDouble",
     "alias": "ALTITUDE",
     "domain": null
    },
    {
     "name": "Grade20042006",
     "type": "esriFieldTypeString",
     "alias": "Grade20042006",
     "length": 255,
     "domain": null
    },
    {
     "name": "Grade2010",
     "type": "esriFieldTypeString",
     "alias": "Grade2010",
     "length": 255,
     "domain": null
    },
    {
     "name": "Monitoring",
     "type": "esriFieldTypeDate",
     "alias": "Monitoring",
     "length": 8,
     "domain": null
    },
    {
     "name": "TLI20042006",
     "type": "esriFieldTypeDouble",
     "alias": "TLI20042006",
     "domain": null
    },
    {
     "name": "TLI2010",
     "type": "esriFieldTypeDouble",
     "alias": "TLI2010",
     "domain": null
    },
    {
     "name": "Link",
     "type": "esriFieldTypeString",
     "alias": "Link",
     "length": 75,
     "domain": null
    },
    {
     "name": "QAR_CODE",
     "type": "esriFieldTypeSmallInteger",
     "alias": "QAR_CODE",
     "domain": null
    },
    {
     "name": "NZMGX",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGX",
     "domain": null
    },
    {
     "name": "NZMGY",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGY",
     "domain": null
    },
    {
     "name": "NZMS260",
     "type": "esriFieldTypeString",
     "alias": "NZMS260",
     "length": 16,
     "domain": null
    },
    {
     "name": "NZTMX",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMX",
     "domain": null
    },
    {
     "name": "NZTMY",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMY",
     "domain": null
    },
    {
     "name": "NZTOPO50",
     "type": "esriFieldTypeString",
     "alias": "NZTOPO50",
     "length": 16,
     "domain": null
    },
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "OBJECTID",
     "domain": null
    }
   ],
   "geometryField": {
    "name": "SHAPE",
    "type": "esriFieldTypeGeometry",
    "alias": "SHAPE"
   },
   "indexes": null,
   "subtypes": [],
   "relationships": [],
   "canModifyLayer": true,
   "canScaleSymbols": false,
   "hasLabels": true,
   "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": {
    "timeZone": "New Zealand Standard Time",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "datesInUnknownTimezone": false,
   "hasMetadata": true,
   "isDataArchived": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsCoordinatesQuantization": true,
   "supportsDynamicLegends": true
  },
  {
   "currentVersion": 11.3,
   "cimVersion": "3.3.0",
   "id": 12,
   "name": "River Flow and Stage Monitoring - Live",
   "type": "Feature Layer",
   "description": "",
   "geometryType": "esriGeometryPoint",
   "sourceSpatialReference": {
    "wkid": 2193,
    "latestWkid": 2193,
    "xyTolerance": 0.001,
    "zTolerance": 0.001,
    "mTolerance": 0.001,
    "falseX": -4020900,
    "falseY": 1900,
    "xyUnits": 10000,
    "falseZ": 0,
    "zUnits": 1,
    "falseM": 0,
    "mUnits": 1
   },
   "copyrightText": "",
   "parentLayer": null,
   "subLayers": [],
   "minScale": 0,
   "maxScale": 0,
   "referenceScale": 0.0,
   "drawingInfo": {
    "renderer": {
     "type": "simple",
     "symbol": {
      "type": "esriSMS",
      "style": "esriSMSCircle",
      "color": [
       137,
       74,
       45,
       255
      ],
      "size": 4,
      "angle": 0,
      "xoffset": 0,
      "yoffset": 0,
      "outline": {
       "color": [
        0,
        0,
        0,
        255
       ],
       "width": 0.7
      }
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": null
   },
   "defaultVisibility": false,
   "extent": {
    "xmin": 1339755.1253000004,
    "ymin": 5020366.9323,
    "xmax": 2458915.1257999996,
    "ymax": 5337597.5726,
    "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
    }
   },
   "hasAttachments": false,
   "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
   "displayField": "SITENAME",
   "typeIdField": null,
   "subtypeFieldName": null,
   "subtypeField": null,
   "defaultSubtypeCode": null,
   "fields": [
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "OBJECTID",
     "domain": null
    },
    {
     "name": "RIVER",
     "type": "esriFieldTypeString",
     "alias": "RIVER",
     "length": 50,
     "domain": null
    },
    {
     "name": "SITENAME",
     "type": "esriFieldTypeString",
     "alias": "SITENAME",
     "length": 64,
     "domain": null
    },
    {
     "name": "SITE",
     "type": "esriFieldTypeString",
     "alias": "SITE",
     "length": 118,
     "domain": null
    },
    {
     "name": "SITENUMBER",
     "type": "esriFieldTypeInteger",
     "alias": "SITENUMBER",
     "domain": null
    },
    {
     "name": "TIM_CHCH",
     "type": "esriFieldTypeString",
     "alias": "TIM_CHCH",
     "length": 1,
     "domain": null
    },
    {
     "name": "RECORDER_SITE",
     "type": "esriFieldTypeString",
     "alias": "RECORDER_SITE",
     "length": 1,
     "domain": null
    },
    {
     "name": "TELEMETERED",
     "type": "esriFieldTypeString",
     "alias": "TELEMETERED",
     "length": 1,
     "domain": null
    },
    {
     "name": "COMPLIANCE_MONITORING",
     "type": "esriFieldTypeString",
     "alias": "COMPLIANCE_MONITORING",
     "length": 1,
     "domain": null
    },
    {
     "name": "FLOOD_CONTROL",
     "type": "esriFieldTypeString",
     "alias": "FLOOD_CONTROL",
     "length": 1,
     "domain": null
    },
    {
     "name": "MINIMUM_FLOW_SITE",
     "type": "esriFieldTypeString",
     "alias": "MINIMUM_FLOW_SITE",
     "length": 1,
     "domain": null
    },
    {
     "name": "MINIMUM_FLOW",
     "type": "esriFieldTypeSingle",
     "alias": "MINIMUM_FLOW",
     "domain": null
    },
    {
     "name": "NO_OF_GAUGINGS",
     "type": "esriFieldTypeInteger",
     "alias": "NO_OF_GAUGINGS",
     "domain": null
    },
    {
     "name": "FIRST_GAUGING",
     "type": "esriFieldTypeDate",
     "alias": "FIRST_GAUGING",
     "length": 8,
     "domain": null
    },
    {
     "name": "LAST_GAUGING",
     "type": "esriFieldTypeDate",
     "alias": "LAST_GAUGING",
     "length": 8,
     "domain": null
    },
    {
     "name": "LOWEST_FLOW",
     "type": "esriFieldTypeSingle",
     "alias": "LOWEST_FLOW",
     "domain": null
    },
    {
     "name": "HIGHEST_FLOW",
     "type": "esriFieldTypeSingle",
     "alias": "HIGHEST_FLOW",
     "domain": null
    },
    {
     "name": "ALTITUDE",
     "type": "esriFieldTypeSmallInteger",
     "alias": "ALTITUDE",
     "domain": null
    },
    {
     "name": "NZMGX",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGX",
     "domain": null
    },
    {
     "name": "NZMGY",
     "type": "esriFieldTypeInteger",
     "alias": "NZMGY",
     "domain": null
    },
    {
     "name": "NZMS260",
     "type": "esriFieldTypeString",
     "alias": "NZMS260",
     "length": 16,
     "domain": null
    },
    {
     "name": "NZTMX",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMX",
     "domain": null
    },
    {
     "name": "NZTMY",
     "type": "esriFieldTypeInteger",
     "alias": "NZTMY",
     "domain": null
    },
    {
     "name": "NZTOPO50",
     "type": "esriFieldTypeString",
     "alias": "NZTOPO50",
     "length": 16,
     "domain": null
    },
    {
     "name": "Flow_or_Stage",
     "type": "esriFieldTypeString",
     "alias": "Flow_or_Stage",
     "length": 1,
     "domain": null
    },
    {
     "name": "Website_table_order",
     "type": "esriFieldTypeInteger",
     "alias": "Website_table_order",
     "domain": null
    },
    {
     "name": "North_or_South",
     "type": "esriFieldTypeString",
     "alias": "North_or_South",
     "length": 1,
     "domain": null
    },
    {
     "name": "Supress_table",
     "type": "esriFieldTypeString",
     "alias": "Supress_table",
     "length": 10,
     "domain": null
    },
    {
     "name": "Flow_or_stage_hydrotel",
     "type": "esriFieldTypeString",
     "alias": "Flow_or_stage_hydrotel",
     "length": 1,
     "domain": null
    },
    {
     "name": "Comment_for_web",
     "type": "esriFieldTypeString",
     "alias": "Comment_for_web",
     "length": 100,
     "domain": null
    },
    {
     "name": "Water_temperature_point",
     "type": "esriFieldTypeInteger",
     "alias": "Water_temperature_point",
     "domain": null
    },
    {
     "name": "Last_sample",
     "type": "esriFieldTypeDate",
     "alias": "Last_sample",
     "length": 8,
     "domain": null
    },
    {
     "name": "Current_stage_height_m",
     "type": "esriFieldTypeDouble",
     "alias": "Current_stage_height_m",
     "domain": null
    },
    {
     "name": "Current_flow_m3s",
     "type": "esriFieldTypeDouble",
     "alias": "Current_flow_m3s",
     "domain": null
    },
    {
     "name": "Change_last_hour_mm",
     "type": "esriFieldTypeDouble",
     "alias": "Change_last_hour_mm",
     "domain": null
    },
    {
     "name": "Peak_stage_7_day",
     "type": "esriFieldTypeDouble",
     "alias": "Peak_stage_7_day",
     "domain": null
    },
    {
     "name": "Peak_flow_7_day",
     "type": "esriFieldTypeDouble",
     "alias": "Peak_flow_7_day",
     "domain": null
    },
    {
     "name": "Peak_stage_7_day_date",
     "type": "esriFieldTypeDate",
     "alias": "Peak_stage_7_day_date",
     "length": 8,
     "domain": null
    },
    {
     "name": "Water_temperature",
     "type": "esriFieldTypeDouble",
     "alias": "Water_temperature",
     "domain": null
    },
    {
     "name": "Mean_annual_flood_stage",
     "type": "esriFieldTypeDouble",
     "alias": "Mean_annual_flood_stage",
     "domain": null
    },
    {
     "name": "ARI_stage_5_year",
     "type": "esriFieldTypeDouble",
     "alias": "ARI_stage_5_year",
     "domain": null
    },
    {
     "name": "ARI_stage_10_year",
     "type": "esriFieldTypeDouble",
     "alias": "ARI_stage_10_year",
     "domain": null
    },
    {
     "name": "ARI_stage_20_year",
     "type": "esriFieldTypeDouble",
     "alias": "ARI_stage_20_year",
     "domain": null
    },
    {
     "name": "ARI_stage_50_year",
     "type": "esriFieldTypeDouble",
     "alias": "ARI_stage_50_year",
     "domain": null
    },
    {
     "name": "Mean_annual_flood_flow",
     "type": "esriFieldTypeDouble",
     "alias": "Mean_annual_flood_flow",
     "domain": null
    },
    {
     "name": "ARI_flow_5_year",
     "type": "esriFieldTypeDouble",
     "alias": "ARI_flow_5_year",
     "domain": null
    },
    {
     "name": "ARI_flow_10_year",
     "type": "esriFieldTypeDouble",
     "alias": "ARI_flow_10_year",
     "domain": null
    },
    {
     "name": "ARI_flow_20_year",
     "type": "esriFieldTypeDouble",
     "alias": "ARI_flow_20_year",
     "domain": null
    },
    {
     "name": "ARI_flow_50_year",
     "type": "esriFieldTypeDouble",
     "alias": "ARI_flow_50_year",
     "domain": null
    },
    {
     "name": "ARI_flow_100_year",
     "type": "esriFieldTypeDouble",
     "alias": "ARI_flow_100_year",
     "domain": null
    },
    {
     "name": "ARI_flow_200_year",
     "type": "esriFieldTypeDouble",
     "alias": "ARI_flow_200_year",
     "domain": null
    },
    {
     "name": "ARI_flow_500_year",
     "type": "esriFieldTypeDouble",
     "alias": "ARI_flow_500_year",
     "domain": null
    },
    {
     "name": "ARI_flow_1000_year",
     "type": "esriFieldTypeDouble",
     "alias": "ARI_flow_1000_year",
     "domain": null
    },
    {
     "name": "Flood_frequency_distribution",
     "type": "esriFieldTypeString",
     "alias": "Flood_frequency_distribution",
     "length": 254,
     "domain": null
    },
    {
     "name": "Flood_frequency_method",
     "type": "esriFieldTypeString",
     "alias": "Flood_frequency_method",
     "length": 254,
     "domain": null
    },
    {
     "name": "Maximum_recorded_flow",
     "type": "esriFieldTypeDouble",
     "alias": "Maximum_recorded_flow",
     "domain": null
    },
    {
     "name": "Maximum_recorded_flow_date",
     "type": "esriFieldTypeString",
     "alias": "Maximum_recorded_flow_date",
     "length": 255,
     "domain": null
    },
    {
     "name": "Maximum_recorded_stage",
     "type": "esriFieldTypeDouble",
     "alias": "Maximum_recorded_stage",
     "domain": null
    },
    {
     "name": "Maximum_recorded_stage_date",
     "type": "esriFieldTypeString",
     "alias": "Maximum_recorded_stage_date",
     "length": 255,
     "domain": null
    },
    {
     "name": "Record_length_years",
     "type": "esriFieldTypeInteger",
     "alias": "Record_length_years",
     "domain": null
    },
    {
     "name": "Catchment_area",
     "type": "esriFieldTypeDouble",
     "alias": "Catchment_area",
     "domain": null
    },
    {
     "name": "Flood_freq_analysis_notes",
     "type": "esriFieldTypeString",
     "alias": "Flood_freq_analysis_notes",
     "length": 254,
     "domain": null
    },
    {
     "name": "Flood_freq_analysis_chng_note",
     "type": "esriFieldTypeString",
     "alias": "Flood_freq_analysis_chng_note",
     "length": 254,
     "domain": null
    },
    {
     "name": "Flood_frequency_source",
     "type": "esriFieldTypeString",
     "alias": "Flood_frequency_source",
     "length": 254,
     "domain": null
    },
    {
     "name": "Flood_frequency_source_link",
     "type": "esriFieldTypeString",
     "alias": "Flood_frequency_source_link",
     "length": 254,
     "domain": null
    },
    {
     "name": "Flood_freq_analysis_date",
     "type": "esriFieldTypeString",
     "alias": "Flood_freq_analysis_date",
     "length": 254,
     "domain": null
    },
    {
     "name": "Historic_flow_A",
     "type": "esriFieldTypeDouble",
     "alias": "Historic_flow_A",
     "domain": null
    },
    {
     "name": "Historic_flow_A_date",
     "type": "esriFieldTypeDate",
     "alias": "Historic_flow_A_date",
     "length": 8,
     "domain": null
    },
    {
     "name": "Historic_flow_B",
     "type": "esriFieldTypeDouble",
     "alias": "Historic_flow_B",
     "domain": null
    },
    {
     "name": "Historic_flow_B_date",
     "type": "esriFieldTypeDate",
     "alias": "Historic_flow_B_date",
     "length": 8,
     "domain": null
    },
    {
     "name": "Historic_flow_C",
     "type": "esriFieldTypeDouble",
     "alias": "Historic_flow_C",
     "domain": null
    },
    {
     "name": "Historic_flow_C_date",
     "type": "esriFieldTypeDate",
     "alias": "Historic_flow_C_date",
     "length": 8,
     "domain": null
    },
    {
     "name": "Historic_stage_A",
     "type": "esriFieldTypeDouble",
     "alias": "Historic_stage_A",
     "domain": null
    },
    {
     "name": "Historic_stage_A_date",
     "type": "esriFieldTypeDate",
     "alias": "Historic_stage_A_date",
     "length": 8,
     "domain": null
    },
    {
     "name": "Historic_stage_B",
     "type": "esriFieldTypeDouble",
     "alias": "Historic_stage_B",
     "domain": null
    },
    {
     "name": "Historic_stage_B_date",
     "type": "esriFieldTypeDate",
     "alias": "Historic_stage_B_date",
     "length": 8,
     "domain": null
    },
    {
     "name": "Historic_stage_C",
     "type": "esriFieldTypeDouble",
     "alias": "Historic_stage_C",
     "domain": null
    },
    {
     "name": "Historic_stage_C_date",
     "type": "esriFieldTypeDate",
     "alias": "Historic_stage_C_date",
     "length": 8,
     "domain": null
    },
    {
     "name": "Datum",
     "type": "esriFieldTypeString",
     "alias": "Datum",
     "length": 255,
     "domain": null
    },
    {
     "name": "SHAPE",
     "type": "esriFieldTypeGeometry",
     "alias": "SHAPE",
     "domain": null
    }
   ],
   "geometryField": {
    "name": "SHAPE",
    "type": "esriFieldTypeGeometry",
    "alias": "SHAPE"
   },
   "indexes": null,
   "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": {
    "timeZone": "New Zealand Standard Time",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "datesInUnknownTimezone": false,
   "hasMetadata": true,
   "isDataArchived": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsCoordinatesQuantization": true,
   "supportsDynamicLegends": true
  }
 ],
 "tables": []
}