{
 "currentVersion": 10.61,
 "id": 1,
 "name": "Yleiskaavahakemisto",
 "parentLayerId": -1,
 "defaultVisibility": true,
 "minScale": 0,
 "maxScale": 0,
 "type": "Feature Layer",
 "geometryType": "esriGeometryPolygon",
 "description": "",
 "copyrightText": "",
 "editFieldsInfo": null,
 "ownershipBasedAccessControlForFeatures": null,
 "syncCanReturnChanges": false,
 "relationships": [],
 "isDataVersioned": false,
 "supportsRollbackOnFailureParameter": false,
 "archivingInfo": {
  "supportsQueryWithHistoricMoment": false,
  "startArchivingMoment": -1
 },
 "supportsStatistics": true,
 "supportsAdvancedQueries": true,
 "supportsValidateSQL": true,
 "supportsCoordinatesQuantization": true,
 "supportsCalculate": true,
 "advancedQueryCapabilities": {
  "supportsPagination": true,
  "supportsTrueCurve": true,
  "supportsQueryWithDistance": true,
  "supportsReturningQueryExtent": true,
  "supportsStatistics": true,
  "supportsHavingClause": true,
  "supportsCountDistinct": true,
  "supportsOrderBy": true,
  "supportsDistinct": true,
  "supportsQueryWithResultType": true,
  "supportsReturningGeometryCentroid": true,
  "supportsSqlExpression": true
 },
 "extent": {
  "xmin": 2.44683329785E7,
  "ymin": 6823072.981199998,
  "xmax": 2.44844181921E7,
  "ymax": 6849078.543900002,
  "spatialReference": {
   "wkid": 3878,
   "latestWkid": 3878
  }
 },
 "drawingInfo": {
  "renderer": {
   "type": "simple",
   "symbol": {
    "type": "esriSFS",
    "style": "esriSFSSolid",
    "color": [
     0,
     0,
     0,
     0
    ],
    "outline": {
     "type": "esriSLS",
     "style": "esriSLSSolid",
     "color": [
      168,
      0,
      132,
      255
     ],
     "width": 2
    }
   },
   "label": "",
   "description": ""
  },
  "transparency": 0,
  "labelingInfo": null
 },
 "hasM": false,
 "hasZ": true,
 "enableZDefaults": false,
 "allowGeometryUpdates": false,
 "allowTrueCurvesUpdates": false,
 "onlyAllowTrueCurveUpdatesByTrueCurveClients": false,
 "hasAttachments": true,
 "supportsAttachmentsByUploadId": true,
 "supportsApplyEditsWithGlobalIds": true,
 "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
 "objectIdField": "objectid",
 "globalIdField": "globalid",
 "displayField": "nimi",
 "typeIdField": "",
 "subtypeField": "",
 "fields": [
  {
   "name": "objectid",
   "type": "esriFieldTypeOID",
   "alias": "OBJECTID",
   "domain": null,
   "editable": false,
   "nullable": false
  },
  {
   "name": "globalid",
   "type": "esriFieldTypeGlobalID",
   "alias": "globalid",
   "domain": null,
   "editable": false,
   "nullable": false,
   "length": 38
  },
  {
   "name": "nimi",
   "type": "esriFieldTypeString",
   "alias": "Nimi",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 255
  },
  {
   "name": "tunnus",
   "type": "esriFieldTypeString",
   "alias": "Kaavatunnus",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 255
  },
  {
   "name": "hyvaksytty",
   "type": "esriFieldTypeDate",
   "alias": "Hyväksytty pvm",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 8
  },
  {
   "name": "voimaan_pvm",
   "type": "esriFieldTypeDate",
   "alias": "Voimaantulon pvm",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 8
  },
  {
   "name": "kaava",
   "type": "esriFieldTypeString",
   "alias": "Kaavakartta URL",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 255
  },
  {
   "name": "merkinnat",
   "type": "esriFieldTypeString",
   "alias": "Kaavamerkinnät URL",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 255
  },
  {
   "name": "tila",
   "type": "esriFieldTypeString",
   "alias": "Kaavan tila",
   "domain": {
    "type": "codedValue",
    "name": "kaavantila",
    "description": "Kaavan käsittelyvaihe",
    "codedValues": [
     {
      "name": "Vireillä",
      "code": "vireilla"
     },
     {
      "name": "Luonnos",
      "code": "luonnos"
     },
     {
      "name": "Ehdotus",
      "code": "ehdotus"
     },
     {
      "name": "Hyväksytty",
      "code": "hyvaksytty"
     },
     {
      "name": "Valitus",
      "code": "valitus"
     },
     {
      "name": "Kumottu",
      "code": "kumottu"
     },
     {
      "name": "Kumottu osittain",
      "code": "kumottu_osin"
     },
     {
      "name": "Lainvoimainen",
      "code": "voimassa"
     }
    ],
    "mergePolicy": "esriMPTDefaultValue",
    "splitPolicy": "esriSPTDefaultValue"
   },
   "editable": true,
   "nullable": true,
   "length": 255
  },
  {
   "name": "selostus",
   "type": "esriFieldTypeString",
   "alias": "Kaavaselostus URL",
   "domain": null,
   "editable": true,
   "nullable": true,
   "length": 255
  }
 ],
 "geometryField": {
  "name": "shape",
  "type": "esriFieldTypeGeometry",
  "alias": "SHAPE",
  "domain": null,
  "editable": false,
  "nullable": true,
  "defaultValue": null,
  "modelName": "shape"
 },
 "indexes": [
  {
   "name": "a8_ix1",
   "fields": "shape",
   "isAscending": true,
   "isUnique": true,
   "description": ""
  }
 ],
 "dateFieldsTimeReference": {
  "timeZone": "UTC",
  "respectsDaylightSaving": false
 },
 "types": [],
 "templates": [
  {
   "name": "Yleiskaavahakemisto",
   "description": "",
   "prototype": {
    "attributes": {
     "tila": null,
     "selostus": null,
     "merkinnat": null,
     "nimi": null,
     "tunnus": null,
     "hyvaksytty": null,
     "voimaan_pvm": null,
     "kaava": null
    }
   },
   "drawingTool": "esriFeatureEditToolPolygon"
  }
 ],
 "maxRecordCount": 1000,
 "supportedQueryFormats": "JSON, AMF, geoJSON",
 "capabilities": "Query",
 "useStandardizedQueries": true,
 "standardMaxRecordCount": 4000,
 "tileMaxRecordCount": 4000,
 "maxRecordCountFactor": 1
}