{ "currentVersion": 11.5, "cimVersion": "3.5.0", "id": 1, "name": "N.º de Camas vs. Nº de Dormidas 2019", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolygon", "sourceSpatialReference": { "wkid": 3763, "latestWkid": 3763, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5623200, "falseY": -14394800, "xyUnits": 4.5026540700157917E8, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 }, "spatialReference": { "wkid": 102100, "latestWkid": 3857, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -20037700, "falseY": -30241100, "xyUnits": 1.4892314192838538E8, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "var field1 = $feature['n_camas'];\nvar field2 = $feature['dorm_ano'];\nvar hasNormField1 = false;\nvar hasNormField2 = false;\nvar normField1 = null;\nvar normField2 = null;\nif (\n IsEmpty(field1) || \n IsEmpty(field2) ||\n (hasNormField1 && (IsEmpty(normField1) || normField1 == 0)) ||\n (hasNormField2 && (IsEmpty(normField2) || normField2 == 0))\n) {\n return null; \n}\nvar value1 = IIf(hasNormField1, (field1 / normField1), field1);\nvar value2 = IIf(hasNormField2, (field2 / normField2), field2);\nvar breaks1 = [[17,314],[314.000000999999997475243,65156]];\nvar breaks2 = [[776,26612],[26612.0000010000003385358,13985262]];\nvar classCodes = [\"L\", \"H\"];\nfunction getClassCode(value, breaks) {\n var code = null;\n for (var i in breaks) {\n var info = breaks[i];\n if (value >= info[0] && value <= info[1]) {\n code = classCodes[i];\n break;\n }\n }\n return code;\n}\nvar code1 = getClassCode(value1, breaks1);\nvar code2 = getClassCode(value2, breaks2);\nvar classValue = IIf(IsEmpty(code1) || IsEmpty(code2), null, code1 + code2);\nreturn classValue;", "valueExpressionTitle": "Relationship", "uniqueValueGroups": [ { "heading": "", "classes": [ { "label": "High - High", "description": "High - High", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 0, 58, 93, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 255, 255 ], "width": 0.5 } }, "values": [ [ "HH" ] ] }, { "label": "High - Low", "description": "High - Low", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 0, 166, 81, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 255, 255 ], "width": 0.5 } }, "values": [ [ "HL" ] ] }, { "label": "Low - High", "description": "Low - High", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 253, 184, 19, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 255, 255 ], "width": 0.5 } }, "values": [ [ "LH" ] ] }, { "label": "Low - Low", "description": "Low - Low", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 178, 178, 178, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 255, 255 ], "width": 0.5 } }, "values": [ [ "LL" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 0, 58, 93, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 255, 255 ], "width": 0.5 } }, "value": "HH", "label": "High - High" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 0, 166, 81, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 255, 255 ], "width": 0.5 } }, "value": "HL", "label": "High - Low" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 253, 184, 19, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 255, 255 ], "width": 0.5 } }, "value": "LH", "label": "Low - High" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 178, 178, 178, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 255, 255 ], "width": 0.5 } }, "value": "LL", "label": "Low - Low" } ], "fieldDelimiter": ",", "authoringInfo": { "field1": { "field": "n_camas", "label": "N.º de Camas", "classBreakInfos": [ { "minValue": 17, "maxValue": 314 }, { "minValue": 314, "maxValue": 65156 } ] }, "field2": { "field": "dorm_ano", "label": "Dormidas", "classBreakInfos": [ { "minValue": 776, "maxValue": 26612 }, { "minValue": 26612, "maxValue": 13985262 } ] }, "classificationMethod": "esriClassifyQuantile", "type": "relationship", "numClasses": 2 } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "defaultVisibility": true, "extent": { "xmin": -1065884.6664202602, "ymin": 4431863.764556127, "xmax": -687067.9730044197, "ymax": 5184125.422461562, "spatialReference": { "wkid": 102100, "latestWkid": 3857, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -20037700, "falseY": -30241100, "xyUnits": 1.4892314192838538E8, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "Concelho", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "FID", "type": "esriFieldTypeOID", "alias": "FID", "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "Concelho", "type": "esriFieldTypeString", "alias": "Concelho", "length": 254, "domain": null }, { "name": "Distrito", "type": "esriFieldTypeString", "alias": "Distrito", "length": 254, "domain": null }, { "name": "NUTSIII", "type": "esriFieldTypeString", "alias": "NUTSIII", "length": 254, "domain": null }, { "name": "Areakm2", "type": "esriFieldTypeDouble", "alias": "Areakm2", "domain": null }, { "name": "DiCofre", "type": "esriFieldTypeString", "alias": "DICO", "length": 50, "domain": null }, { "name": "DiCofreDis", "type": "esriFieldTypeString", "alias": "DI", "length": 50, "domain": null }, { "name": "n_camas", "type": "esriFieldTypeDouble", "alias": "Camas", "domain": null }, { "name": "dorm_ano", "type": "esriFieldTypeDouble", "alias": "Dormidas", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "Shape", "fields": "Shape", "isAscending": true, "isUnique": false, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": false, "capabilities": "Query,Map,Data", "maxRecordCount": 2000, "maxSelectionCount": 2000, "supportsStatistics": false, "supportsExceedsLimitStatistics": false, "supportsAdvancedQueries": false, "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": 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": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": false, "serviceItemId": "e421e6dba9114ad696be5f58bd838c4d" }