{ "layers": [ { "currentVersion": 11.5, "cimVersion": "3.5.0", "id": 0, "name": "Surface Treatments and Overlays", "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 }, "spatialReference": { "wkid": 102645, "latestWkid": 2229, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -117608900, "falseY": -91881400, "xyUnits": 1600.0000000000002, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "// This script will symbolize the overlay and resurfacing layers\n// calculating whether the LastOverlayYear and/or the LastResurfacingYear\n// are within the 5 and 3 year moratoriums\n// The moratoriums are effective on November 1, so the current month is also\n// a factor in the calculation\n\n// Get the number of this month\nvar ThisMonth = Month(Now())\n\n// Get the last overlay year and last resurfacing yera\nvar TreatmentYear = $feature.TreatmentYear \nvar TreatmentCategory = $feature.TreatmentCategory\n\n// Calculate the Overlay Moratorium Year based on whether today is November or later\n\n\n//var OverlayMoratoriumYear = Year(Now()) -6\n//var SlurryMoratoriumYear = Year(Now()) -4\n\nif (TreatmentCategory == 'O')\n  if (TreatmentYear > Year(Now())-6) \n     if (ThisMonth <11) {return 'Overlay Moratorium - 5 years'}\n  if (TreatmentYear > Year(Now())-5)\n    if (ThisMonth >10) {return 'Overlay Moratorium - 5 years'}\nif (TreatmentCategory == 'S')\n  if (TreatmentYear > Year(Now())-4)\n    if (ThisMonth < 11) {return 'Resurfacing Moratorium - 3 years'}\n  if (TreatmentYear > Year(Now())-3)\n     if (ThisMonth > 10) {return 'Resurfacing Moratorium - 3 years'}\nelse {return 'No Moratorium'}\n\n ", "valueExpressionTitle": "Moratorium", "uniqueValueGroups": [ { "heading": "Moratorium", "classes": [ { "label": "Resurfacing Moratorium - 3 years", "description": "Resurfacing Moratorium - 3 years", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 1 }, "values": [ [ "Resurfacing Moratorium - 3 years" ] ] }, { "label": "Overlay Moratorium - 5 years", "description": "Overlay Moratorium - 5 years", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 132, 168, 255 ], "width": 1 }, "values": [ [ "Overlay Moratorium - 5 years" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 1 }, "value": "Resurfacing Moratorium - 3 years", "label": "Resurfacing Moratorium - 3 years" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 132, 168, 255 ], "width": 1 }, "value": "Overlay Moratorium - 5 years", "label": "Overlay Moratorium - 5 years" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 230, 182, 252, 255 ], "toColor": [ 230, 182, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 252, 183, 255 ], "toColor": [ 182, 252, 183, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 204, 187, 255 ], "toColor": [ 252, 204, 187, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 184, 232, 252, 255 ], "toColor": [ 184, 232, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 245, 179, 255 ], "toColor": [ 252, 245, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 210, 237, 255 ], "toColor": [ 252, 210, 237, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 252, 227, 255 ], "toColor": [ 179, 252, 227, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 192, 196, 252, 255 ], "toColor": [ 192, 196, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 225, 252, 212, 255 ], "toColor": [ 225, 252, 212, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 179, 191, 255 ], "toColor": [ 252, 179, 191, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 236, 202, 255 ], "toColor": [ 252, 236, 202, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 212, 252, 248, 255 ], "toColor": [ 212, 252, 248, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 225, 215, 252, 255 ], "toColor": [ 225, 215, 252, 255 ] } ] } } }, "scaleSymbols": false, "transparency": 0, "labelingInfo": null }, "defaultVisibility": true, "extent": { "xmin": 6261332.519866213, "ymin": 1868905.2099725604, "xmax": 6324444.359849632, "ymax": 1914646.060091734, "spatialReference": { "wkid": 102645, "latestWkid": 2229, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -117608900, "falseY": -91881400, "xyUnits": 1600.0000000000002, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "StreetName", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "GlobalID", "type": "esriFieldTypeGlobalID", "alias": "GlobalID", "length": 38, "domain": null }, { "name": "StreetName", "type": "esriFieldTypeString", "alias": "StreetName", "length": 50, "domain": null }, { "name": "TreatmentType", "type": "esriFieldTypeString", "alias": "TreatmentType", "length": 25, "domain": null }, { "name": "TreatmentCategory", "type": "esriFieldTypeString", "alias": "TreatmentCategory", "length": 1, "domain": { "type": "codedValue", "name": "TreatmentCategory", "description": "Slurry or Overlay", "codedValues": [ { "name": "Slurry", "code": "S" }, { "name": "Overlay", "code": "O" } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "TreatmentYear", "type": "esriFieldTypeSmallInteger", "alias": "TreatmentYear", "domain": null }, { "name": "Skipwork", "type": "esriFieldTypeString", "alias": "Skipwork", "length": 5, "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "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": "Shape.STLength()", "type": "esriFieldTypeDouble", "alias": "Shape.STLength()", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "R570_pk", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "Global", "fields": "GlobalID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "UUID_OID_570", "fields": "GlobalID,OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "S478_idx", "fields": "Shape", "isAscending": true, "isUnique": true, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": false, "capabilities": "Map,Query,Data", "maxRecordCount": 2000, "maxSelectionCount": 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": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "eb463da40d09446d8274b1a65a7b9fd6" }, { "currentVersion": 11.5, "cimVersion": "3.5.0", "id": 1, "name": "Streets Resurfacing Moratorium", "type": "Feature Layer", "description": "This is a polyline feature class that maps the streets within the City of Thousand Oaks, containing resurfacing and overlaying data. The attribute table contains the most recent year of resurfacing and the most recent year of overlaying for each street segment, the most recent resurfacing type, and the previous resurface and overlay years.", "geometryType": "esriGeometryPolyline", "sourceSpatialReference": { "wkid": 102645, "latestWkid": 2229, "xyTolerance": 0.02, "zTolerance": 2, "mTolerance": 2, "falseX": -117608900, "falseY": -91881400, "xyUnits": 1600, "falseZ": 0, "zUnits": 1, "falseM": 0, "mUnits": 1 }, "spatialReference": { "wkid": 102645, "latestWkid": 2229, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -117608900, "falseY": -91881400, "xyUnits": 1600.0000000000002, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 }, "copyrightText": "City of Thousand Oaks", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "drawingInfo": { "renderer": { "type": "simple", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 72, 53, 145, 255 ], "width": 1 } }, "scaleSymbols": false, "transparency": 0, "labelingInfo": null }, "defaultVisibility": false, "extent": { "xmin": 6261332.519999996, "ymin": 1868905.2099999934, "xmax": 6324439.243125007, "ymax": 1914646.0600000024, "spatialReference": { "wkid": 102645, "latestWkid": 2229, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -117608900, "falseY": -91881400, "xyUnits": 1600.0000000000002, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "STREET_NAM", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID_1", "type": "esriFieldTypeOID", "alias": "OBJECTID_1", "domain": null }, { "name": "ID", "type": "esriFieldTypeDouble", "alias": "ID", "domain": null }, { "name": "OBJECTID", "type": "esriFieldTypeInteger", "alias": "OBJECTID", "domain": null }, { "name": "STREET_NAM", "type": "esriFieldTypeString", "alias": "STREET_NAME", "length": 50, "domain": null }, { "name": "MOSTRECENT", "type": "esriFieldTypeString", "alias": "MostRecentOverlayDate", "length": 50, "domain": null }, { "name": "MOSTRECE_1", "type": "esriFieldTypeString", "alias": "MostRecentResurfacingDate", "length": 50, "domain": null }, { "name": "MOSTRECE_2", "type": "esriFieldTypeString", "alias": "MostRecentResurfacingType", "length": 50, "domain": null }, { "name": "PROJECTEDO", "type": "esriFieldTypeString", "alias": "ProjectedOverlayData", "length": 50, "domain": null }, { "name": "SATUSOFPRO", "type": "esriFieldTypeString", "alias": "StatusOfProjectedOverlay", "length": 50, "domain": null }, { "name": "PROJECTEDR", "type": "esriFieldTypeString", "alias": "ProjectedResurfaceDate", "length": 50, "domain": null }, { "name": "PROJECTE_1", "type": "esriFieldTypeString", "alias": "ProjectedResurfaceType", "length": 50, "domain": null }, { "name": "PREVIOUSOV", "type": "esriFieldTypeString", "alias": "PreviousOverlayDate", "length": 50, "domain": null }, { "name": "PREVIOUSRE", "type": "esriFieldTypeString", "alias": "PreviousResurfaceDate", "length": 50, "domain": null }, { "name": "PREVIOUS_1", "type": "esriFieldTypeString", "alias": "PreviousResurfaceType", "length": 50, "domain": null }, { "name": "PASTPREVIO", "type": "esriFieldTypeString", "alias": "PastPreviousResurfaceDate", "length": 50, "domain": null }, { "name": "PASTPREV_1", "type": "esriFieldTypeString", "alias": "PastPreviousResurfaceType", "length": 50, "domain": null }, { "name": "SHAPE_LENG", "type": "esriFieldTypeDouble", "alias": "SHAPE_LENG", "domain": null }, { "name": "LENGTH", "type": "esriFieldTypeDouble", "alias": "LENGTH", "domain": null }, { "name": "GlobalID", "type": "esriFieldTypeGlobalID", "alias": "GlobalID", "length": 38, "domain": null }, { "name": "LastOverlayYear", "type": "esriFieldTypeInteger", "alias": "LastOverlayYear", "domain": null }, { "name": "LastResurfacingYear", "type": "esriFieldTypeInteger", "alias": "LastResurfacingYear", "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "Shape.STLength()", "type": "esriFieldTypeDouble", "alias": "Shape.STLength()", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "R473_pk", "fields": "OBJECTID_1", "isAscending": true, "isUnique": true, "description": "" }, { "name": "UUID_473", "fields": "GlobalID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "UUID_OID_473", "fields": "GlobalID,OBJECTID_1", "isAscending": true, "isUnique": true, "description": "" }, { "name": "S406_idx", "fields": "Shape", "isAscending": true, "isUnique": true, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": false, "capabilities": "Map,Query,Data", "maxRecordCount": 2000, "maxSelectionCount": 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": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "eb463da40d09446d8274b1a65a7b9fd6" } ], "tables": [] }