{ "currentVersion": 10.81, "cimVersion": "2.6.0", "serviceDescription": "

Arcade expression to symbolize based on last inspected date:<\/SPAN><\/P>

// pipes inspected in the last year<\/SPAN><\/P>

if(DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') <=1)<\/SPAN><\/P>

{<\/SPAN><\/P>

return \"Inspected in Last Year\"<\/SPAN><\/P>

}<\/SPAN><\/P>

<\/P>

// pipes inspected 2 years ago<\/SPAN><\/P>

else if(DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') >=2 &&<\/SPAN><\/P>

DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') <3)<\/SPAN><\/P>

{<\/SPAN><\/P>

return \"Inspected 2 Years Ago\"<\/SPAN><\/P>

}<\/SPAN><\/P>

<\/P>

// pipes inspected in the last 3-5 years<\/SPAN><\/P>

else if(DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') >=3 &&<\/SPAN><\/P>

DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') <=5)<\/SPAN><\/P>

{<\/SPAN><\/P>

return \"Inspected 3-5 Years Ago\"<\/SPAN><\/P>

}<\/SPAN><\/P>

<\/P>

// pipes inspected more than 5 years ago<\/SPAN><\/P>

else if(DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') >5)<\/SPAN><\/P>

{<\/SPAN><\/P>

return \"Inspected More Than 5 Years Ago\"<\/SPAN><\/P>

}<\/SPAN><\/P><\/DIV><\/DIV>", "hasVersionedData": true, "hasArchivedData": false, "hasBranchVersionedData": false, "supportsDisconnectedEditing": false, "supportsDatumTransformation": true, "supportsReturnServiceEditsOption": true, "returnServiceEditsHaveSR": true, "supportsQueryDataElements": true, "supportsRelationshipsResource": true, "syncEnabled": false, "extractChangesCapabilities": { "supportsReturnIdsOnly": false, "supportsReturnExtentOnly": false, "supportsReturnAttachments": false, "supportsLayerQueries": false, "supportsGeometry": false, "supportsFeatureReturn": false }, "supportedQueryFormats": "JSON", "maxRecordCount": 2000, "maxRecordCountFactor": 1, "capabilities": "Query,Create,Update,Delete,Uploads,Editing", "description": "

Arcade expression to symbolize based on last inspected date:<\/SPAN><\/P>

// pipes inspected in the last year<\/SPAN><\/P>

if(DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') <=1)<\/SPAN><\/P>

{<\/SPAN><\/P>

return \"Inspected in Last Year\"<\/SPAN><\/P>

}<\/SPAN><\/P>

<\/P>

// pipes inspected 2 years ago<\/SPAN><\/P>

else if(DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') >=2 &&<\/SPAN><\/P>

DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') <3)<\/SPAN><\/P>

{<\/SPAN><\/P>

return \"Inspected 2 Years Ago\"<\/SPAN><\/P>

}<\/SPAN><\/P>

<\/P>

// pipes inspected in the last 3-5 years<\/SPAN><\/P>

else if(DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') >=3 &&<\/SPAN><\/P>

DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') <=5)<\/SPAN><\/P>

{<\/SPAN><\/P>

return \"Inspected 3-5 Years Ago\"<\/SPAN><\/P>

}<\/SPAN><\/P>

<\/P>

// pipes inspected more than 5 years ago<\/SPAN><\/P>

else if(DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') >5)<\/SPAN><\/P>

{<\/SPAN><\/P>

return \"Inspected More Than 5 Years Ago\"<\/SPAN><\/P>

}<\/SPAN><\/P><\/DIV><\/DIV>", "copyrightText": "", "advancedEditingCapabilities": { "supportsSplit": true, "supportsReturnServiceEditsInSourceSR": true }, "spatialReference": { "wkid": 102729, "latestWkid": 2272, "vcsWkid": 105703, "latestVcsWkid": 6360, "xyTolerance": 0.003280833333333333, "zTolerance": 0.003280833333333333, "mTolerance": 0.001, "falseX": -119214200, "falseY": -96198500, "xyUnits": 3048.0060960121928, "falseZ": -100000, "zUnits": 3048.006096012192, "falseM": -100000, "mUnits": 10000 }, "initialExtent": { "xmin": 2246498.5294894194, "ymin": 196820.71301877484, "xmax": 2297111.0277648596, "ymax": 237505.1782654636, "spatialReference": { "wkid": 102729, "latestWkid": 2272, "vcsWkid": 105703, "latestVcsWkid": 6360, "xyTolerance": 0.003280833333333333, "zTolerance": 0.003280833333333333, "mTolerance": 0.001, "falseX": -119214200, "falseY": -96198500, "xyUnits": 3048.0060960121928, "falseZ": -100000, "zUnits": 3048.006096012192, "falseM": -100000, "mUnits": 10000 } }, "fullExtent": { "xmin": 2253950.1914945543, "ymin": 204680.32120648026, "xmax": 2287110.6533887237, "ymax": 230197.31118288636, "spatialReference": { "wkid": 102729, "latestWkid": 2272, "vcsWkid": 105703, "latestVcsWkid": 6360, "xyTolerance": 0.003280833333333333, "zTolerance": 0.003280833333333333, "mTolerance": 0.001, "falseX": -119214200, "falseY": -96198500, "xyUnits": 3048.0060960121928, "falseZ": -100000, "zUnits": 3048.006096012192, "falseM": -100000, "mUnits": 10000 } }, "allowGeometryUpdates": true, "allowTrueCurvesUpdates": true, "onlyAllowTrueCurveUpdatesByTrueCurveClients": true, "supportsApplyEditsWithGlobalIds": false, "supportsTrueCurve": true, "units": "esriFeet", "documentInfo": { "Title": "SewerPipes_LastInspected", "Author": "", "Comments": "

Arcade expression to symbolize based on last inspected date:<\/SPAN><\/P>

// pipes inspected in the last year<\/SPAN><\/P>

if(DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') <=1)<\/SPAN><\/P>

{<\/SPAN><\/P>

return \"Inspected in Last Year\"<\/SPAN><\/P>

}<\/SPAN><\/P>

<\/P>

// pipes inspected 2 years ago<\/SPAN><\/P>

else if(DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') >=2 &&<\/SPAN><\/P>

DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') <3)<\/SPAN><\/P>

{<\/SPAN><\/P>

return \"Inspected 2 Years Ago\"<\/SPAN><\/P>

}<\/SPAN><\/P>

<\/P>

// pipes inspected in the last 3-5 years<\/SPAN><\/P>

else if(DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') >=3 &&<\/SPAN><\/P>

DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') <=5)<\/SPAN><\/P>

{<\/SPAN><\/P>

return \"Inspected 3-5 Years Ago\"<\/SPAN><\/P>

}<\/SPAN><\/P>

<\/P>

// pipes inspected more than 5 years ago<\/SPAN><\/P>

else if(DateDiff(Now(), Date($feature[\"Last_Insp\"]), 'years') >5)<\/SPAN><\/P>

{<\/SPAN><\/P>

return \"Inspected More Than 5 Years Ago\"<\/SPAN><\/P>

}<\/SPAN><\/P><\/DIV><\/DIV>", "Subject": "Sewer lines symbolized by last inspected date ranges.", "Category": "", "Keywords": "Sewer,Inspection Date" }, "supportsQueryDomains": true, "supportsQueryContingentValues": true, "layers": [ { "id": 0, "name": "Sewer Pipes", "parentLayerId": -1, "defaultVisibility": true, "subLayerIds": null, "minScale": 0, "maxScale": 0, "type": "Feature Layer", "geometryType": "esriGeometryPolyline" } ], "tables": [], "relationships": [], "enableZDefaults": false, "allowUpdateWithoutMValues": false, "heightModelInfo": { "heightModel": "gravity_related_height", "vertCRS": "NAVD88_height_(ftUS)", "heightUnit": "us-foot" }, "supportsVCSProjection": true, "datumTransformations": [ { "geoTransforms": [ { "wkid": 108190, "latestWkid": 108190, "transformForward": true, "name": "WGS_1984_(ITRF00)_To_NAD_1983" } ] }, { "geoTransforms": [ { "wkid": 108190, "latestWkid": 108190, "transformForward": false, "name": "WGS_1984_(ITRF00)_To_NAD_1983" } ] } ], "referenceScale": 0 }