{ "currentVersion": 11.5, "cimVersion": "3.5.0", "id": 0, "name": "Street Lights", "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": false, "isDataArchived": false, "infoInEstimates": [ "extent", "count" ], "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, "hasContingentValuesDefinition": false, "supportsDatumTransformation": true, "advancedQueryCapabilities": { "supportsPagination": true, "supportsQueryWithDistance": true, "supportsReturningQueryExtent": true, "supportsStatistics": true, "supportsPercentileStatistics": true, "supportsHavingClause": true, "supportsOrderBy": true, "supportsDistinct": true, "supportsCountDistinct": true, "supportsAdvancedQueryRelated": true, "supportsQueryRelatedPagination": true, "supportsCurrentUserQueries": true, "supportsFullTextSearch": true, "fullTextSearchCapabilities": { "supportsSearchOperator": true, "supportsOperator": false, "supportsSqlExpressionInFullText": true }, "fullTextSearchableFields": [], "supportsQueryAttachments": true, "supportsQueryAttachmentsWithReturnUrl": true, "supportsQueryWithResultType": true, "supportsReturningGeometryCentroid": false, "supportsReturningGeometryEnvelope": false, "supportsSqlExpression": true, "supportsQueryWithDatumTransformation": true, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsQueryAnalytic": true, "supportsQueryWithCacheHint": false }, "advancedQueryAnalyticCapabilities": { "supportsLinearRegression": true, "supportsAsync": true, "supportsPercentileAnalytic": true }, "advancedEditingCapabilities": { "supportedSqlFormatsInCalculate": [ "standard" ], "supportsAsyncApplyEdits": true, "supportsApplyEditsbyUploadID": true, "supportedApplyEditsUploadIDFormats": "JSON,PBF" }, "hasMetadata": true, "extent": { "xmin": 522322.48799982824, "ymin": 4714270.10661718, "xmax": 570886.2668994671, "ymax": 4760814.241717653, "spatialReference": { "wkt2": "PROJCRS[\"NAD83 UTM, Zone 17 North, Meter\",BASEGEOGCRS[\"unnamed\",DATUM[\"WGS84\",ELLIPSOID[\"WGS84\",6378137.0,298.257223563,LENGTHUNIT[\"Meter\",1.0]]],PRIMEM[\"Greenwich\",0.0,ANGLEUNIT[\"Degree\",0.0174532925199433]],CS[ellipsoidal,2],ANGLEUNIT[\"Degree\",0.0174532925199433]],CONVERSION[\"Transverse_Mercator\",METHOD[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",500000.0,LENGTHUNIT[\"Meter\",1.0]],PARAMETER[\"False_Northing\",0.0,LENGTHUNIT[\"Meter\",1.0]],PARAMETER[\"Central_Meridian\",-81.0,ANGLEUNIT[\"Degree\",0.0174532925199433]],PARAMETER[\"Scale_Factor\",0.9996,SCALEUNIT[\"Unity\",1.0]],PARAMETER[\"Latitude_Of_Origin\",0.0,ANGLEUNIT[\"Degree\",0.0174532925199433]]],CS[Cartesian,2],AXIS[\"Easting (X)\",east,ORDER[1]],AXIS[\"Northing (Y)\",north,ORDER[2]],LENGTHUNIT[\"Meter\",1.0]]", "wkt": "PROJCS[\"NAD83 UTM, Zone 17 North, Meter\",GEOGCS[\"unnamed\",DATUM[\"WGS84\",SPHEROID[\"WGS84\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-81.0],PARAMETER[\"Scale_Factor\",0.9996],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]", "xyTolerance": 0.001, "zTolerance": 2, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "xyUnits": 4.504455473910538E8, "falseZ": 0, "zUnits": 1, "falseM": -100000, "mUnits": 10000 } }, "spatialReference": { "wkt2": "PROJCRS[\"NAD83 UTM, Zone 17 North, Meter\",BASEGEOGCRS[\"unnamed\",DATUM[\"WGS84\",ELLIPSOID[\"WGS84\",6378137.0,298.257223563,LENGTHUNIT[\"Meter\",1.0]]],PRIMEM[\"Greenwich\",0.0,ANGLEUNIT[\"Degree\",0.0174532925199433]],CS[ellipsoidal,2],ANGLEUNIT[\"Degree\",0.0174532925199433]],CONVERSION[\"Transverse_Mercator\",METHOD[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",500000.0,LENGTHUNIT[\"Meter\",1.0]],PARAMETER[\"False_Northing\",0.0,LENGTHUNIT[\"Meter\",1.0]],PARAMETER[\"Central_Meridian\",-81.0,ANGLEUNIT[\"Degree\",0.0174532925199433]],PARAMETER[\"Scale_Factor\",0.9996,SCALEUNIT[\"Unity\",1.0]],PARAMETER[\"Latitude_Of_Origin\",0.0,ANGLEUNIT[\"Degree\",0.0174532925199433]]],CS[Cartesian,2],AXIS[\"Easting (X)\",east,ORDER[1]],AXIS[\"Northing (Y)\",north,ORDER[2]],LENGTHUNIT[\"Meter\",1.0]]", "wkt": "PROJCS[\"NAD83 UTM, Zone 17 North, Meter\",GEOGCS[\"unnamed\",DATUM[\"WGS84\",SPHEROID[\"WGS84\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",-81.0],PARAMETER[\"Scale_Factor\",0.9996],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]", "xyTolerance": 0.001, "zTolerance": 2, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "xyUnits": 4.504455473910538E8, "falseZ": 0, "zUnits": 1, "falseM": -100000, "mUnits": 10000 }, "sourceSpatialReference": { "wkid": 26917, "latestWkid": 26917, "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", "valueExpression": "// Get the current date\nvar today = Now()\n\n// Extract the current month and year\nvar currentMonth = Month(today)\nvar currentYear = Year(today)\n\n// Define the start and end of the periods\nvar startOfWinterPeriod = Date(currentYear, 11, 1)\nvar endOfWinterPeriod = Date(currentYear + 1, 3, 1)\n\nvar startOfSpringPeriod = Date(currentYear, 3, 1)\nvar endOfSpringPeriod = Date(currentYear, 11, 1)\n\n// Extract the inspection date\nvar inspectionDate = $feature.Date_Inspected\nvar inspectionMonth = Month(inspectionDate)\nvar inspectionYear = Year(inspectionDate)\n\n// Check if the current date is within the November to March period\nif (today >= startOfWinterPeriod && today < endOfWinterPeriod) {\n // Check if the inspection was in November or December of the current year\n if (inspectionYear == currentYear && (inspectionMonth == 11 || inspectionMonth == 12)) {\n return \"Updated\"\n } else {\n return \"Not Updated\"\n }\n}\n// Check if the current date is within the March to October period\nelse if (today >= startOfSpringPeriod && today < endOfSpringPeriod) {\n // Check if the inspection was in March, April, or May of the current year\n if (inspectionYear == currentYear && (inspectionMonth == 3 || inspectionMonth == 4 || inspectionMonth == 5)) {\n return \"Updated\"\n } else {\n return \"Not Updated\"\n }\n} else {\n return \"Outside Period\"\n}", "valueExpressionTitle": "Custom", "defaultSymbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 130, 130, 130, 255 ], "size": 4, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.7 } }, "defaultLabel": "", "uniqueValueGroups": [ { "heading": "Custom", "classes": [ { "label": "Not Updated", "description": "Not Updated", "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 255, 255, 0, 255 ], "size": 10, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.6 } }, "values": [ [ "Not Updated" ] ] }, { "label": "Updated", "description": "Updated", "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 56, 168, 0, 255 ], "size": 10, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.6 } }, "values": [ [ "Updated" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 255, 255, 0, 255 ], "size": 10, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.6 } }, "value": "Not Updated", "label": "Not Updated" }, { "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 56, 168, 0, 255 ], "size": 10, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.6 } }, "value": "Updated", "label": "Updated" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 211, 182, 252, 255 ], "toColor": [ 211, 182, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 201, 252, 179, 255 ], "toColor": [ 201, 252, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 196, 187, 255 ], "toColor": [ 252, 196, 187, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 242, 252, 255 ], "toColor": [ 182, 242, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 238, 182, 255 ], "toColor": [ 252, 238, 182, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 215, 247, 255 ], "toColor": [ 252, 215, 247, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 184, 209, 252, 255 ], "toColor": [ 184, 209, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 252, 218, 255 ], "toColor": [ 182, 252, 218, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 237, 215, 255 ], "toColor": [ 252, 237, 215, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 226, 252, 212, 255 ], "toColor": [ 226, 252, 212, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 179, 218, 255 ], "toColor": [ 252, 179, 218, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 249, 192, 252, 255 ], "toColor": [ 249, 192, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 212, 179, 255 ], "toColor": [ 252, 212, 179, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": [ { "labelExpressionInfo": { "expression": "$feature.LIGHT_ID", "title": "Custom" }, "labelPlacement": "esriServerPointLabelPlacementAboveRight", "deconflictionStrategy": "dynamic", "removeDuplicates": "none", "stackLabel": false, "useCodedValues": true, "maxScale": 0, "minScale": 10000, "name": "Class 1", "priority": -1, "symbol": { "type": "esriTS", "color": [ 78, 78, 78, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 255, 255, 0, 255 ], "haloSize": 2, "font": { "family": "Arial", "size": 8, "style": "normal", "weight": "bold", "decoration": "none" } } } ] }, "hasM": false, "hasZ": false, "allowGeometryUpdates": true, "allowTrueCurvesUpdates": false, "onlyAllowTrueCurveUpdatesByTrueCurveClients": false, "hasAttachments": true, "supportsAttachmentsByUploadId": true, "supportsAttachmentsResizing": true, "supportsApplyEditsWithGlobalIds": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "objectIdField": "OBJECTID", "globalIdField": "", "displayField": "TOWN", "typeIdField": "", "subtypeField": "", "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null, "editable": false, "nullable": false, "defaultValue": null, "modelName": "OBJECTID" }, { "name": "LIGHT_ID", "type": "esriFieldTypeDouble", "alias": "LIGHT_ID", "domain": null, "editable": true, "nullable": true, "defaultValue": null, "modelName": "LIGHT_ID" }, { "name": "TOWN", "type": "esriFieldTypeString", "alias": "TOWN", "domain": null, "editable": true, "nullable": true, "length": 50, "defaultValue": null, "modelName": "TOWN" }, { "name": "OWNED_BY", "type": "esriFieldTypeString", "alias": "OWNED_BY", "domain": null, "editable": true, "nullable": true, "length": 14, "defaultValue": null, "modelName": "OWNED_BY" }, { "name": "Date_Inspected", "type": "esriFieldTypeDate", "alias": "Date_Inspected", "domain": null, "editable": true, "nullable": true, "length": 8, "defaultValue": null, "modelName": "Date_Inspected" }, { "name": "InspectedBy", "type": "esriFieldTypeString", "alias": "InspectedBy", "domain": { "type": "codedValue", "name": "SL_Inspectors", "description": "People who will be inspecting street lights", "codedValues": [ { "name": "Rob Marsh", "code": "Rob Marsh" }, { "name": "Jay Manning", "code": "Jay Manning" }, { "name": "Derek Harding", "code": "Derek Harding" }, { "name": "Josh Seguin", "code": "Josh Seguin" }, { "name": "Rick Simon", "code": "Rick Simon" }, { "name": "Darnell Bernardo", "code": "Darnell Bernardo" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" }, "editable": true, "nullable": true, "length": 255, "defaultValue": null, "modelName": "InspectedBy" }, { "name": "Issue", "type": "esriFieldTypeString", "alias": "Issue", "domain": { "type": "codedValue", "name": "SL_Issues", "description": "Street Light Issues", "codedValues": [ { "name": "Won't Turn On", "code": "On" }, { "name": "Won't Turn Off", "code": "Off" }, { "name": "Flashing", "code": "Flashing" }, { "name": "None", "code": "None" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" }, "editable": true, "nullable": true, "length": 255, "defaultValue": null, "modelName": "Issue" }, { "name": "TreeTrimmingRequired", "type": "esriFieldTypeString", "alias": "TreeTrimmingRequired", "domain": { "type": "codedValue", "name": "SL_Tree_Trimming", "description": "Tree Trimming Required", "codedValues": [ { "name": "Yes", "code": "Yes" }, { "name": "No", "code": "No" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" }, "editable": true, "nullable": true, "length": 255, "defaultValue": null, "modelName": "TreeTrimmingRequired" }, { "name": "Comments", "type": "esriFieldTypeString", "alias": "Comments", "domain": null, "editable": true, "nullable": true, "length": 1000, "defaultValue": null, "modelName": "Comments" }, { "name": "OID_", "type": "esriFieldTypeInteger", "alias": "OID_", "domain": null, "editable": true, "nullable": true, "defaultValue": null, "modelName": "OID_" }, { "name": "MATERIAL", "type": "esriFieldTypeString", "alias": "MATERIAL", "domain": null, "editable": true, "nullable": true, "length": 11, "defaultValue": null, "modelName": "MATERIAL" }, { "name": "STYLE", "type": "esriFieldTypeString", "alias": "STYLE", "domain": null, "editable": true, "nullable": true, "length": 13, "defaultValue": null, "modelName": "STYLE" }, { "name": "STREET", "type": "esriFieldTypeString", "alias": "STREET", "domain": null, "editable": true, "nullable": true, "length": 37, "defaultValue": null, "modelName": "STREET" }, { "name": "YEAR_CHECK", "type": "esriFieldTypeDouble", "alias": "YEAR_CHECK", "domain": null, "editable": true, "nullable": true, "defaultValue": null, "modelName": "YEAR_CHECK" }, { "name": "STATUS", "type": "esriFieldTypeString", "alias": "STATUS", "domain": null, "editable": true, "nullable": true, "length": 50, "defaultValue": null, "modelName": "STATUS" }, { "name": "TYPE", "type": "esriFieldTypeString", "alias": "TYPE", "domain": null, "editable": true, "nullable": true, "length": 254, "defaultValue": null, "modelName": "TYPE" } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null, "editable": true, "nullable": true, "defaultValue": null, "modelName": "Shape" }, "indexes": [ { "name": "R55_pk", "isAscending": true, "isUnique": true, "description": "", "fields": "OBJECTID" }, { "name": "S25_idx", "isAscending": true, "isUnique": true, "description": "", "fields": "Shape" } ], "datesInUnknownTimezone": false, "dateFieldsTimeReference": { "timeZone": "UTC", "timeZoneIANA": "Etc/UTC", "respectsDaylightSaving": false }, "preferredTimeReference": null, "types": [], "templates": [ { "name": "Street Lights", "description": "", "prototype": { "attributes": { "STATUS": null, "LIGHT_ID": null, "TOWN": null, "OWNED_BY": null, "Date_Inspected": null, "InspectedBy": null, "Issue": null, "TreeTrimmingRequired": null, "Comments": null, "OID_": null, "MATERIAL": null, "STYLE": null, "STREET": null, "YEAR_CHECK": null, "TYPE": null } }, "drawingTool": "esriFeatureEditToolPoint" } ], "maxRecordCount": 1000, "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" ], "attachmentProperties": [ { "name": "id", "fieldName": "ATTACHMENTID", "isEnabled": true }, { "name": "globalId", "fieldName": "GLOBALID", "isEnabled": false }, { "name": "name", "fieldName": "ATT_NAME", "isEnabled": true }, { "name": "size", "fieldName": "DATA_SIZE", "isEnabled": true }, { "name": "contentType", "fieldName": "CONTENT_TYPE", "isEnabled": true }, { "name": "keywords", "fieldName": "KEYWORDS", "isEnabled": false }, { "name": "exifInfo", "fieldName": "EXIFINFO", "isEnabled": false } ], "attachmentFields": [ { "name": "ATTACHMENTID", "type": "esriFieldTypeOID", "alias": "ATTACHMENTID", "domain": null, "editable": false, "nullable": false, "defaultValue": null }, { "name": "ATT_NAME", "type": "esriFieldTypeString", "alias": "ATT_NAME", "domain": null, "editable": true, "nullable": false, "length": 250, "defaultValue": null }, { "name": "DATA_SIZE", "type": "esriFieldTypeInteger", "alias": "DATA_SIZE", "domain": null, "editable": true, "nullable": false, "defaultValue": null }, { "name": "CONTENT_TYPE", "type": "esriFieldTypeString", "alias": "CONTENT_TYPE", "domain": null, "editable": true, "nullable": false, "length": 150, "defaultValue": null } ], "supportsAppend": true, "supportedAppendFormats": "FILEGDB,PBF", "standardMaxRecordCount": 32000, "tileMaxRecordCount": 8000, "standardMaxRecordCountNoGeometry": 32000, "maxRecordCountFactor": 1, "serviceItemId": "b161beb30b5348a7bf1b5208b4d5ab63" }