{ "currentVersion": 11.3, "cimVersion": "3.3.0", "id": 5, "name": "Rega quinzenal", "type": "Feature Layer", "description": "Censos2001", "geometryType": "esriGeometryPolygon", "sourceSpatialReference": { "wkid": 3763, "latestWkid": 3763, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5623200, "falseY": -14394800, "xyUnits": 4.5026540700157917E8, "falseZ": 0, "zUnits": 1, "falseM": 0, "mUnits": 1 }, "copyrightText": "INE", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "var hoje = Now()\nvar dataCampo = $feature.REGA_QUINZENA\n\nif (IsEmpty(dataCampo)) {\n return \"Sem data\"\n}\n\n// Mesmo mês e ano?\nif (Year(dataCampo) == Year(hoje) && Month(dataCampo) == Month(hoje)) {\n \n var diaHoje = Day(hoje)\n var diaCampo = Day(dataCampo)\n \n if (diaHoje <= 15 && diaCampo <= 15) {\n return \"Quinzena atual\"\n } else if (diaHoje > 15 && diaCampo > 15) {\n return \"Quinzena atual\"\n } else {\n return \"Outra quinzena (este mês)\"\n }\n \n} else {\n return \"Outro mês\"\n}", "valueExpressionTitle": "Rega quinzenal", "uniqueValueGroups": [ { "heading": "Rega quinzenal", "classes": [ { "label": "Quinzena atual", "description": "Quinzena atual", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 255, 255, 0, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "values": [ [ "Quinzena atual" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 255, 255, 0, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "value": "Quinzena atual", "label": "Quinzena atual" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 252, 202, 255 ], "toColor": [ 252, 252, 202, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 184, 179, 252, 255 ], "toColor": [ 184, 179, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 187, 208, 255 ], "toColor": [ 252, 187, 208, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 189, 242, 252, 255 ], "toColor": [ 189, 242, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 252, 202, 255 ], "toColor": [ 182, 252, 202, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 207, 189, 255 ], "toColor": [ 252, 207, 189, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 235, 210, 252, 255 ], "toColor": [ 235, 210, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 210, 252, 255 ], "toColor": [ 179, 210, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 184, 251, 255 ], "toColor": [ 252, 184, 251, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 213, 252, 179, 255 ], "toColor": [ 213, 252, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 194, 252, 233, 255 ], "toColor": [ 194, 252, 233, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 239, 215, 255 ], "toColor": [ 252, 239, 215, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 210, 225, 252, 255 ], "toColor": [ 210, 225, 252, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 47.126435, "labelingInfo": null }, "defaultVisibility": true, "extent": { "xmin": -91044.91959999967, "ymin": -124767.8882999979, "xmax": -79729.98209999967, "ymax": -111954.44239999726, "spatialReference": { "wkid": 3763, "latestWkid": 3763, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5623200, "falseY": -14394800, "xyUnits": 10000, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "DESIGNACAO", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "Object ID", "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "DESIGNACAO", "type": "esriFieldTypeString", "alias": "DESIGNACAO", "length": 30, "domain": { "type": "codedValue", "name": "INE01_LUGAR_D", "description": "Lugar INE 2001", "codedValues": [ { "name": "ÁLAMO", "code": "ÁLAMO" }, { "name": "ALDEIA DE PAIO PIRES", "code": "ALDEIA DE PAIO PIRES" }, { "name": "ALTO DO MOINHO", "code": "ALTO DO MOINHO" }, { "name": "ALTO DOS BONECOS", "code": "ALTO DOS BONECOS" }, { "name": "AMORA", "code": "AMORA" }, { "name": "ARRENTELA", "code": "ARRENTELA" }, { "name": "BACELOS DE GAIO", "code": "BACELOS DE GAIO" }, { "name": "BELVERDE", "code": "BELVERDE" }, { "name": "CASAL DE SANTO ANTÓNIO", "code": "CASAL DE SANTO ANTÓNIO" }, { "name": "CASAL DO MARCO", "code": "CASAL DO MARCO" }, { "name": "CAVADAS", "code": "CAVADAS" }, { "name": "CAVAQUINHAS", "code": "CAVAQUINHAS" }, { "name": "CORROIOS", "code": "CORROIOS" }, { "name": "CRUZ DE PAU", "code": "CRUZ DE PAU" }, { "name": "FARINHEIRAS", "code": "FARINHEIRAS" }, { "name": "FERNÃO FERRO", "code": "FERNÃO FERRO" }, { "name": "FLOR DA MATA", "code": "FLOR DA MATA" }, { "name": "FOGUETEIRO", "code": "FOGUETEIRO" }, { "name": "FOROS DA CATRAPONA", "code": "FOROS DA CATRAPONA" }, { "name": "FOROS DE AMORA", "code": "FOROS DE AMORA" }, { "name": "LARANJEIRAS", "code": "LARANJEIRAS" }, { "name": "LOBATEIRA", "code": "LOBATEIRA" }, { "name": "MARISOL", "code": "MARISOL" }, { "name": "MIRATEJO", "code": "MIRATEJO" }, { "name": "MURTINHEIRA", "code": "MURTINHEIRA" }, { "name": "PAIVAS", "code": "PAIVAS" }, { "name": "PINHAL DE FRADES", "code": "PINHAL DE FRADES" }, { "name": "PINHAL DO CONDE DA CUNHA", "code": "PINHAL DO CONDE DA CUNHA" }, { "name": "PINHAL DO GENERAL", "code": "PINHAL DO GENERAL" }, { "name": "PINHAL DO VIDAL", "code": "PINHAL DO VIDAL" }, { "name": "QUINTA DA ANIZA", "code": "QUINTA DA ANIZA" }, { "name": "QUINTA DA BOA HORA", "code": "QUINTA DA BOA HORA" }, { "name": "QUINTA DA COURELA", "code": "QUINTA DA COURELA" }, { "name": "QUINTA DA GALEGA", "code": "QUINTA DA GALEGA" }, { "name": "QUINTA DA PRINCESA", "code": "QUINTA DA PRINCESA" }, { "name": "QUINTA DA QUEIMADA", "code": "QUINTA DA QUEIMADA" }, { "name": "QUINTA DA TRINDADE", "code": "QUINTA DA TRINDADE" }, { "name": "QUINTA DE CIMA", "code": "QUINTA DE CIMA" }, { "name": "QUINTA DE SÃO NICOLAU", "code": "QUINTA DE SÃO NICOLAU" }, { "name": "QUINTA DO BRASILEIRO", "code": "QUINTA DO BRASILEIRO" }, { "name": "QUINTA DO CABRAL", "code": "QUINTA DO CABRAL" }, { "name": "QUINTA DO OUTEIRO", "code": "QUINTA DO OUTEIRO" }, { "name": "QUINTA DO PÉ LEVE", "code": "QUINTA DO PÉ LEVE" }, { "name": "QUINTA DO TEIXEIRA", "code": "QUINTA DO TEIXEIRA" }, { "name": "REDONDOS", "code": "REDONDOS" }, { "name": "SANTA MARTA DE CORROIOS", "code": "SANTA MARTA DE CORROIOS" }, { "name": "SANTA MARTA DO PINHAL", "code": "SANTA MARTA DO PINHAL" }, { "name": "SEIXAL", "code": "SEIXAL" }, { "name": "SOUTELO", "code": "SOUTELO" }, { "name": "TORRE DA MARINHA", "code": "TORRE DA MARINHA" }, { "name": "VALADARES", "code": "VALADARES" }, { "name": "VALE DA ROMEIRA", "code": "VALE DA ROMEIRA" }, { "name": "VALE DE CARROS", "code": "VALE DE CARROS" }, { "name": "VALE DE CUCENA", "code": "VALE DE CUCENA" }, { "name": "VALE DE GATOS", "code": "VALE DE GATOS" }, { "name": "VALE DE MILHAÇOS", "code": "VALE DE MILHAÇOS" }, { "name": "VALE DE ROLAS", "code": "VALE DE ROLAS" }, { "name": "VERDIZELA", "code": "VERDIZELA" }, { "name": "SEM LUGAR", "code": "SEM LUGAR" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "FREGUESIA_ID", "type": "esriFieldTypeString", "alias": "FREGUESIA_ID", "length": 6, "domain": null }, { "name": "Shape.STLength()", "type": "esriFieldTypeDouble", "alias": "Shape_Length", "domain": null }, { "name": "Shape.STArea()", "type": "esriFieldTypeDouble", "alias": "Shape_Area", "domain": null }, { "name": "REGA_ID", "type": "esriFieldTypeString", "alias": "REGA_ID", "length": 6, "domain": null }, { "name": "REGA_MES", "type": "esriFieldTypeDate", "alias": "REGA_MES", "length": 8, "domain": null }, { "name": "REGA_QUINZENA", "type": "esriFieldTypeDate", "alias": "REGA_QUINZENA", "length": 8, "domain": null }, { "name": "REGA_SEMANA", "type": "esriFieldTypeDate", "alias": "REGA_SEMANA", "length": 8, "domain": null }, { "name": "N_ARV_REGA_SEMANAl", "type": "esriFieldTypeSmallInteger", "alias": "N_ARV_REGA_SEMANAl", "domain": null }, { "name": "N_ARV_REGA_QUINZENAl", "type": "esriFieldTypeSmallInteger", "alias": "N_ARV_REGA_QUINZENAl", "domain": null }, { "name": "N_ARV_REGA_MENSAL", "type": "esriFieldTypeSmallInteger", "alias": "N_ARV_REGA_MENSAL", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "R1471_pk", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "S1217_idx", "fields": "Shape", "isAscending": true, "isUnique": true, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": false, "capabilities": "Map,Query,Data", "maxRecordCount": 2000, "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": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasGeometryProperties": true, "geometryProperties": { "shapeAreaFieldName": "Shape.STArea()", "shapeLengthFieldName": "Shape.STLength()", "units": "esriMeters", "mapUnits": {"uwkid": 9001} }, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "9377649a8ddf4fa892c5cf59c4cf5e07" }