{
 "layers": [
  {
   "currentVersion": 11.2,
   "cimVersion": "3.2.0",
   "id": 0,
   "name": "Inventari de locals",
   "type": "Feature Layer",
   "parentLayer": null,
   "defaultVisibility": true,
   "minScale": 0,
   "maxScale": 0,
   "canScaleSymbols": false,
   "geometryType": "esriGeometryPoint",
   "description": "",
   "copyrightText": "",
   "editFieldsInfo": null,
   "ownershipBasedAccessControlForFeatures": null,
   "syncCanReturnChanges": false,
   "relationships": [],
   "isDataVersioned": true,
   "isDataArchived": false,
   "infoInEstimates": [
    "extent"
   ],
   "isDataBranchVersioned": false,
   "isDataReplicaTracked": false,
   "isCoGoEnabled": false,
   "supportsRollbackOnFailureParameter": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsStatistics": true,
   "supportsExceedsLimitStatistics": true,
   "supportsAdvancedQueries": true,
   "supportsValidateSQL": true,
   "supportsCoordinatesQuantization": true,
   "supportsQuantizationEditMode": true,
   "supportsCalculate": true,
   "supportsASyncCalculate": true,
   "supportsDatumTransformation": true,
   "advancedQueryCapabilities": {
    "supportsPagination": true,
    "supportsTrueCurve": true,
    "supportsQueryWithDistance": true,
    "supportsReturningQueryExtent": true,
    "supportsStatistics": true,
    "supportsPercentileStatistics": true,
    "supportsHavingClause": true,
    "supportsOrderBy": true,
    "supportsDistinct": true,
    "supportsCountDistinct": true,
    "supportsAdvancedQueryRelated": true,
    "supportsQueryRelatedPagination": true,
    "supportsCurrentUserQueries": true,
    "supportsQueryWithResultType": true,
    "supportsReturningGeometryCentroid": false,
    "supportsSqlExpression": true,
    "supportsQueryWithDatumTransformation": true,
    "supportsLod": false,
    "supportsQueryWithLodSR": false,
    "supportsQueryAnalytic": true
   },
   "advancedQueryAnalyticCapabilities": {
    "supportsLinearRegression": true,
    "supportsAsync": false,
    "supportsPercentileAnalytic": true
   },
   "advancedEditingCapabilities": {
    "supportedSqlFormatsInCalculate": [
     "standard"
    ],
    "supportsAsyncApplyEdits": true,
    "supportsApplyEditsbyUploadID": true,
    "supportedApplyEditsUploadIDFormats": "JSON"
   },
   "hasMetadata": true,
   "extent": {
    "xmin": 311985.88573239883,
    "ymin": 5156425.088906526,
    "xmax": 316437.5443437768,
    "ymax": 5159622.3430813225,
    "spatialReference": {
     "wkid": 102100,
     "latestWkid": 3857,
     "xyTolerance": 0.001,
     "zTolerance": 0.001,
     "mTolerance": 0.001,
     "falseX": -20037700,
     "falseY": -30241100,
     "xyUnits": 10000,
     "falseZ": -100000,
     "zUnits": 10000,
     "falseM": -100000,
     "mUnits": 10000
    }
   },
   "sourceSpatialReference": {
    "wkid": 25831,
    "latestWkid": 25831,
    "xyTolerance": 0.001,
    "zTolerance": 0.001,
    "mTolerance": 0.001,
    "falseX": -5120900,
    "falseY": -9998100,
    "xyUnits": 10000,
    "falseZ": 0,
    "zUnits": 1,
    "falseM": 0,
    "mUnits": 1
   },
   "drawingInfo": {
    "renderer": {
     "type": "simple",
     "symbol": {
      "type": "esriPMS",
      "url": "49d6d94ba88759bdb8dfe9473ffadbdf",
      "imageData": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAfCAYAAADupU20AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABOElEQVQ4je2VMU7DQBBF/0guQIIDYEqLyjTGtMkJIo6xKTmCk2v4Gka5AG1WNHSBMrtlCiw53aAxtmUlXrKSRYPypdVa9v6nmbH1HWCkgj8DMHMIYAZAE5H2AjCzAtAaU1uV7X3ZdLPyPjDomRe2KrPCbGD3JYrtBnpn62fh5RVm4V2qoiQNL64VMwtk3gGYWemdzZbvrxDAoUxVIv98q5fAtk/PApHW8rYC9WI+Bs0umIoSaTdvAamU7KsGkNYt8M+0Yfdf3oD2rHgDjFRwBuA8A/yLGRCRkcTJ4inm65WXSUUPskkemLaCRxUla7k4BVncT5HFE4m0ZdcCEWlmPgnpm4mo6AA+kCHz0RDJAXGZjwCHEElnkcvsfI3UQLJ4IpU4zU5AD3IL4Mb7zzQAMZLkv50Z/SV+AwTwrBVrp/MVAAAAAElFTkSuQmCC",
      "contentType": "image/png",
      "width": 12,
      "height": 23,
      "angle": 0,
      "xoffset": 0,
      "yoffset": 9.25
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": null
   },
   "hasM": false,
   "hasZ": false,
   "allowGeometryUpdates": true,
   "allowTrueCurvesUpdates": true,
   "onlyAllowTrueCurveUpdatesByTrueCurveClients": true,
   "hasAttachments": false,
   "supportsApplyEditsWithGlobalIds": false,
   "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
   "objectIdField": "OBJECTID",
   "globalIdField": "",
   "displayField": "CLASSIFICACIO",
   "typeIdField": "",
   "subtypeField": "",
   "fields": [
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "OBJECTID",
     "domain": null,
     "editable": false,
     "nullable": false,
     "defaultValue": null,
     "modelName": "OBJECTID"
    },
    {
     "name": "CLASSIFICACIO",
     "type": "esriFieldTypeString",
     "alias": "Classificació",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 50,
     "defaultValue": null,
     "modelName": "CLASSIFICACIO"
    },
    {
     "name": "ELEMENT",
     "type": "esriFieldTypeString",
     "alias": "Element",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 10,
     "defaultValue": null,
     "modelName": "ELEMENT"
    }
   ],
   "geometryField": {
    "name": "SHAPE",
    "type": "esriFieldTypeGeometry",
    "alias": "SHAPE",
    "domain": null,
    "editable": true,
    "nullable": true,
    "defaultValue": null,
    "modelName": "SHAPE"
   },
   "indexes": [
    {
     "name": "R812_SDE_ROWID_UK",
     "fields": "OBJECTID",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    },
    {
     "name": "A791_IX1",
     "fields": "SHAPE",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    }
   ],
   "datesInUnknownTimezone": false,
   "dateFieldsTimeReference": {
    "timeZone": "UTC",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "types": [],
   "templates": [
    {
     "name": "Inventari de locals",
     "description": "",
     "prototype": {
      "attributes": {
       "CLASSIFICACIO": null,
       "ELEMENT": null
      }
     },
     "drawingTool": "esriFeatureEditToolPoint"
    }
   ],
   "maxRecordCount": 2000,
   "supportedQueryFormats": "JSON, geoJSON, PBF",
   "supportedExportFormats": "sqlite,filegdb,shapefile,csv,geojson",
   "capabilities": "Query,Create,Update,Delete,Uploads,Editing",
   "useStandardizedQueries": true,
   "bigIntegerRestrictedTo53Bits": true,
   "supportedSpatialRelationships": [
    "esriSpatialRelIntersects",
    "esriSpatialRelContains",
    "esriSpatialRelCrosses",
    "esriSpatialRelEnvelopeIntersects",
    "esriSpatialRelIndexIntersects",
    "esriSpatialRelOverlaps",
    "esriSpatialRelTouches",
    "esriSpatialRelWithin",
    "esriSpatialRelRelation"
   ],
   "standardMaxRecordCount": 32000,
   "tileMaxRecordCount": 8000,
   "standardMaxRecordCountNoGeometry": 32000,
   "maxRecordCountFactor": 1,
   "serviceItemId": "f7702198e64440e4ba3ce73faa02a1aa"
  },
  {
   "currentVersion": 11.2,
   "cimVersion": "3.2.0",
   "id": 1,
   "name": "Centres de patrimoni",
   "type": "Feature Layer",
   "parentLayer": null,
   "defaultVisibility": true,
   "minScale": 0,
   "maxScale": 0,
   "canScaleSymbols": false,
   "geometryType": "esriGeometryPolygon",
   "description": "",
   "copyrightText": "",
   "editFieldsInfo": null,
   "ownershipBasedAccessControlForFeatures": null,
   "syncCanReturnChanges": false,
   "relationships": [
    {
     "id": 0,
     "name": "SDE.UMAT_VIEW_GPA",
     "relatedTableId": 6,
     "cardinality": "esriRelCardinalityOneToMany",
     "role": "esriRelRoleOrigin",
     "keyField": "CODICENTRE",
     "composite": false,
     "catalogID": "{7857A2FF-7BF4-4D96-A7A9-F8D85D4F2AB9}"
    }
   ],
   "isDataVersioned": true,
   "isDataArchived": false,
   "infoInEstimates": [
    "extent"
   ],
   "isDataBranchVersioned": false,
   "isDataReplicaTracked": false,
   "isCoGoEnabled": false,
   "supportsRollbackOnFailureParameter": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsStatistics": true,
   "supportsExceedsLimitStatistics": true,
   "supportsAdvancedQueries": true,
   "supportsValidateSQL": true,
   "supportsCoordinatesQuantization": true,
   "supportsQuantizationEditMode": true,
   "supportsCalculate": true,
   "supportsASyncCalculate": true,
   "supportsDatumTransformation": true,
   "advancedQueryCapabilities": {
    "supportsPagination": true,
    "supportsTrueCurve": true,
    "supportsQueryWithDistance": true,
    "supportsReturningQueryExtent": true,
    "supportsStatistics": true,
    "supportsPercentileStatistics": true,
    "supportsHavingClause": true,
    "supportsOrderBy": true,
    "supportsDistinct": true,
    "supportsCountDistinct": true,
    "supportsAdvancedQueryRelated": true,
    "supportsQueryRelatedPagination": true,
    "supportsCurrentUserQueries": true,
    "supportsQueryWithResultType": true,
    "supportsReturningGeometryCentroid": true,
    "supportsSqlExpression": true,
    "supportsQueryWithDatumTransformation": true,
    "supportsLod": false,
    "supportsQueryWithLodSR": false,
    "supportsQueryAnalytic": true
   },
   "advancedQueryAnalyticCapabilities": {
    "supportsLinearRegression": true,
    "supportsAsync": false,
    "supportsPercentileAnalytic": true
   },
   "advancedEditingCapabilities": {
    "supportedSqlFormatsInCalculate": [
     "standard"
    ],
    "supportsAsyncApplyEdits": true,
    "supportsApplyEditsbyUploadID": true,
    "supportedApplyEditsUploadIDFormats": "JSON"
   },
   "hasGeometryProperties": true,
   "geometryProperties": {
    "shapeAreaFieldName": "Shape__Area",
    "shapeLengthFieldName": "Shape__Length",
    "units": "esriMeters"
   },
   "hasMetadata": true,
   "extent": {
    "xmin": 311103.1688900173,
    "ymin": 5154651.656583516,
    "xmax": 317776.86164878175,
    "ymax": 5161258.455861239,
    "spatialReference": {
     "wkid": 102100,
     "latestWkid": 3857,
     "xyTolerance": 0.001,
     "zTolerance": 0.001,
     "mTolerance": 0.001,
     "falseX": -20037700,
     "falseY": -30241100,
     "xyUnits": 10000,
     "falseZ": -100000,
     "zUnits": 10000,
     "falseM": -100000,
     "mUnits": 10000
    }
   },
   "sourceSpatialReference": {
    "wkid": 25831,
    "latestWkid": 25831,
    "xyTolerance": 0.001,
    "zTolerance": 0.001,
    "mTolerance": 0.001,
    "falseX": -5120900,
    "falseY": -9998100,
    "xyUnits": 10000,
    "falseZ": 0,
    "zUnits": 1,
    "falseM": 0,
    "mUnits": 1
   },
   "drawingInfo": {
    "renderer": {
     "type": "simple",
     "symbol": {
      "type": "esriSFS",
      "style": "esriSFSSolid",
      "color": [
       255,
       0,
       0,
       255
      ],
      "outline": {
       "type": "esriSLS",
       "style": "esriSLSSolid",
       "color": [
        255,
        0,
        0,
        255
       ],
       "width": 0.5
      }
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": null
   },
   "hasM": false,
   "hasZ": false,
   "allowGeometryUpdates": true,
   "allowTrueCurvesUpdates": true,
   "onlyAllowTrueCurveUpdatesByTrueCurveClients": true,
   "hasAttachments": false,
   "supportsApplyEditsWithGlobalIds": false,
   "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
   "objectIdField": "OBJECTID",
   "globalIdField": "",
   "displayField": "CODICENTRE",
   "typeIdField": "",
   "subtypeField": "",
   "fields": [
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "Codi intern",
     "domain": null,
     "editable": false,
     "nullable": false,
     "defaultValue": null,
     "modelName": "OBJECTID"
    },
    {
     "name": "ID",
     "type": "esriFieldTypeInteger",
     "alias": "Id de centre",
     "domain": null,
     "editable": true,
     "nullable": false,
     "defaultValue": null,
     "modelName": "ID"
    },
    {
     "name": "CODICENTRE",
     "type": "esriFieldTypeString",
     "alias": "Centre",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 15,
     "defaultValue": null,
     "modelName": "CODICENTRE"
    },
    {
     "name": "Shape__Area",
     "type": "esriFieldTypeDouble",
     "alias": "Àrea",
     "domain": null,
     "editable": false,
     "required": true,
     "nullable": true,
     "defaultValue": null,
     "modelName": "SHAPE.AREA"
    },
    {
     "name": "Shape__Length",
     "type": "esriFieldTypeDouble",
     "alias": "Perímetre",
     "domain": null,
     "editable": false,
     "required": true,
     "nullable": true,
     "defaultValue": null,
     "modelName": "SHAPE.LEN"
    }
   ],
   "geometryField": {
    "name": "SHAPE",
    "type": "esriFieldTypeGeometry",
    "alias": "SHAPE",
    "domain": null,
    "editable": true,
    "nullable": true,
    "defaultValue": null,
    "modelName": "SHAPE"
   },
   "indexes": [
    {
     "name": "GDB_1043_CODICEN",
     "fields": "CODICENTRE",
     "isAscending": true,
     "isUnique": false,
     "description": ""
    },
    {
     "name": "R810_SDE_ROWID_UK",
     "fields": "OBJECTID",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    },
    {
     "name": "A789_IX1",
     "fields": "SHAPE",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    }
   ],
   "datesInUnknownTimezone": false,
   "dateFieldsTimeReference": {
    "timeZone": "UTC",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "types": [],
   "templates": [
    {
     "name": "Centres de patrimoni",
     "description": "",
     "prototype": {
      "attributes": {
       "CODICENTRE": null,
       "ID": 0
      }
     },
     "drawingTool": "esriFeatureEditToolPolygon"
    }
   ],
   "maxRecordCount": 2000,
   "supportedQueryFormats": "JSON, geoJSON, PBF",
   "supportedExportFormats": "sqlite,filegdb,shapefile,csv,geojson",
   "capabilities": "Query,Create,Update,Delete,Uploads,Editing",
   "useStandardizedQueries": true,
   "bigIntegerRestrictedTo53Bits": true,
   "supportedSpatialRelationships": [
    "esriSpatialRelIntersects",
    "esriSpatialRelContains",
    "esriSpatialRelCrosses",
    "esriSpatialRelEnvelopeIntersects",
    "esriSpatialRelIndexIntersects",
    "esriSpatialRelOverlaps",
    "esriSpatialRelTouches",
    "esriSpatialRelWithin",
    "esriSpatialRelRelation"
   ],
   "standardMaxRecordCount": 4000,
   "tileMaxRecordCount": 4000,
   "standardMaxRecordCountNoGeometry": 32000,
   "maxRecordCountFactor": 1,
   "serviceItemId": "f7702198e64440e4ba3ce73faa02a1aa"
  },
  {
   "currentVersion": 11.2,
   "cimVersion": "3.2.0",
   "id": 2,
   "name": "Inventari",
   "type": "Feature Layer",
   "parentLayer": null,
   "defaultVisibility": true,
   "minScale": 0,
   "maxScale": 0,
   "canScaleSymbols": false,
   "geometryType": "esriGeometryPolygon",
   "description": "",
   "copyrightText": "",
   "editFieldsInfo": null,
   "ownershipBasedAccessControlForFeatures": null,
   "syncCanReturnChanges": false,
   "relationships": [],
   "isDataVersioned": true,
   "isDataArchived": false,
   "infoInEstimates": [
    "extent"
   ],
   "isDataBranchVersioned": false,
   "isDataReplicaTracked": false,
   "isCoGoEnabled": false,
   "supportsRollbackOnFailureParameter": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsStatistics": true,
   "supportsExceedsLimitStatistics": true,
   "supportsAdvancedQueries": true,
   "supportsValidateSQL": true,
   "supportsCoordinatesQuantization": true,
   "supportsQuantizationEditMode": true,
   "supportsCalculate": true,
   "supportsASyncCalculate": true,
   "supportsDatumTransformation": true,
   "advancedQueryCapabilities": {
    "supportsPagination": true,
    "supportsTrueCurve": true,
    "supportsQueryWithDistance": true,
    "supportsReturningQueryExtent": true,
    "supportsStatistics": true,
    "supportsPercentileStatistics": true,
    "supportsHavingClause": true,
    "supportsOrderBy": true,
    "supportsDistinct": true,
    "supportsCountDistinct": true,
    "supportsAdvancedQueryRelated": true,
    "supportsQueryRelatedPagination": true,
    "supportsCurrentUserQueries": true,
    "supportsQueryWithResultType": true,
    "supportsReturningGeometryCentroid": true,
    "supportsSqlExpression": true,
    "supportsQueryWithDatumTransformation": true,
    "supportsLod": false,
    "supportsQueryWithLodSR": false,
    "supportsQueryAnalytic": true
   },
   "advancedQueryAnalyticCapabilities": {
    "supportsLinearRegression": true,
    "supportsAsync": false,
    "supportsPercentileAnalytic": true
   },
   "advancedEditingCapabilities": {
    "supportedSqlFormatsInCalculate": [
     "standard"
    ],
    "supportsAsyncApplyEdits": true,
    "supportsApplyEditsbyUploadID": true,
    "supportedApplyEditsUploadIDFormats": "JSON"
   },
   "hasGeometryProperties": true,
   "geometryProperties": {
    "shapeAreaFieldName": "Shape__Area",
    "shapeLengthFieldName": "Shape__Length",
    "units": "esriMeters"
   },
   "hasMetadata": true,
   "extent": {
    "xmin": 309968.15176661045,
    "ymin": 5153164.547550664,
    "xmax": 317781.79628700454,
    "ymax": 5165186.393118946,
    "spatialReference": {
     "wkid": 102100,
     "latestWkid": 3857,
     "xyTolerance": 0.001,
     "zTolerance": 0.001,
     "mTolerance": 0.001,
     "falseX": -20037700,
     "falseY": -30241100,
     "xyUnits": 10000,
     "falseZ": -100000,
     "zUnits": 10000,
     "falseM": -100000,
     "mUnits": 10000
    }
   },
   "sourceSpatialReference": {
    "wkid": 25831,
    "latestWkid": 25831,
    "xyTolerance": 0.001,
    "zTolerance": 0.001,
    "mTolerance": 0.001,
    "falseX": -5120900,
    "falseY": -9998100,
    "xyUnits": 10000,
    "falseZ": 0,
    "zUnits": 1,
    "falseM": 0,
    "mUnits": 1
   },
   "drawingInfo": {
    "renderer": {
     "type": "uniqueValue",
     "field1": "CLASSIFICACIO",
     "defaultSymbol": {
      "type": "esriSFS",
      "style": "esriSFSSolid",
      "color": [
       130,
       130,
       130,
       255
      ],
      "outline": {
       "type": "esriSLS",
       "style": "esriSLSSolid",
       "color": [
        110,
        110,
        110,
        255
       ],
       "width": 0.7
      }
     },
     "defaultLabel": "<all other values>",
     "uniqueValueGroups": [
      {
       "heading": "Classificació",
       "classes": [
        {
         "label": "DMSP",
         "description": "DMSP",
         "symbol": {
          "type": "esriSFS",
          "style": "esriSFSSolid",
          "color": [
           210,
           80,
           230,
           255
          ],
          "outline": {
           "type": "esriSLS",
           "style": "esriSLSSolid",
           "color": [
            110,
            110,
            110,
            255
           ],
           "width": 0.7
          }
         },
         "values": [
          [
           "DMSP"
          ]
         ]
        },
        {
         "label": "DMUP",
         "description": "DMUP",
         "symbol": {
          "type": "esriSFS",
          "style": "esriSFSSolid",
          "color": [
           45,
           34,
           128,
           255
          ],
          "outline": null
         },
         "values": [
          [
           "DMUP"
          ]
         ]
        },
        {
         "label": "P",
         "description": "P",
         "symbol": {
          "type": "esriSFS",
          "style": "esriSFSSolid",
          "color": [
           250,
           95,
           98,
           255
          ],
          "outline": {
           "type": "esriSLS",
           "style": "esriSLSSolid",
           "color": [
            110,
            110,
            110,
            255
           ],
           "width": 0.7
          }
         },
         "values": [
          [
           "P"
          ]
         ]
        },
        {
         "label": "SV",
         "description": "SV",
         "symbol": {
          "type": "esriSFS",
          "style": "esriSFSSolid",
          "color": [
           58,
           135,
           133,
           255
          ],
          "outline": {
           "type": "esriSLS",
           "style": "esriSLSSolid",
           "color": [
            110,
            110,
            110,
            255
           ],
           "width": 0.7
          }
         },
         "values": [
          [
           "<Null>"
          ]
         ]
        }
       ]
      }
     ],
     "uniqueValueInfos": [
      {
       "symbol": {
        "type": "esriSFS",
        "style": "esriSFSSolid",
        "color": [
         210,
         80,
         230,
         255
        ],
        "outline": {
         "type": "esriSLS",
         "style": "esriSLSSolid",
         "color": [
          110,
          110,
          110,
          255
         ],
         "width": 0.7
        }
       },
       "value": "DMSP",
       "label": "DMSP"
      },
      {
       "symbol": {
        "type": "esriSFS",
        "style": "esriSFSSolid",
        "color": [
         45,
         34,
         128,
         255
        ],
        "outline": null
       },
       "value": "DMUP",
       "label": "DMUP"
      },
      {
       "symbol": {
        "type": "esriSFS",
        "style": "esriSFSSolid",
        "color": [
         250,
         95,
         98,
         255
        ],
        "outline": {
         "type": "esriSLS",
         "style": "esriSLSSolid",
         "color": [
          110,
          110,
          110,
          255
         ],
         "width": 0.7
        }
       },
       "value": "P",
       "label": "P"
      },
      {
       "symbol": {
        "type": "esriSFS",
        "style": "esriSFSSolid",
        "color": [
         58,
         135,
         133,
         255
        ],
        "outline": {
         "type": "esriSLS",
         "style": "esriSLSSolid",
         "color": [
          110,
          110,
          110,
          255
         ],
         "width": 0.7
        }
       },
       "value": "<Null>",
       "label": "SV"
      }
     ],
     "fieldDelimiter": ",",
     "authoringInfo": {
      "colorRamp": {
       "type": "multipart",
       "colorRamps": [
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          128,
          60,
          63,
          255
         ],
         "toColor": [
          128,
          60,
          63,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          46,
          161,
          40,
          255
         ],
         "toColor": [
          46,
          161,
          40,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          55,
          43,
          166,
          255
         ],
         "toColor": [
          55,
          43,
          166,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          57,
          144,
          150,
          255
         ],
         "toColor": [
          57,
          144,
          150,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          173,
          136,
          40,
          255
         ],
         "toColor": [
          173,
          136,
          40,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          173,
          45,
          143,
          255
         ],
         "toColor": [
          173,
          45,
          143,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          73,
          100,
          163,
          255
         ],
         "toColor": [
          73,
          100,
          163,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          63,
          140,
          89,
          255
         ],
         "toColor": [
          63,
          140,
          89,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          161,
          81,
          43,
          255
         ],
         "toColor": [
          161,
          81,
          43,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          106,
          130,
          29,
          255
         ],
         "toColor": [
          106,
          130,
          29,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          126,
          81,
          168,
          255
         ],
         "toColor": [
          126,
          81,
          168,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          130,
          97,
          61,
          255
         ],
         "toColor": [
          130,
          97,
          61,
          255
         ]
        },
        {
         "type": "algorithmic",
         "algorithm": "esriCIELabAlgorithm",
         "fromColor": [
          166,
          36,
          54,
          255
         ],
         "toColor": [
          166,
          36,
          54,
          255
         ]
        }
       ]
      }
     }
    },
    "scaleSymbols": true,
    "transparency": 0,
    "labelingInfo": null
   },
   "hasM": false,
   "hasZ": false,
   "allowGeometryUpdates": true,
   "allowTrueCurvesUpdates": true,
   "onlyAllowTrueCurveUpdatesByTrueCurveClients": true,
   "hasAttachments": false,
   "supportsApplyEditsWithGlobalIds": false,
   "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
   "objectIdField": "OBJECTID",
   "globalIdField": "",
   "displayField": "CLASSIFICACIO",
   "typeIdField": "CLASSIFICACIO",
   "subtypeField": "",
   "fields": [
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "OBJECTID",
     "domain": null,
     "editable": false,
     "nullable": false,
     "defaultValue": null,
     "modelName": "OBJECTID"
    },
    {
     "name": "PERIMETER",
     "type": "esriFieldTypeDouble",
     "alias": "Perímetre",
     "domain": null,
     "editable": true,
     "required": true,
     "nullable": true,
     "defaultValue": null,
     "modelName": "PERIMETER"
    },
    {
     "name": "PATRIMONI_",
     "type": "esriFieldTypeInteger",
     "alias": "Patrimoni",
     "domain": null,
     "editable": true,
     "required": true,
     "nullable": true,
     "defaultValue": null,
     "modelName": "PATRIMONI_"
    },
    {
     "name": "PATRIMONI_ID",
     "type": "esriFieldTypeInteger",
     "alias": "Id de patrimoni",
     "domain": null,
     "editable": true,
     "required": true,
     "nullable": true,
     "defaultValue": null,
     "modelName": "PATRIMONI_ID"
    },
    {
     "name": "CLASSIFICACIO",
     "type": "esriFieldTypeString",
     "alias": "Classificació",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 50,
     "defaultValue": null,
     "modelName": "CLASSIFICACIO"
    },
    {
     "name": "ELEMENT",
     "type": "esriFieldTypeString",
     "alias": "Element",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 10,
     "defaultValue": "DESCONEGUT",
     "modelName": "ELEMENT"
    },
    {
     "name": "Shape__Area",
     "type": "esriFieldTypeDouble",
     "alias": "Àrea",
     "domain": null,
     "editable": false,
     "required": true,
     "nullable": true,
     "defaultValue": null,
     "modelName": "SHAPE.AREA"
    }
   ],
   "geometryField": {
    "name": "SHAPE",
    "type": "esriFieldTypeGeometry",
    "alias": "Shape",
    "domain": null,
    "editable": true,
    "nullable": true,
    "defaultValue": null,
    "modelName": "Shape"
   },
   "indexes": [
    {
     "name": "R811_SDE_ROWID_UK",
     "fields": "OBJECTID",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    },
    {
     "name": "A790_IX1",
     "fields": "SHAPE",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    }
   ],
   "datesInUnknownTimezone": false,
   "dateFieldsTimeReference": {
    "timeZone": "UTC",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "types": [
    {
     "id": "DMSP",
     "name": "DMSP",
     "domains": {},
     "templates": [
      {
       "name": "DMSP",
       "description": "",
       "prototype": {
        "attributes": {
         "PATRIMONI_ID": null,
         "ELEMENT": "DESCONEGUT",
         "PERIMETER": null,
         "PATRIMONI_": null,
         "CLASSIFICACIO": "DMSP"
        }
       },
       "drawingTool": "esriFeatureEditToolPolygon"
      }
     ]
    },
    {
     "id": "DMUP",
     "name": "DMUP",
     "domains": {},
     "templates": [
      {
       "name": "DMUP",
       "description": "",
       "prototype": {
        "attributes": {
         "PATRIMONI_ID": null,
         "ELEMENT": "DESCONEGUT",
         "PERIMETER": null,
         "PATRIMONI_": null,
         "CLASSIFICACIO": "DMUP"
        }
       },
       "drawingTool": "esriFeatureEditToolPolygon"
      }
     ]
    },
    {
     "id": "P",
     "name": "P",
     "domains": {},
     "templates": [
      {
       "name": "P",
       "description": "",
       "prototype": {
        "attributes": {
         "PATRIMONI_ID": null,
         "ELEMENT": "DESCONEGUT",
         "PERIMETER": null,
         "PATRIMONI_": null,
         "CLASSIFICACIO": "P"
        }
       },
       "drawingTool": "esriFeatureEditToolPolygon"
      }
     ]
    },
    {
     "id": null,
     "name": "SV",
     "domains": {},
     "templates": [
      {
       "name": "SV",
       "description": "",
       "prototype": {
        "attributes": {
         "PATRIMONI_ID": null,
         "ELEMENT": "DESCONEGUT",
         "PERIMETER": null,
         "PATRIMONI_": null,
         "CLASSIFICACIO": "<Null>"
        }
       },
       "drawingTool": "esriFeatureEditToolPolygon"
      }
     ]
    }
   ],
   "templates": [],
   "maxRecordCount": 2000,
   "supportedQueryFormats": "JSON, geoJSON, PBF",
   "supportedExportFormats": "sqlite,filegdb,shapefile,csv,geojson",
   "capabilities": "Query,Create,Update,Delete,Uploads,Editing",
   "useStandardizedQueries": true,
   "bigIntegerRestrictedTo53Bits": true,
   "supportedSpatialRelationships": [
    "esriSpatialRelIntersects",
    "esriSpatialRelContains",
    "esriSpatialRelCrosses",
    "esriSpatialRelEnvelopeIntersects",
    "esriSpatialRelIndexIntersects",
    "esriSpatialRelOverlaps",
    "esriSpatialRelTouches",
    "esriSpatialRelWithin",
    "esriSpatialRelRelation"
   ],
   "standardMaxRecordCount": 4000,
   "tileMaxRecordCount": 4000,
   "standardMaxRecordCountNoGeometry": 32000,
   "maxRecordCountFactor": 1,
   "serviceItemId": "f7702198e64440e4ba3ce73faa02a1aa"
  }
 ],
 "tables": [
  {
   "currentVersion": 11.2,
   "cimVersion": "3.2.0",
   "id": 6,
   "name": "Registres al GPA",
   "type": "Table",
   "description": "",
   "copyrightText": "",
   "editFieldsInfo": null,
   "ownershipBasedAccessControlForFeatures": null,
   "syncCanReturnChanges": false,
   "relationships": [
    {
     "id": 0,
     "name": "SDE.Centres_patrimoni",
     "relatedTableId": 1,
     "cardinality": "esriRelCardinalityOneToMany",
     "role": "esriRelRoleDestination",
     "keyField": "CENTRO",
     "composite": false,
     "catalogID": "{7857A2FF-7BF4-4D96-A7A9-F8D85D4F2AB9}"
    }
   ],
   "isDataVersioned": true,
   "isDataArchived": false,
   "isDataBranchVersioned": false,
   "isDataReplicaTracked": false,
   "isCoGoEnabled": false,
   "supportsRollbackOnFailureParameter": false,
   "archivingInfo": {
    "supportsQueryWithHistoricMoment": false,
    "startArchivingMoment": -1
   },
   "supportsStatistics": true,
   "supportsExceedsLimitStatistics": true,
   "supportsAdvancedQueries": true,
   "supportsValidateSQL": true,
   "supportsCoordinatesQuantization": false,
   "supportsCalculate": true,
   "supportsASyncCalculate": true,
   "advancedQueryCapabilities": {
    "supportsPagination": true,
    "supportsTrueCurve": true,
    "supportsQueryWithDistance": true,
    "supportsReturningQueryExtent": true,
    "supportsStatistics": true,
    "supportsPercentileStatistics": true,
    "supportsHavingClause": true,
    "supportsOrderBy": true,
    "supportsDistinct": true,
    "supportsCountDistinct": true,
    "supportsAdvancedQueryRelated": true,
    "supportsQueryRelatedPagination": true,
    "supportsCurrentUserQueries": true,
    "supportsQueryWithResultType": true,
    "supportsReturningGeometryCentroid": false,
    "supportsSqlExpression": true,
    "supportsLod": false,
    "supportsQueryWithLodSR": false,
    "supportsQueryAnalytic": true
   },
   "advancedQueryAnalyticCapabilities": {
    "supportsLinearRegression": true,
    "supportsAsync": false,
    "supportsPercentileAnalytic": true
   },
   "advancedEditingCapabilities": {
    "supportedSqlFormatsInCalculate": [
     "standard"
    ],
    "supportsAsyncApplyEdits": true,
    "supportsApplyEditsbyUploadID": true,
    "supportedApplyEditsUploadIDFormats": "JSON"
   },
   "hasMetadata": true,
   "hasAttachments": false,
   "supportsApplyEditsWithGlobalIds": false,
   "htmlPopupType": "esriServerHTMLPopupTypeNone",
   "objectIdField": "OBJECTID",
   "globalIdField": "",
   "displayField": "DESCRIPCION",
   "typeIdField": "",
   "subtypeField": "",
   "fields": [
    {
     "name": "BIEN",
     "type": "esriFieldTypeInteger",
     "alias": "Bé",
     "domain": null,
     "editable": true,
     "nullable": true,
     "defaultValue": null,
     "modelName": "BIEN"
    },
    {
     "name": "DESCRIPCION",
     "type": "esriFieldTypeString",
     "alias": "Descripció",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 255,
     "defaultValue": null,
     "modelName": "DESCRIPCION"
    },
    {
     "name": "DATA_ALTA",
     "type": "esriFieldTypeDate",
     "alias": "Data alta",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 8,
     "defaultValue": null,
     "modelName": "DATA_ALTA"
    },
    {
     "name": "CLASIFICACIÓN",
     "type": "esriFieldTypeString",
     "alias": "Classificació",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 15,
     "defaultValue": null,
     "modelName": "CLASIFICACIÓN"
    },
    {
     "name": "NATURALEZA",
     "type": "esriFieldTypeString",
     "alias": "Naturalesa",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 5,
     "defaultValue": null,
     "modelName": "NATURALEZA"
    },
    {
     "name": "DESCRIPCIÓN_NATURALEZA",
     "type": "esriFieldTypeString",
     "alias": "Descripció Naturalesa",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 60,
     "defaultValue": null,
     "modelName": "DESCRIPCIÓN_NATURALEZA"
    },
    {
     "name": "TIPO_ADQUISICIÓN",
     "type": "esriFieldTypeString",
     "alias": "Tipus adquisició",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 3,
     "defaultValue": null,
     "modelName": "TIPO_ADQUISICIÓN"
    },
    {
     "name": "DESCRIPCIÓN",
     "type": "esriFieldTypeString",
     "alias": "Descripció",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 60,
     "defaultValue": null,
     "modelName": "DESCRIPCIÓN"
    },
    {
     "name": "SITUACIÓN_PATRIMONIAL",
     "type": "esriFieldTypeString",
     "alias": "Situació patrimonial",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 5,
     "defaultValue": null,
     "modelName": "SITUACIÓN_PATRIMONIAL"
    },
    {
     "name": "DESCRIPCION_SITUACION",
     "type": "esriFieldTypeString",
     "alias": "Descripció situació",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 60,
     "defaultValue": null,
     "modelName": "DESCRIPCION_SITUACION"
    },
    {
     "name": "ENTIDAD",
     "type": "esriFieldTypeString",
     "alias": "Entitat",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 60,
     "defaultValue": null,
     "modelName": "ENTIDAD"
    },
    {
     "name": "EJERCICIO",
     "type": "esriFieldTypeSmallInteger",
     "alias": "Exercici",
     "domain": null,
     "editable": true,
     "nullable": true,
     "defaultValue": null,
     "modelName": "EJERCICIO"
    },
    {
     "name": "CENTRO",
     "type": "esriFieldTypeString",
     "alias": "Centre",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 10,
     "defaultValue": null,
     "modelName": "CENTRO"
    },
    {
     "name": "NOMBRE_CENTRO",
     "type": "esriFieldTypeString",
     "alias": "Nom del centre",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 100,
     "defaultValue": null,
     "modelName": "NOMBRE_CENTRO"
    },
    {
     "name": "UBICACION",
     "type": "esriFieldTypeString",
     "alias": "Ubicació",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 5,
     "defaultValue": null,
     "modelName": "UBICACION"
    },
    {
     "name": "NOMBRE_UBICACION",
     "type": "esriFieldTypeString",
     "alias": "Nom ubicació",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 50,
     "defaultValue": null,
     "modelName": "NOMBRE_UBICACION"
    },
    {
     "name": "ESPACIO",
     "type": "esriFieldTypeString",
     "alias": "Espai",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 6,
     "defaultValue": null,
     "modelName": "ESPACIO"
    },
    {
     "name": "NOMBRE_ESPACIO",
     "type": "esriFieldTypeString",
     "alias": "Nom espai",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 50,
     "defaultValue": null,
     "modelName": "NOMBRE_ESPACIO"
    },
    {
     "name": "PLANTA",
     "type": "esriFieldTypeString",
     "alias": "Planta",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 2,
     "defaultValue": null,
     "modelName": "PLANTA"
    },
    {
     "name": "NOMBRE_PLANTA",
     "type": "esriFieldTypeString",
     "alias": "Nom planta",
     "domain": null,
     "editable": true,
     "nullable": true,
     "length": 50,
     "defaultValue": null,
     "modelName": "NOMBRE_PLANTA"
    },
    {
     "name": "OBJECTID",
     "type": "esriFieldTypeOID",
     "alias": "Codi",
     "domain": null,
     "editable": false,
     "nullable": false,
     "defaultValue": null,
     "modelName": "OBJECTID"
    }
   ],
   "indexes": [
    {
     "name": "I507BIEN",
     "fields": "BIEN",
     "isAscending": true,
     "isUnique": false,
     "description": ""
    },
    {
     "name": "I507CENTRO",
     "fields": "CENTRO",
     "isAscending": true,
     "isUnique": false,
     "description": ""
    },
    {
     "name": "R444_SDE_ROWID_UK",
     "fields": "OBJECTID",
     "isAscending": true,
     "isUnique": true,
     "description": ""
    }
   ],
   "datesInUnknownTimezone": false,
   "dateFieldsTimeReference": {
    "timeZone": "UTC",
    "respectsDaylightSaving": false
   },
   "preferredTimeReference": null,
   "types": [],
   "templates": [
    {
     "name": "Registres al GPA",
     "description": "",
     "prototype": {
      "attributes": {
       "NOMBRE_PLANTA": null,
       "BIEN": null,
       "DESCRIPCION": null,
       "DATA_ALTA": null,
       "CLASIFICACIÓN": null,
       "NATURALEZA": null,
       "DESCRIPCIÓN_NATURALEZA": null,
       "TIPO_ADQUISICIÓN": null,
       "DESCRIPCIÓN": null,
       "SITUACIÓN_PATRIMONIAL": null,
       "DESCRIPCION_SITUACION": null,
       "ENTIDAD": null,
       "EJERCICIO": null,
       "CENTRO": null,
       "NOMBRE_CENTRO": null,
       "UBICACION": null,
       "NOMBRE_UBICACION": null,
       "ESPACIO": null,
       "NOMBRE_ESPACIO": null,
       "PLANTA": null
      }
     },
     "drawingTool": "esriFeatureEditToolNone"
    }
   ],
   "maxRecordCount": 2000,
   "supportedQueryFormats": "JSON, geoJSON, PBF",
   "supportedExportFormats": "sqlite,filegdb,shapefile,csv,geojson",
   "capabilities": "Query,Create,Update,Delete,Uploads,Editing",
   "useStandardizedQueries": true,
   "bigIntegerRestrictedTo53Bits": true,
   "standardMaxRecordCount": 32000,
   "tileMaxRecordCount": 2000,
   "maxRecordCountFactor": 1,
   "serviceItemId": "f7702198e64440e4ba3ce73faa02a1aa"
  }
 ]
}