{ "layers": [ { "currentVersion": 11.2, "cimVersion": "3.2.0", "id": 1, "name": "Pavement Moratorium", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolyline", "sourceSpatialReference": { "wkid": 102645, "latestWkid": 2229, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -117608900, "falseY": -91881400, "xyUnits": 3048.0060960121928, "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 activity = Upper(Trim($feature.lastPavementActivity));\nvar baseDate = $feature.lastPavementDate;\n\n// Handle null dates\nif (IsEmpty(baseDate)) {\n return \"No Date\";\n}\n\n// Determine how many years to add\nvar yearsToAdd = IIF(activity == \"SLURRY SEAL\", 2, 4);\n\n// Calculate moratorium end date\nvar moratoriumEndDate = DateAdd(baseDate, yearsToAdd, 'years');\nvar today = Now();\n\n// Days remaining\nvar daysRemaining = DateDiff(moratoriumEndDate, today, \"days\");\n\n// Classify based on time remaining\nif (daysRemaining <= 0) {\n return \"Moratorium Ended\";\n} else if (daysRemaining <= 183) { // ~6 months\n return \"Less than 6 months\";\n} else if (daysRemaining <= 365) {\n return \"6 months to 1 year\";\n} else {\n return \"More than 1 year\";\n}", "valueExpressionTitle": "Custom", "uniqueValueGroups": [ { "heading": "Moratorium Time Remaining", "classes": [ { "label": "6 months to 1 year", "description": "6 months to 1 year", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 204, 102, 119, 255 ], "width": 3 }, "values": [ [ "6 months to 1 year" ] ] }, { "label": "Less than 6 months", "description": "Less than 6 months", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 51, 34, 135, 255 ], "width": 3 }, "values": [ [ "Less than 6 months" ] ] }, { "label": "More than 1 year", "description": "More than 1 year", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 138, 204, 237, 255 ], "width": 3 }, "values": [ [ "More than 1 year" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 204, 102, 119, 255 ], "width": 3 }, "value": "6 months to 1 year", "label": "6 months to 1 year" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 51, 34, 135, 255 ], "width": 3 }, "value": "Less than 6 months", "label": "Less than 6 months" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 138, 204, 237, 255 ], "width": 3 }, "value": "More than 1 year", "label": "More than 1 year" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 223, 202, 255 ], "toColor": [ 252, 223, 202, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 179, 252, 255 ], "toColor": [ 182, 179, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 252, 179, 255 ], "toColor": [ 182, 252, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 236, 252, 255 ], "toColor": [ 182, 236, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 179, 222, 255 ], "toColor": [ 252, 179, 222, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 210, 252, 227, 255 ], "toColor": [ 210, 252, 227, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 250, 189, 255 ], "toColor": [ 252, 250, 189, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 215, 215, 252, 255 ], "toColor": [ 215, 215, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 250, 179, 252, 255 ], "toColor": [ 250, 179, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 187, 188, 255 ], "toColor": [ 252, 187, 188, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 215, 238, 255 ], "toColor": [ 252, 215, 238, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 239, 197, 252, 255 ], "toColor": [ 239, 197, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 242, 252, 215, 255 ], "toColor": [ 242, 252, 215, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "defaultVisibility": true, "extent": { "xmin": -1.3342818839835785E7, "ymin": 4081815.646058447, "xmax": -1.3318161568330158E7, "ymax": 4091458.4024784, "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 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "nameAlf", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "adlf", "type": "esriFieldTypeDouble", "alias": "Address Left From", "domain": null }, { "name": "adlt", "type": "esriFieldTypeDouble", "alias": "Address Left To", "domain": null }, { "name": "adrf", "type": "esriFieldTypeDouble", "alias": "Address Right From", "domain": null }, { "name": "adrt", "type": "esriFieldTypeDouble", "alias": "Address Right To", "domain": null }, { "name": "begLocation", "type": "esriFieldTypeString", "alias": "Beginning Location", "length": 255, "domain": null }, { "name": "endLocation", "type": "esriFieldTypeString", "alias": "Ending Location", "length": 255, "domain": null }, { "name": "functClass", "type": "esriFieldTypeString", "alias": "Functional Classification (OMS)", "length": 25, "domain": { "type": "codedValue", "name": "PavementFunctionalClassifications", "description": "PavementFunctionalClassifications", "codedValues": [ { "name": "Rural Arterial", "code": "Rural Arterial" }, { "name": "Rural Collector", "code": "Rural Collector" }, { "name": "Rural Local", "code": "Rural Local" }, { "name": "Urban Arterial", "code": "Urban Arterial" }, { "name": "Urban Collector", "code": "Urban Collector" }, { "name": "Urban Local", "code": "Urban Local" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "lastPavementActivity", "type": "esriFieldTypeString", "alias": "Last Pavement Activity (OMS)", "length": 255, "domain": null }, { "name": "lastPavementDate", "type": "esriFieldTypeDate", "alias": "Last Pavement Date (OMS)", "length": 8, "domain": null }, { "name": "length", "type": "esriFieldTypeDouble", "alias": "Length", "domain": null }, { "name": "nameAlf", "type": "esriFieldTypeString", "alias": "Street Name and Type (OMS)", "length": 254, "domain": null }, { "name": "numLanes", "type": "esriFieldTypeString", "alias": "Number of Lanes", "length": 5, "domain": { "type": "codedValue", "name": "LaneCount", "description": "LaneCount", "codedValues": [ { "name": "1", "code": "1" }, { "name": "2", "code": "2" }, { "name": "3", "code": "3" }, { "name": "4", "code": "4" }, { "name": "5", "code": "5" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "ownership", "type": "esriFieldTypeString", "alias": "Ownership (OMS)", "length": 50, "domain": { "type": "codedValue", "name": "PWJurisdictions", "description": "PWJurisdictions", "codedValues": [ { "name": "AMD", "code": "AMD" }, { "name": "Cachuma Operation and Maintenance Board", "code": "Cachuma Operation and Maintenance Board" }, { "name": "Cal Trans", "code": "Cal Trans" }, { "name": "CALTRANS", "code": "CALTRANS" }, { "name": "City", "code": "City" }, { "name": "City of Carpenteria", "code": "City of Carpenteria" }, { "name": "City of Goleta", "code": "City of Goleta" }, { "name": "City of Santa Barbara", "code": "City of Santa Barbara" }, { "name": "County", "code": "County" }, { "name": "County of Santa Barbara", "code": "County of Santa Barbara" }, { "name": "Goleta", "code": "Goleta" }, { "name": "Goleta Sanitary District", "code": "Goleta Sanitary District" }, { "name": "Goleta Water District", "code": "Goleta Water District" }, { "name": "La Cumbre Water District", "code": "La Cumbre Water District" }, { "name": "Montecito Sanitary District", "code": "Montecito Sanitary District" }, { "name": "Montecito Water District", "code": "Montecito Water District" }, { "name": "Other", "code": "Other" }, { "name": "Private", "code": "Private" }, { "name": "Private Property", "code": "Private Property" }, { "name": "SCHOOL", "code": "SCHOOL" }, { "name": "STATE", "code": "STATE" }, { "name": "Union Pacific RailRoad", "code": "Union Pacific RailRoad" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "paveClass", "type": "esriFieldTypeString", "alias": "Pavement Classification (OMS)", "length": 25, "domain": { "type": "codedValue", "name": "PavementClassifications", "description": "PavementClassifications", "codedValues": [ { "name": "Asphalt", "code": "Asphalt" }, { "name": "Brick and Block", "code": "Brick and Block" }, { "name": "Concrete", "code": "Concrete" }, { "name": "Earth", "code": "Earth" }, { "name": "Gravel", "code": "Gravel" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "rowWidth", "type": "esriFieldTypeDouble", "alias": "ROW Width (OMS)", "domain": null }, { "name": "sbcntrID", "type": "esriFieldTypeString", "alias": "Santa Barbara Center ID", "length": 10, "domain": null }, { "name": "speedZone", "type": "esriFieldTypeString", "alias": "Speed Zone", "length": 4, "domain": { "type": "codedValue", "name": "SpeedZone", "description": "SpeedZone", "codedValues": [ { "name": "5", "code": "5" }, { "name": "10", "code": "10" }, { "name": "15", "code": "15" }, { "name": "20", "code": "20" }, { "name": "25", "code": "25" }, { "name": "30", "code": "30" }, { "name": "35", "code": "35" }, { "name": "40", "code": "40" }, { "name": "45", "code": "45" }, { "name": "50", "code": "50" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "width", "type": "esriFieldTypeDouble", "alias": "Width", "domain": null }, { "name": "GlobalID", "type": "esriFieldTypeGlobalID", "alias": "GlobalID", "length": 38, "domain": null }, { "name": "created_user", "type": "esriFieldTypeString", "alias": "created_user", "length": 255, "domain": null }, { "name": "created_date", "type": "esriFieldTypeDate", "alias": "created_date", "length": 8, "domain": null }, { "name": "last_edited_user", "type": "esriFieldTypeString", "alias": "last_edited_user", "length": 255, "domain": null }, { "name": "last_edited_date", "type": "esriFieldTypeDate", "alias": "last_edited_date", "length": 8, "domain": null }, { "name": "GIS.Pavement.area", "type": "esriFieldTypeDouble", "alias": "GIS.Pavement.area", "domain": null }, { "name": "omsID", "type": "esriFieldTypeString", "alias": "OMS Segment ID (OMS)", "length": 255, "domain": null }, { "name": "Shape.STLength()", "type": "esriFieldTypeDouble", "alias": "Shape.STLength()", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "R1773_pk", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "UUID_1773", "fields": "GlobalID", "isAscending": true, "isUnique": false, "description": "" }, { "name": "UUID_OID_1773", "fields": "GlobalID,OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "S1666_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": true, "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": { "shapeLengthFieldName": "Shape.STLength()", "units": "esriFeet", "mapUnits": {"uwkid": 9003} }, "hasMetadata": true, "isDataArchived": true, "archivingInfo": { "supportsQueryWithHistoricMoment": true, "startArchivingMoment": 1790878165000 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "d80592877efc4fc884faf96ce809977a" } ], "tables": [] }