{
 "layers": [
  {
   "currentVersion": 11.1,
   "cimVersion": "3.1.0",
   "id": 1,
   "name": "Befintliga byggnader",
   "type": "Feature Layer",
   "parentLayer": null,
   "defaultVisibility": true,
   "minScale": 0,
   "maxScale": 0,
   "canScaleSymbols": false,
   "geometryType": "esriGeometryMultiPatch",
   "description": "",
   "copyrightText": "",
   "editFieldsInfo": null,
   "ownershipBasedAccessControlForFeatures": null,
   "syncCanReturnChanges": true,
   "relationships": [],
   "isDataVersioned": false,
   "isDataArchived": true,
   "infoInEstimates": [
    "extent",
    "count"
   ],
   "isDataBranchVersioned": false,
   "isDataReplicaTracked": true,
   "isCoGoEnabled": false,
   "supportsRollbackOnFailureParameter": true,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": true,
    "startArchivingMoment": 1737720756000
   },
   "supportsStatistics": true,
   "supportsExceedsLimitStatistics": true,
   "supportsAdvancedQueries": true,
   "supportsValidateSQL": true,
   "supportsCoordinatesQuantization": true,
   "supportsQuantizationEditMode": true,
   "supportsCalculate": true,
   "supportsASyncCalculate": true,
   "supportsDatumTransformation": true,
   "advancedQueryCapabilities": {
    "supportsPagination": true,
    "supportsTrueCurve": true,
    "supportsQueryWithDistance": true,
    "supportsReturningQueryExtent": true,
    "supportsStatistics": true,
    "supportsPercentileStatistics": true,
    "supportsHavingClause": true,
    "supportsOrderBy": true,
    "supportsDistinct": true,
    "supportsCountDistinct": true,
    "supportsQueryWithResultType": true,
    "supportsReturningGeometryCentroid": false,
    "supportsSqlExpression": true,
    "supportedMultipatchOptions": [
     "embedMaterials",
     "xyFootprint",
     "externalizeTextures",
     "stripMaterials",
     "extent",
     "boundingBoxMultipatch"
    ],
    "supportsQueryWithDatumTransformation": true,
    "supportsLod": false,
    "supportsQueryWithLodSR": false,
    "supportsQueryAnalytic": true
   },
   "advancedQueryAnalyticCapabilities": {
    "supportsLinearRegression": true,
    "supportsAsync": false,
    "supportsPercentileAnalytic": false
   },
   "advancedEditingCapabilities": {
    "supportedSqlFormatsInCalculate": [
     "standard"
    ],
    "supportsAsyncApplyEdits": true,
    "supportsApplyEditsbyUploadID": true,
    "supportedApplyEditsUploadIDFormats": "JSON"
   },
   "hasMetadata": true,
   "extent": {
    "xmin": 136056.47200000007,
    "ymin": 6190720.129799999,
    "xmax": 136386.01410000026,
    "ymax": 6190989.6186999995,
    "spatialReference": {
     "wkid": 3008,
     "latestWkid": 3008,
     "vcsWkid": 105702,
     "latestVcsWkid": 5613,
     "xyTolerance": 0.001,
     "zTolerance": 0.001,
     "mTolerance": 0.001,
     "falseX": -5473200,
     "falseY": -10002100,
     "xyUnits": 10000,
     "falseZ": -100000,
     "zUnits": 10000,
     "falseM": -100000,
     "mUnits": 10000
    }
   },
   "heightModelInfo": {
    "heightModel": "gravity_related_height",
    "vertCRS": "RH2000",
    "heightUnit": "meter"
   },
   "sourceSpatialReference": {
    "wkid": 3008,
    "latestWkid": 3008,
    "xyTolerance": 0.001,
    "zTolerance": 0.001,
    "mTolerance": 0.001,
    "falseX": -5473200,
    "falseY": -10002100,
    "xyUnits": 10000,
    "falseZ": -100000,
    "zUnits": 10000,
    "falseM": -100000,
    "mUnits": 10000
   },
   "drawingInfo": {
    "renderer": {
     "type": "simple",
     "symbol": {
      "type": "esriSFS",
      "style": "esriSFSSolid",
      "color": [
       232,
       226,
       221,
       255
      ],
      "outline": null
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": null
   },
   "hasM": false,
   "hasZ": true,
   "enableZDefaults": true,
   "zDefault": 0,
   "supportsVCSProjection": true,
   "allowGeometryUpdates": true,
   "allowTrueCurvesUpdates": false,
   "onlyAllowTrueCurveUpdatesByTrueCurveClients": false,
   "hasAttachments": false,
   "supportsApplyEditsWithGlobalIds": true,
   "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
   "objectIdField": "objectid",
   "globalIdField": "globalid",
   "displayField": "NAME",
   "typeIdField": "",
   "subtypeField": "STYPE",
   "defaultSubtypeCode": 1001,
   "fields": [
    {
     "name": "objectid",
     "type": "esriFieldTypeOID",
     "alias": "OBJECTID",
     "domain": null,
     "editable": false,
     "nullable": false,
     "defaultValue": null,
     "modelName": "objectid"
    },
    {
     "name": "buildingsid",
     "type": "esriFieldTypeString",
     "alias": "Byggnadsidentitet",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 38,
     "defaultValue": null,
     "modelName": "BUILDINGSID"
    },
    {
     "name": "name",
     "type": "esriFieldTypeString",
     "alias": "Namn",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 255,
     "defaultValue": null,
     "modelName": "NAME"
    },
    {
     "name": "stype",
     "type": "esriFieldTypeSmallInteger",
     "alias": "Byggnadsändamål",
     "domain": null,
     "editable": true,
     "nullable": true,
     "defaultValue": 1001,
     "modelName": "STYPE"
    },
    {
     "name": "purpose",
     "type": "esriFieldTypeSmallInteger",
     "alias": "Detaljerat ändamål",
     "domain": {
      "type": "codedValue",
      "name": "bygg3D_LivingHouse",
      "description": "Typ av bostadshus, från primärkartan",
      "codedValues": [
       {
        "name": "Ingen information",
        "code": 0
       },
       {
        "name": "Småhus - friliggande",
        "code": 10
       },
       {
        "name": "Småhus \u2013 kedjehus",
        "code": 11
       },
       {
        "name": "Småhus \u2013 radhus",
        "code": 12
       },
       {
        "name": "Småhus med flera lägenheter",
        "code": 13
       },
       {
        "name": "Flerfamiljshus",
        "code": 14
       },
       {
        "name": "Tillbyggnad",
        "code": 20
       }
      ],
      "mergePolicy": "esriMPTDefaultValue",
      "splitPolicy": "esriSPTDuplicate"
     },
     "editable": true,
     "nullable": true,
     "defaultValue": null,
     "modelName": "PURPOSE"
    },
    {
     "name": "constructionyear",
     "type": "esriFieldTypeSmallInteger",
     "alias": "Nybyggnadsår",
     "domain": null,
     "editable": true,
     "nullable": true,
     "defaultValue": null,
     "modelName": "CONSTRUCTIONYEAR"
    },
    {
     "name": "extensionyear",
     "type": "esriFieldTypeSmallInteger",
     "alias": "Tillbyggnadsår",
     "domain": null,
     "editable": true,
     "nullable": true,
     "defaultValue": null,
     "modelName": "EXTENSIONYEAR"
    },
    {
     "name": "globalid",
     "type": "esriFieldTypeGlobalID",
     "alias": "GlobalID",
     "domain": null,
     "editable": false,
     "nullable": false,
     "length": 38,
     "defaultValue": null,
     "modelName": "globalid"
    },
    {
     "name": "finns_kvar",
     "type": "esriFieldTypeString",
     "alias": "finns_kvar",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 3,
     "defaultValue": null,
     "modelName": "finns_kvar"
    }
   ],
   "geometryField": {
    "name": "shape",
    "type": "esriFieldTypeGeometry",
    "alias": "Shape",
    "domain": null,
    "editable": true,
    "nullable": true,
    "defaultValue": null,
    "modelName": "shape"
   },
   "indexes": [
    {
     "name": "r1170_sde_rowid_uk",
     "fields": "objectid",
     "isAscending": true,
     "isUnique": false,
     "description": ""
    },
    {
     "name": "uuid_1170",
     "fields": "GlobalID",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    },
    {
     "name": "a678_ix1",
     "fields": "shape",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    }
   ],
   "datesInUnknownTimezone": false,
   "dateFieldsTimeReference": {
    "timeZone": "UTC",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "types": [],
   "templates": [
    {
     "name": "Befintliga byggnader",
     "description": "",
     "prototype": {
      "attributes": {
       "finns_kvar": null,
       "extensionyear": null,
       "buildingsid": null,
       "name": null,
       "stype": 1001,
       "purpose": null,
       "constructionyear": null
      }
     },
     "drawingTool": "esriFeatureEditToolNone"
    }
   ],
   "subtypes": [
    {
     "code": 1001,
     "name": "Bostad",
     "defaultValues": {
      "buildingsid": null,
      "name": null,
      "stype": 1001,
      "purpose": null,
      "constructionyear": null,
      "extensionyear": null,
      "globalid": null,
      "finns_kvar": null
     },
     "domains": {
      "purpose": {"type": "inherited"}
     }
    },
    {
     "code": 1002,
     "name": "Industri",
     "defaultValues": {
      "buildingsid": null,
      "name": null,
      "stype": 1002,
      "purpose": null,
      "constructionyear": null,
      "extensionyear": null,
      "globalid": null,
      "finns_kvar": null
     },
     "domains": {
      "purpose": {
       "type": "codedValue",
       "name": "bygg3D_IndustryBuilding",
       "description": "Typ av industribyggnad, från primärkartan",
       "codedValues": [
        {
         "name": "Ingen information",
         "code": 0
        },
        {
         "name": "Industrihotell",
         "code": 101
        },
        {
         "name": "Kemisk",
         "code": 102
        },
        {
         "name": "Livsmedel",
         "code": 103
        },
        {
         "name": "Metall/Maskin",
         "code": 104
        },
        {
         "name": "Textil/Beklädnad",
         "code": 105
        },
        {
         "name": "Trävaru",
         "code": 106
        },
        {
         "name": "Annan tillverkningsindustri",
         "code": 107
        },
        {
         "name": "Gasturbinanläggning",
         "code": 110
        },
        {
         "name": "Kondenskraftverk",
         "code": 111
        },
        {
         "name": "Kärnkraftverk",
         "code": 112
        },
        {
         "name": "Vattenkraftverk",
         "code": 113
        },
        {
         "name": "Vindkraftverk",
         "code": 114
        },
        {
         "name": "Värmeverk",
         "code": 115
        },
        {
         "name": "Övrig industribyggnad",
         "code": 116
        },
        {
         "name": "Tillbyggnad",
         "code": 150
        }
       ],
       "mergePolicy": "esriMPTDefaultValue",
       "splitPolicy": "esriSPTDuplicate"
      }
     }
    },
    {
     "code": 1003,
     "name": "Samhällsfunktion",
     "defaultValues": {
      "buildingsid": null,
      "name": null,
      "stype": 1003,
      "purpose": null,
      "constructionyear": null,
      "extensionyear": null,
      "globalid": null,
      "finns_kvar": null
     },
     "domains": {
      "purpose": {
       "type": "codedValue",
       "name": "bygg3D_PublicBuilding",
       "description": "Typ av offentlig byggnad, från primärkartan",
       "codedValues": [
        {
         "name": "Ingen information",
         "code": 0
        },
        {
         "name": "Badhus",
         "code": 201
        },
        {
         "name": "Brandstation",
         "code": 203
        },
        {
         "name": "Flygplats",
         "code": 205
        },
        {
         "name": "Kommunhus",
         "code": 212
        },
        {
         "name": "Polisstation",
         "code": 213
        },
        {
         "name": "Busstation",
         "code": 221
        },
        {
         "name": "Djursjukhus",
         "code": 222
        },
        {
         "name": "Fotbollstadion",
         "code": 223
        },
        {
         "name": "Kriminalvårdsanstalt",
         "code": 226
        },
        {
         "name": "Nöjesanläggning",
         "code": 229
        },
        {
         "name": "Reningsverk",
         "code": 230
        },
        {
         "name": "Ridhus",
         "code": 231
        },
        {
         "name": "Hälsocentral",
         "code": 239
        },
        {
         "name": "Ishall",
         "code": 240
        },
        {
         "name": "Järnvägsstation",
         "code": 241
        },
        {
         "name": "Försvarsbyggnad",
         "code": 242
        },
        {
         "name": "Sjukhus",
         "code": 243
        },
        {
         "name": "Skola",
         "code": 244
        },
        {
         "name": "Sporthall",
         "code": 245
        },
        {
         "name": "Betalstation",
         "code": 246
        },
        {
         "name": "Tullstation",
         "code": 249
        },
        {
         "name": "Universitet",
         "code": 250
        },
        {
         "name": "Högskola",
         "code": 251
        },
        {
         "name": "Hangar",
         "code": 253
        },
        {
         "name": "Terminal",
         "code": 255
        },
        {
         "name": "Kulturbyggnad",
         "code": 257
        },
        {
         "name": "Distributionsbyggnad",
         "code": 258
        },
        {
         "name": "Myndigheter",
         "code": 260
        },
        {
         "name": "Vattenverk",
         "code": 261
        },
        {
         "name": "Offentlig byggnad",
         "code": 300
        },
        {
         "name": "Tillbyggnad",
         "code": 301
        }
       ],
       "mergePolicy": "esriMPTDefaultValue",
       "splitPolicy": "esriSPTDuplicate"
      }
     }
    },
    {
     "code": 1004,
     "name": "Samfund",
     "defaultValues": {
      "buildingsid": null,
      "name": null,
      "stype": 1004,
      "purpose": null,
      "constructionyear": null,
      "extensionyear": null,
      "globalid": null,
      "finns_kvar": null
     },
     "domains": {
      "purpose": {
       "type": "codedValue",
       "name": "bygg3D_ReligiousBuilding",
       "description": "Typ av religiös byggnad, från primärkartan",
       "codedValues": [
        {
         "name": "Ingen information",
         "code": 0
        },
        {
         "name": "Kyrka",
         "code": 301
        },
        {
         "name": "Kapell",
         "code": 303
        },
        {
         "name": "Församlingshem",
         "code": 304
        },
        {
         "name": "Krematorium",
         "code": 305
        },
        {
         "name": "Frikyrka",
         "code": 306
        },
        {
         "name": "Kloster",
         "code": 307
        },
        {
         "name": "Moské",
         "code": 308
        },
        {
         "name": "Synagoga",
         "code": 310
        },
        {
         "name": "Tempel",
         "code": 312
        },
        {
         "name": "Tillbyggnad",
         "code": 350
        }
       ],
       "mergePolicy": "esriMPTDefaultValue",
       "splitPolicy": "esriSPTDuplicate"
      }
     }
    },
    {
     "code": 1005,
     "name": "Verksamhet",
     "defaultValues": {
      "buildingsid": null,
      "name": null,
      "stype": 1005,
      "purpose": null,
      "constructionyear": null,
      "extensionyear": null,
      "globalid": null,
      "finns_kvar": null
     },
     "domains": {
      "purpose": {
       "type": "codedValue",
       "name": "bygg3D_CommercialBuilding",
       "description": "Typ av verksamhetsbyggnad, från primärkartan",
       "codedValues": [
        {
         "name": "Ingen information",
         "code": 0
        },
        {
         "name": "Café",
         "code": 401
        },
        {
         "name": "Handel",
         "code": 403
        },
        {
         "name": "Hotell",
         "code": 404
        },
        {
         "name": "Kontor",
         "code": 405
        },
        {
         "name": "Pensionat",
         "code": 407
        },
        {
         "name": "Restaurang",
         "code": 408
        },
        {
         "name": "Vandrarhem",
         "code": 409
        },
        {
         "name": "Bensinstation",
         "code": 411
        },
        {
         "name": "Kiosk",
         "code": 412
        },
        {
         "name": "Konferensanläggning",
         "code": 413
        },
        {
         "name": "Parkeringshus",
         "code": 414
        },
        {
         "name": "Tillbyggnad",
         "code": 450
        }
       ],
       "mergePolicy": "esriMPTDefaultValue",
       "splitPolicy": "esriSPTDuplicate"
      }
     }
    },
    {
     "code": 1006,
     "name": "Övrig byggnad",
     "defaultValues": {
      "buildingsid": null,
      "name": null,
      "stype": 1006,
      "purpose": null,
      "constructionyear": null,
      "extensionyear": null,
      "globalid": null,
      "finns_kvar": null
     },
     "domains": {
      "purpose": {
       "type": "codedValue",
       "name": "bygg3D_OtherBuilding",
       "description": "Typ av annan byggnad, från primärkartan",
       "codedValues": [
        {
         "name": "Ingen information",
         "code": 0
        },
        {
         "name": "Kraftstation",
         "code": 725
        },
        {
         "name": "Värmeverk",
         "code": 736
        },
        {
         "name": "Transformator",
         "code": 738
        },
        {
         "name": "Telestation",
         "code": 739
        },
        {
         "name": "Pumpstation",
         "code": 740
        },
        {
         "name": "Vattentorn",
         "code": 741
        },
        {
         "name": "Fyrtorn",
         "code": 742
        },
        {
         "name": "Elkiosk",
         "code": 743
        },
        {
         "name": "Tillbyggnad",
         "code": 800
        }
       ],
       "mergePolicy": "esriMPTDefaultValue",
       "splitPolicy": "esriSPTDuplicate"
      }
     }
    },
    {
     "code": 1007,
     "name": "Ekonomibyggnad",
     "defaultValues": {
      "buildingsid": null,
      "name": null,
      "stype": 1007,
      "purpose": null,
      "constructionyear": null,
      "extensionyear": null,
      "globalid": null,
      "finns_kvar": null
     },
     "domains": {
      "purpose": {
       "type": "codedValue",
       "name": "bygg3D_AgriculturalBuilding",
       "description": "Typ av lantbruksbyggnad, från primärkartan",
       "codedValues": [
        {
         "name": "Ingen information",
         "code": 0
        },
        {
         "name": "Djurstall",
         "code": 501
        },
        {
         "name": "Lada",
         "code": 505
        },
        {
         "name": "Magasin",
         "code": 506
        },
        {
         "name": "Maskinhall",
         "code": 507
        },
        {
         "name": "Växthus",
         "code": 518
        },
        {
         "name": "Silo",
         "code": 519
        },
        {
         "name": "Tillbyggnad",
         "code": 550
        }
       ],
       "mergePolicy": "esriMPTDefaultValue",
       "splitPolicy": "esriSPTDuplicate"
      }
     }
    },
    {
     "code": 1008,
     "name": "Komplementbyggnad",
     "defaultValues": {
      "buildingsid": null,
      "name": null,
      "stype": 1008,
      "purpose": null,
      "constructionyear": null,
      "extensionyear": null,
      "globalid": null,
      "finns_kvar": null
     },
     "domains": {
      "purpose": {
       "type": "codedValue",
       "name": "bygg3D_AnnexBuilding_1",
       "description": "Typ av komplementbyggnad, från primärkartan",
       "codedValues": [
        {
         "name": "Ingen information",
         "code": 0
        },
        {
         "name": "Carport",
         "code": 601
        },
        {
         "name": "Garage",
         "code": 604
        },
        {
         "name": "Fristående skärmtak",
         "code": 610
        },
        {
         "name": "Uthus",
         "code": 615
        },
        {
         "name": "Bastu",
         "code": 620
        },
        {
         "name": "Jordkällare",
         "code": 621
        },
        {
         "name": "Båthus",
         "code": 622
        },
        {
         "name": "Uterum",
         "code": 623
        },
        {
         "name": "Cistern",
         "code": 624
        },
        {
         "name": "Skärmtak",
         "code": 626
        },
        {
         "name": "Tillbyggnad",
         "code": 650
        }
       ],
       "mergePolicy": "esriMPTDefaultValue",
       "splitPolicy": "esriSPTDuplicate"
      }
     }
    }
   ],
   "maxRecordCount": 2000,
   "supportedQueryFormats": "JSON, geoJSON",
   "supportedExportFormats": "sqlite,filegdb,shapefile,csv,geojson",
   "capabilities": "Query,ChangeTracking",
   "useStandardizedQueries": true,
   "supportedSpatialRelationships": [
    "esriSpatialRelIntersects",
    "esriSpatialRelContains",
    "esriSpatialRelCrosses",
    "esriSpatialRelEnvelopeIntersects",
    "esriSpatialRelIndexIntersects",
    "esriSpatialRelOverlaps",
    "esriSpatialRelTouches",
    "esriSpatialRelWithin",
    "esriSpatialRelRelation"
   ],
   "standardMaxRecordCount": 4000,
   "tileMaxRecordCount": 4000,
   "standardMaxRecordCountNoGeometry": 32000,
   "maxRecordCountFactor": 1,
   "serviceItemId": "5f013df25b4c432b8f1b4114be70f783"
  }
 ],
 "tables": []
}