{ "currentVersion": 10.91, "cimVersion": "2.9.0", "id": 1, "name": "Overall_Assessment", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolyline", "sourceSpatialReference": { "wkid": 26913, "latestWkid": 26913, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "xyUnits": 10000, "falseZ": 0, "zUnits": 1, "falseM": 0, "mUnits": 1 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "var debrisLevels = Array(2);\nvar pipeConditions = Array(2);\nvar debrisLevelMax;\nvar pipeConditionMax;\nvar dL;\nvar pC;\ndebrisLevels=Split($feature['GIS.SSCULVERTINSP_MOST_RECENT_RECORD_AND_HIGHEST_DEBRISLEVEL_AND_ULTIMATE_CONDITION_FOR_JUMPS_V.DEBRIS_LEVELS'], ',');\npipeConditions=Split($feature['GIS.SSCULVERTINSP_MOST_RECENT_RECORD_AND_HIGHEST_DEBRISLEVEL_AND_ULTIMATE_CONDITION_FOR_JUMPS_V.PIPE_CONDITIONS'], ',');\nvar c = Count(debrisLevels); // debrisLevels=['10','4'] or debrisLevels=['10'] ; // Count(pipeConditions) = Count(debrisLevels) \nif (c==2){\n var debrisLevels_nb_0 = Number(debrisLevels[0]);\n var debrisLevels_nb_1 = Number(debrisLevels[1]);\n var d = Dictionary('frst',debrisLevels_nb_0,'secd',debrisLevels_nb_1);\n var pipeConditions_nb_0 = Number(pipeConditions[0]);\n var pipeConditions_nb_1 = Number(pipeConditions[1]);\n var d_pC = Dictionary('frst_pC',pipeConditions_nb_0,'secd_pC',pipeConditions_nb_1);\n debrisLevelMax = Max([d.frst,d.secd]);\n pipeConditionMax = Max([d_pC.frst_pC,d_pC.secd_pC]);\n if (debrisLevelMax == 11){\n dL = d.frst; //corresponding to most recent, which has been ordered in the view definition. \n } else {\n dL = debrisLevelMax; \n }\n if (pipeConditionMax == 5){\n pC = d_pC.frst_pC; //corresponding to most recent, which has been ordered in the view definition.\n } else {\n pC = pipeConditionMax;\n }\n} else {\n dL = Number(debrisLevels[0]);\n pC = Number(pipeConditions[0]);\n}\n///////\nif(pC==0){ //PipeCondtion chosen as reference value for NotInspected as it is mandatory if any record exists\n return 'NotInspected'; // Needed to be isolated to capture null value as seperate legend item \n} else if ((dL>3 && dL <= 10) && pC!=4) {\n return 'CleaningNeeded';\n} else if (pC==4){\n return 'RepairNeeded';\n} else if ((dL>=1 && dL <= 3) && pC==5){\n return 'Resolved';\n} else if (pC!=4 && dL==11){\n return 'Resolved';\n} else {\n return 'NoConcern'\n}", "valueExpressionTitle": "Overall_Assessment", "uniqueValueInfos": [ { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 55, 166, 0, 255 ], "width": 2.5 }, "value": "NotInspected", "label": "NotInspected" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 115, 255, 255 ], "width": 2.5 }, "value": "CleaningNeeded", "label": "CleaningNeeded" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 200, 255 ], "width": 2.5 }, "value": "RepairNeeded", "label": "RepairNeeded" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 170, 0, 255 ], "width": 2.5 }, "value": "Resolved", "label": "Resolved" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 176, 176, 176, 255 ], "width": 2.5 }, "value": "NoConcern", "label": "NoConcern" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 220, 189, 252, 255 ], "toColor": [ 220, 189, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 252, 179, 255 ], "toColor": [ 182, 252, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 215, 187, 255 ], "toColor": [ 252, 215, 187, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 242, 252, 255 ], "toColor": [ 182, 242, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 184, 202, 255 ], "toColor": [ 252, 184, 202, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 204, 252, 220, 255 ], "toColor": [ 204, 252, 220, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 251, 252, 179, 255 ], "toColor": [ 251, 252, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 207, 216, 252, 255 ], "toColor": [ 207, 216, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 179, 238, 255 ], "toColor": [ 252, 179, 238, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 249, 215, 255 ], "toColor": [ 252, 249, 215, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 248, 212, 252, 255 ], "toColor": [ 248, 212, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 221, 252, 194, 255 ], "toColor": [ 221, 252, 194, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 215, 252, 244, 255 ], "toColor": [ 215, 252, 244, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "defaultVisibility": true, "extent": { "xmin": 515545.6023, "ymin": 5582040.238, "xmax": 536894.1556, "ymax": 5600244.1, "spatialReference": { "wkid": 26913, "latestWkid": 26913, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "xyUnits": 8000, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "GIS.SSCULVERTINSPECTIONMAINTENANCE_LINE_SR.JUMP_GISID_FK", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "GIS.SSCULVERTINSPECTIONMAINTENANCE_LINE_SR.OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "GIS.SSCULVERTINSPECTIONMAINTENANCE_LINE_SR.JUMP_GISID_FK", "type": "esriFieldTypeInteger", "alias": "JUMP_GISID_FK", "domain": null }, { "name": "GIS.SSCULVERTINSPECTIONMAINTENANCE_LINE_SR.GLOBALID", "type": "esriFieldTypeGlobalID", "alias": "GLOBALID", "length": 38, "domain": null }, { "name": "GIS.SSCULVERTINSPECTIONMAINTENANCE_LINE_SR.SHAPE", "type": "esriFieldTypeGeometry", "alias": "SHAPE", "domain": null }, { "name": "GIS.SSCULVERTINSPECTIONMAINTENANCE_LINE_SR.JUMP_GISID_TYP", "type": "esriFieldTypeInteger", "alias": "JUMP_GISID_TYP", "domain": null }, { "name": "GIS.SSCULVERTINSP_MOST_RECENT_RECORD_AND_HIGHEST_DEBRISLEVEL_AND_ULTIMATE_CONDITION_FOR_JUMPS_V.JUMP_GISID_TYP", "type": "esriFieldTypeInteger", "alias": "JUMP_GISID_TYP", "domain": null }, { "name": "GIS.SSCULVERTINSP_MOST_RECENT_RECORD_AND_HIGHEST_DEBRISLEVEL_AND_ULTIMATE_CONDITION_FOR_JUMPS_V.DEBRIS_LEVELS", "type": "esriFieldTypeString", "alias": "DEBRIS_LEVELS", "length": 4000, "domain": null }, { "name": "GIS.SSCULVERTINSP_MOST_RECENT_RECORD_AND_HIGHEST_DEBRISLEVEL_AND_ULTIMATE_CONDITION_FOR_JUMPS_V.PIPE_CONDITIONS", "type": "esriFieldTypeString", "alias": "PIPE_CONDITIONS", "length": 4000, "domain": null }, { "name": "GIS.SSCULVERTINSP_MOST_RECENT_RECORD_AND_HIGHEST_DEBRISLEVEL_AND_ULTIMATE_CONDITION_FOR_JUMPS_V.UPDATE_DATES", "type": "esriFieldTypeString", "alias": "UPDATE_DATES", "length": 4000, "domain": null } ], "geometryField": { "name": "GIS.SSCULVERTINSPECTIONMAINTENANCE_LINE_SR.SHAPE", "type": "esriFieldTypeGeometry", "alias": "SHAPE" }, "indexes": [ { "name": "R2399819_SDE_ROWID_UK", "fields": "GIS.SSCULVERTINSPECTIONMAINTENANCE_LINE_SR.OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "UUID_2399819", "fields": "GIS.SSCULVERTINSPECTIONMAINTENANCE_LINE_SR.GLOBALID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "A6676_IX1", "fields": "GIS.SSCULVERTINSPECTIONMAINTENANCE_LINE_SR.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, "supportsPagination": true, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsTrueCurve": true, "supportsQueryWithDatumTransformation": true, "supportsReturningQueryExtent": true, "supportsQueryWithDistance": true, "supportsSqlExpression": true, "supportsTimeRelation": true, "supportsSqlFormat": false, "supportsQueryAnalytic": true }, "supportsDatumTransformation": true, "advancedQueryAnalyticCapabilities": { "supportsLinearRegression": true, "supportsAsync": false, "supportsPercentileAnalytic": true }, "dateFieldsTimeReference": { "timeZone": "Canada Central Standard Time", "respectsDaylightSaving": false }, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasGeometryProperties": true, "geometryProperties": { "shapeLengthFieldName": "SHAPE.LEN", "units": "esriMeters" }, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true }