{ "currentVersion": 11.3, "cimVersion": "3.3.0", "id": 61, "name": "TaxParcel_Lines", "type": "Feature Layer", "description": "Lines", "geometryType": "esriGeometryPolyline", "sourceSpatialReference": { "wkid": 102630, "latestWkid": 102630, "xyTolerance": 6.561666666666666E-4, "zTolerance": 2.0E-4, "mTolerance": 0.001, "falseX": -16478800, "falseY": -43705000, "xyUnits": 3048.0060960121928, "falseZ": -100000, "zUnits": 10000, "falseM": 0, "mUnits": 1 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 24000, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "field1": "FCODE", "uniqueValueGroups": [ { "heading": "FCODE", "classes": [ { "label": "City Road", "description": "City Road", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 170, 0, 255 ], "width": 1 }, "values": [ [ "504" ] ] }, { "label": "County", "description": "County", "symbol": { "type": "esriSLS", "style": "esriSLSDashDot", "color": [ 0, 0, 0, 255 ], "width": 2.16 }, "values": [ [ "901" ] ] }, { "label": "County Road", "description": "County Road", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 197, 255, 255 ], "width": 1 }, "values": [ [ "503" ] ] }, { "label": "Dashed QSection", "description": "Dashed QSection", "symbol": { "type": "esriSLS", "style": "esriSLSDash", "color": [ 255, 0, 0, 255 ], "width": 1.44 }, "values": [ [ "805" ] ] }, { "label": "Dashed Section", "description": "Dashed Section", "symbol": { "type": "esriSLS", "style": "esriSLSDash", "color": [ 255, 0, 0, 255 ], "width": 2.16 }, "values": [ [ "803" ] ] }, { "label": "Dashed Township", "description": "Dashed Township", "symbol": { "type": "esriSLS", "style": "esriSLSDash", "color": [ 255, 0, 0, 255 ], "width": 2.88 }, "values": [ [ "801" ] ] }, { "label": "Hidden ROW", "description": "Hidden ROW", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 255, 255 ], "width": 1 }, "values": [ [ "506" ] ] }, { "label": "Interstate Road", "description": "Interstate Road", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 0, 0, 255 ], "width": 1 }, "values": [ [ "501" ] ] }, { "label": "Parcel", "description": "Parcel", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 85, 255, 0, 255 ], "width": 1 }, "values": [ [ "500" ] ] }, { "label": "Private Road", "description": "Private Road", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 0.72 }, "values": [ [ "509" ] ] }, { "label": "QSection", "description": "QSection", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 1.44 }, "values": [ [ "804" ] ] }, { "label": "Railroad", "description": "Railroad", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 0, 0, 255 ], "width": 1 }, "values": [ [ "505" ] ] }, { "label": "Section", "description": "Section", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 2.16 }, "values": [ [ "802" ] ] }, { "label": "State", "description": "State", "symbol": { "type": "esriSLS", "style": "esriSLSDashDotDot", "color": [ 0, 0, 0, 255 ], "width": 2.16 }, "values": [ [ "902" ] ] }, { "label": "State Road", "description": "State Road", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 197, 0, 255, 255 ], "width": 1 }, "values": [ [ "502" ] ] }, { "label": "Township", "description": "Township", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 2.88 }, "values": [ [ "800" ] ] }, { "label": "UNK", "description": "UNK", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 143, 50, 255 ], "width": 1 }, "values": [ [ "999" ] ] }, { "label": "US Road", "description": "US Road", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 197, 0, 255, 255 ], "width": 1 }, "values": [ [ "510" ] ] }, { "label": "Water Property", "description": "Water Property", "symbol": { "type": "esriSLS", "style": "esriSLSDash", "color": [ 85, 255, 0, 255 ], "width": 0.9615384615384615 }, "values": [ [ "203" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 170, 0, 255 ], "width": 1 }, "value": "504", "label": "City Road" }, { "symbol": { "type": "esriSLS", "style": "esriSLSDashDot", "color": [ 0, 0, 0, 255 ], "width": 2.16 }, "value": "901", "label": "County" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 197, 255, 255 ], "width": 1 }, "value": "503", "label": "County Road" }, { "symbol": { "type": "esriSLS", "style": "esriSLSDash", "color": [ 255, 0, 0, 255 ], "width": 1.44 }, "value": "805", "label": "Dashed QSection" }, { "symbol": { "type": "esriSLS", "style": "esriSLSDash", "color": [ 255, 0, 0, 255 ], "width": 2.16 }, "value": "803", "label": "Dashed Section" }, { "symbol": { "type": "esriSLS", "style": "esriSLSDash", "color": [ 255, 0, 0, 255 ], "width": 2.88 }, "value": "801", "label": "Dashed Township" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 255, 255, 255 ], "width": 1 }, "value": "506", "label": "Hidden ROW" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 0, 0, 255 ], "width": 1 }, "value": "501", "label": "Interstate Road" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 85, 255, 0, 255 ], "width": 1 }, "value": "500", "label": "Parcel" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 0.72 }, "value": "509", "label": "Private Road" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 1.44 }, "value": "804", "label": "QSection" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 0, 0, 255 ], "width": 1 }, "value": "505", "label": "Railroad" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 2.16 }, "value": "802", "label": "Section" }, { "symbol": { "type": "esriSLS", "style": "esriSLSDashDotDot", "color": [ 0, 0, 0, 255 ], "width": 2.16 }, "value": "902", "label": "State" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 197, 0, 255, 255 ], "width": 1 }, "value": "502", "label": "State Road" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 2.88 }, "value": "800", "label": "Township" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 0, 143, 50, 255 ], "width": 1 }, "value": "999", "label": "UNK" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 197, 0, 255, 255 ], "width": 1 }, "value": "510", "label": "US Road" }, { "symbol": { "type": "esriSLS", "style": "esriSLSDash", "color": [ 85, 255, 0, 255 ], "width": 0.9615384615384615 }, "value": "203", "label": "Water Property" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 215, 251, 252, 255 ], "toColor": [ 215, 251, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 246, 179, 252, 255 ], "toColor": [ 246, 179, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 192, 184, 255 ], "toColor": [ 252, 192, 184, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 205, 252, 179, 255 ], "toColor": [ 205, 252, 179, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 189, 201, 252, 255 ], "toColor": [ 189, 201, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 242, 210, 255 ], "toColor": [ 252, 242, 210, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 215, 246, 255 ], "toColor": [ 252, 215, 246, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 197, 252, 217, 255 ], "toColor": [ 197, 252, 217, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 249, 182, 255 ], "toColor": [ 252, 249, 182, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 199, 224, 252, 255 ], "toColor": [ 199, 224, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 182, 222, 255 ], "toColor": [ 252, 182, 222, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 201, 182, 252, 255 ], "toColor": [ 201, 182, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 233, 252, 204, 255 ], "toColor": [ 233, 252, 204, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 215, 184, 255 ], "toColor": [ 252, 215, 184, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 227, 202, 252, 255 ], "toColor": [ 227, 202, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 222, 215, 255 ], "toColor": [ 252, 222, 215, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 199, 214, 255 ], "toColor": [ 252, 199, 214, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 252, 244, 255 ], "toColor": [ 179, 252, 244, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 182, 235, 252, 255 ], "toColor": [ 182, 235, 252, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": [ { "labelExpressionInfo": { "expression": "// Change the settings portion to configure direction format, color, rounding and abbreviations\n// This is an Arcade expression\n\n// SETTINGS\nvar ShowDistance = true; //set as 'true' to show distance\nvar ShowDirection = false; //set as 'true' to show direction\nvar DirectionType = 1; // 1 = Quadrant Bearing; 2 = North Azimuth; 3 = South Azimuth\nvar ShowRadius = false; //set as 'true' to show radius\nvar ShowCurveParameter = true; //set as 'true' to show a curve parameter\nvar ShowCOGOType = true; //set as 'true' to show prefixes and postfixes defined below for each cogo line label\nvar COGOType_Entered = ['', ''] //Change prefix and postfix for Entered courses\nvar COGOType_Computed = ['', ''] //Change prefix and postfix for Computed courses\nvar COGOType_FromGeom = ['', ''] //Change for prefix and postfix From Geometry courses. The < is a special character to represent the left angle bracket\nvar COGOType_FromAnno = ['', ''] //Change for prefix and postfix From Anno_Dimension field.\nvar COGOType_Scaled = ['', 's'] //Change for prefix and postfix From Scaled Dimension.\nvar COGOType_Calculated = ['', 'c'] //Change for prefix and postfix From Calculated Dimension.\nvar COGOType_Deeded = ['', 'd'] //Change for prefix and postfix From Calculated Dimension.\nvar CurveParameter = \"ArcLength\"; //set as 'ArcLength' or 'Chord' or 'Angle' for central angle. Case sensitive!\nvar ErrorString = \"COGO ERROR\"; //set to display invalid COGO combinations\nvar RadiusAbbr = 'R='; //radius abbreviation\nvar Radius2Abbr = 'R2='; //radius2 abbreviation for spiral curves\nvar ArclengthAbrr = ''; //arclength abbreviation\nvar ChordAbbr = 'C='; //chord abbreviation\nvar AngleAbbr = 'A='; //central Angle abbreviation\nvar DistUnitRounding = 2; //number of decimal places for distance units: distance, radius, arclength & chord\nvar NumberFormat = \"#,###.00\" //number format. In this example: thousands separator with padding of 2 zeros \nvar directionColor = \"blue='255'\"; //direction color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar distanceColor = \"black='255'\"; //distance color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar radiusColor = \"blue='255'\"; //radius color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar curveParamColor = \"black='255'\"; //curve parameter color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar partialCOGOColor = \"magenta='255'\"; //partial COGO color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar invalidCOGOColor = \"red='255'\"; //invalid COGO color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar fontNameSize = \"\"; //font type and size\n\n// VARIABLES\nvar cogo_direction = $feature.Direction;\nvar cogo_distance = $feature.Distance;\nvar cogo_radius = $feature.Radius;\nvar cogo_arclength = $feature.Arclength;\nvar cogo_radius2 = $feature.Radius2\nvar cogotype = $feature.COGOType\nif (HasKey($feature, \"labelPosition\")){\n var labelPosition = $feature.labelPosition\n}\nelse {\n var labelPosition = 1\n}\nvar binaryDictionary; //binary dictionary to check COGO combinations\nvar checksum = 0; //initialize checksum\nvar validValuesArray; //array of valid values for COGO combinations\nvar partialValuesArray; //array of partial values for COGO\nvar directionStr = \"\"; //direction string using for label\nvar distanceStr = \"\"; //distance string using for label\nvar radiusStr = \"\"; //radius string using for label\nvar radius2Str = \"\"; //radius2 string using for labeling spiral curves\nvar curveStr = \"\"; //curve parameter string using for label\nvar prefixPostfix = ['', ''] //Used for prefix and postfix of COGO Type\nvar angleRad; //curve angle in radians\nvar COGOValidity; //COGO combinations validity. can be valid, partial or invalid.\n\nif (IsEmpty(cogo_direction) && IsEmpty(cogo_distance) && IsEmpty(cogo_radius) && IsEmpty(cogo_radius2) && IsEmpty(cogo_arclength)){\n return \"\"\n}\n\nfunction NorthAzimuth2Quadbearing(azimuth){\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'Quadrant', angleType: 'DMS', outputType: 'text', format: 'pd[°]mm[\\']ss[\"]b'})\n}\n\nfunction DMS_North(azimuth){\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'North', angleType: 'DMS', outputType: 'text', format: 'd[°]mm[\\']ss[\"]'})\n}\n\nfunction DMS_South(azimuth){\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'South', angleType: 'DMS', outputType: 'text', format: 'd[°]mm[\\']ss[\"]'})\n}\n\nfunction IsValidCOGO(cogo_direction, cogo_distance, cogo_radius, cogo_arclength, cogo_radius2) {\n binaryDictionary= Dictionary('dir', 1, 'dist',2, 'rad',4, 'arc',8, 'rad2',16)\n if (!IsEmpty(cogo_direction)) {checksum+=binaryDictionary.dir}\n if (!IsEmpty(cogo_distance)) {checksum+=binaryDictionary.dist}\n if (!IsEmpty(cogo_radius)) {checksum+=binaryDictionary.rad}\n if (!IsEmpty(cogo_arclength)) {checksum+=binaryDictionary.arc}\n if (!IsEmpty(cogo_radius2)) {checksum+=binaryDictionary.rad2}\n \n validValuesArray=[0,3,13,29]; //array of valid combinations: '0' for nothing, ... '13' for direction & radius & arclength ...\n partialValuesArray=[1,2,4,5,8,9,12,16,17,20,21,24,25,27,28]; //array of partial combinations: '1' for only direction, '2' for only distance, '4' for only radius...\n //Invalid Values = [6,7,10,11,14,15,18,19,22,23,26,30,31]\n\n\n if (IndexOf(validValuesArray,checksum)>-1) { // a negative value is returned if checksum value is not in the a valid combination array\n return \"valid\";\n }\n if (IndexOf(partialValuesArray,checksum)>-1){\n return \"partial\"; \n }\n return \"invalid\";\n}\n\nfunction COGOTypePrefixPostfix(cogotypeValue){\n if (ShowCOGOType){\n if (cogotypeValue == 1) { //Entered\n return COGOType_Entered\n }\n else if(cogotypeValue == 2) { //From Geometry\n return COGOType_FromGeom\n }\n else if(cogotypeValue == 3) { //Computed\n return COGOType_Computed\n }\n else if(cogotypeValue == 4) { //Computed\n return COGOType_FromAnno\n }\n else if(cogotypeValue == 5) { //Scaled Dimension\n return COGOType_Scaled\n }\n else if(cogotypeValue == 6) { //Calculated Dimension\n return COGOType_Deeded\n }\n else if(cogotypeValue == 7) { //Calculated Dimension\n return COGOType_Calculated\n }\n else { //If not set or invalid value\n return ['', '']\n }\n }\n else{\n return(['', ''])\n }\n}\n\nCOGOValidity = IsValidCOGO(cogo_direction, cogo_distance, cogo_radius, cogo_arclength, cogo_radius2);\nif ( COGOValidity == \"invalid\") { //if invalid COGO return error string\n return \"\" + fontNameSize + ErrorString + \"<\/FNT><\/CLR><\/BOL>\"; \n}\n\nelse if (COGOValidity == \"partial\") { //if a partial COGO change colors\n distanceColor = partialCOGOColor;\n directionColor = partialCOGOColor;\n radiusColor = partialCOGOColor;\n curveParamColor = partialCOGOColor;\n}\n\n// Direction string\nif (ShowDirection) {\n if (IsEmpty(cogo_direction)==false) {\n if (DirectionType == 1) { //using quadrant bearing format\n directionStr = NorthAzimuth2Quadbearing(cogo_direction);\n }\n else if (DirectionType == 2) { //using north azimuth format\n directionStr = DMS_North(cogo_direction);\n }\n else if (DirectionType == 3) { //using south azimuth format\n directionStr = DMS_South(cogo_direction);\n }\n }\n}\n\n// Distance string\nif (ShowDistance) {\n if (IsEmpty(cogo_distance)==false) {\n distanceStr = text(round(cogo_distance,DistUnitRounding), NumberFormat);\n }\n}\n\n//Radius String\nif (ShowRadius) {\n if (!IsEmpty(cogo_radius)) { //it can be a curve or a spiral\n if (IsEmpty(cogo_radius2)) { //if radius2 is empty this is a curve\n radiusStr = RadiusAbbr + \" \" + text(round(cogo_radius, DistUnitRounding), NumberFormat);\n }\n else { // it is a spiral\n radiusStr = RadiusAbbr + \" \" + text(round(cogo_radius, DistUnitRounding),NumberFormat);\n radius2Str = Radius2Abbr + \" \" + text(round(cogo_radius2, DistUnitRounding),NumberFormat);\n if (cogo_radius == 0) { //substitute to infinity sign\n radiusStr = RadiusAbbr + \" ∞ \";\n }\n if (cogo_radius2 == 0) { //substitute to infinity sign\n radius2Str = Radius2Abbr + \" ∞ \";\n }\n } \n \n }\n}\n\n// Curve Parameter\nif (ShowCurveParameter) {\n if (!IsEmpty(cogo_arclength)) {\n if (CurveParameter == 'ArcLength') {\n curveStr = text(round(cogo_arclength, DistUnitRounding), NumberFormat); //return Arc length\n }\n angleRad = cogo_arclength/(abs(cogo_radius)) //calculate angle in radians\n if (CurveParameter == 'Angle') {\n curveStr = DMS_North(angleRad * 180 / pi); // convert radian to degrees and show as DMS\n }\n if (CurveParameter == 'Chord') {\n curveStr = text(round((2 * abs(cogo_radius) * Sin(angleRad/2)),DistUnitRounding), NumberFormat); //calculate chord length\n } \n }\n}\n\n//Determine type of curve displayed\nvar CurveTypePrefix = \"\"\nif (!IsEmpty(curveStr)){\n if (CurveParameter == 'ArcLength'){\n CurveTypePrefix = ArclengthAbrr\n }\n else if (CurveParameter == 'Angle'){\n CurveTypePrefix = AngleAbbr\n }\n else if (CurveParameter == 'Chord'){\n CurveTypePrefix = ChordAbbr\n }\n}\n\nvar isStraightLine = IsEmpty(radiusStr) && IsEmpty(radius2Str) && IsEmpty(curveStr)\n\n// Assemble label string\n\n//Get prefix and postfix if either distance or curve is not empty. NOTE If both aren't empty it's invalid COGO\nif (!IsEmpty(distanceStr) || !IsEmpty(curveStr)){\n prefixPostfix = COGOTypePrefixPostfix(cogotype)\n}\n\nvar sharedLabelBuffer = \"\"\nif (labelPosition == 3) {\n sharedLabelBuffer = \" \\n\"\n}\n\n//Straight lines\nif (isStraightLine){\n if (!IsEmpty(directionStr) && !IsEmpty(distanceStr)){ //If Direction and Distance are both NOT Empty\n return fontNameSize + \"\" + directionStr + \"<\/CLR>\" + \"\\n\" +\n \"\" + prefixPostfix[0] + distanceStr + prefixPostfix[1] + \"<\/CLR><\/FNT>\";\n }\n else if (IsEmpty(directionStr)){ //If Direction is empty\n return fontNameSize + sharedLabelBuffer + \"\" +\n prefixPostfix[0] + distanceStr + prefixPostfix[1] + \"<\/CLR><\/FNT>\";\n }\n else{ //If Distance is empty\n return fontNameSize + sharedLabelBuffer + \"\" + directionStr + \"<\/CLR><\/FNT>\";\n }\n}\n\n//Curves\n//If one or both radii and the curve string are NOT empty show the full curve\nif ((!IsEmpty(radiusStr) || !IsEmpty(radius2Str)) && !IsEmpty(curveStr)){\n return fontNameSize + \"\" + radiusStr + \"<\/CLR>\" + \" \" +\n \"\" + radius2Str + \"<\/CLR>\" + \"\\n\" +\n \"\" + CurveTypePrefix + ' ' +\n prefixPostfix[0] + curveStr + prefixPostfix[1] + \"<\/CLR><\/FNT>\";\n}\n//If the curve is empty\nelse if (IsEmpty(curveStr)){\n return fontNameSize + sharedLabelBuffer + \"\" + radiusStr + \"<\/CLR>\" + \" \" +\n \"\" + radius2Str + \"<\/CLR><\/FNT>\"\n}\n//If both radius are empty\nelse{\n return fontNameSize + sharedLabelBuffer + \"\" + CurveTypePrefix + ' ' +\n prefixPostfix[0] + curveStr + prefixPostfix[1] + \"<\/CLR><\/FNT>\";\n}\n", "title": "Custom" }, "lineOrientation": "direction", "labelPlacement": "esriServerLinePlacementBelowStart", "textLayout": "followFeature", "deconflictionStrategy": "none", "lineConnection": "none", "multiPart": "labelPerFeature", "useClippedGeometry": true, "offsetDistance": 5, "stackLabel": true, "stackAlignment": "dynamic", "removeDuplicates": "none", "stackRowLength": 24, "where": "LabelPosition IS NULL Or (LabelPosition = 1 And (Distance IS NOT NULL Or ArcLength IS NOT NULL))", "useCodedValues": true, "maxScale": 0, "minScale": 2500, "name": "Distance_Right", "priority": -1, "symbol": { "type": "esriTS", "color": [ 0, 0, 0, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 255, 255, 255, 255 ], "haloSize": 1, "font": { "family": "Tahoma", "size": 10, "style": "normal", "weight": "normal", "decoration": "none" } } }, { "labelExpressionInfo": { "expression": "// Change the settings portion to configure direction format, color, rounding and abbreviations\n// This is an Arcade expression\n\n// SETTINGS\nvar ShowDistance = true; //set as 'true' to show distance\nvar ShowDirection = false; //set as 'true' to show direction\nvar DirectionType = 1; // 1 = Quadrant Bearing; 2 = North Azimuth; 3 = South Azimuth\nvar ShowRadius = false; //set as 'true' to show radius\nvar ShowCurveParameter = true; //set as 'true' to show a curve parameter\nvar ShowCOGOType = true; //set as 'true' to show prefixes and postfixes defined below for each cogo line label\nvar COGOType_Entered = ['', ''] //Change prefix and postfix for Entered courses\nvar COGOType_Computed = ['', ''] //Change prefix and postfix for Computed courses\nvar COGOType_FromGeom = ['', ''] //Change for prefix and postfix From Geometry courses. The < is a special character to represent the left angle bracket\nvar COGOType_FromAnno = ['', ''] //Change for prefix and postfix From Anno_Dimension field.\nvar COGOType_Scaled = ['', 's'] //Change for prefix and postfix From Scaled Dimension.\nvar COGOType_Calculated = ['', 'c'] //Change for prefix and postfix From Calculated Dimension.\nvar COGOType_Deeded = ['', 'd'] //Change for prefix and postfix From Calculated Dimension.\nvar CurveParameter = \"ArcLength\"; //set as 'ArcLength' or 'Chord' or 'Angle' for central angle. Case sensitive!\nvar ErrorString = \"COGO ERROR\"; //set to display invalid COGO combinations\nvar RadiusAbbr = 'R='; //radius abbreviation\nvar Radius2Abbr = 'R2='; //radius2 abbreviation for spiral curves\nvar ArclengthAbrr = ''; //arclength abbreviation\nvar ChordAbbr = 'C='; //chord abbreviation\nvar AngleAbbr = 'A='; //central Angle abbreviation\nvar DistUnitRounding = 2; //number of decimal places for distance units: distance, radius, arclength & chord\nvar NumberFormat = \"#,###.00\" //number format. In this example: thousands separator with padding of 2 zeros \nvar directionColor = \"blue='255'\"; //direction color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar distanceColor = \"black='255'\"; //distance color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar radiusColor = \"blue='255'\"; //radius color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar curveParamColor = \"black='255'\"; //curve parameter color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar partialCOGOColor = \"magenta='255'\"; //partial COGO color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar invalidCOGOColor = \"red='255'\"; //invalid COGO color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar fontNameSize = \"\"; //font type and size\n\n// VARIABLES\nvar cogo_direction = $feature.Direction;\nvar cogo_distance = $feature.Distance;\nvar cogo_radius = $feature.Radius;\nvar cogo_arclength = $feature.Arclength;\nvar cogo_radius2 = $feature.Radius2\nvar cogotype = $feature.COGOType\nif (HasKey($feature, \"labelPosition\")){\n var labelPosition = $feature.labelPosition\n}\nelse {\n var labelPosition = 1\n}\nvar binaryDictionary; //binary dictionary to check COGO combinations\nvar checksum = 0; //initialize checksum\nvar validValuesArray; //array of valid values for COGO combinations\nvar partialValuesArray; //array of partial values for COGO\nvar directionStr = \"\"; //direction string using for label\nvar distanceStr = \"\"; //distance string using for label\nvar radiusStr = \"\"; //radius string using for label\nvar radius2Str = \"\"; //radius2 string using for labeling spiral curves\nvar curveStr = \"\"; //curve parameter string using for label\nvar prefixPostfix = ['', ''] //Used for prefix and postfix of COGO Type\nvar angleRad; //curve angle in radians\nvar COGOValidity; //COGO combinations validity. can be valid, partial or invalid.\n\nif (IsEmpty(cogo_direction) && IsEmpty(cogo_distance) && IsEmpty(cogo_radius) && IsEmpty(cogo_radius2) && IsEmpty(cogo_arclength)){\n return \"\"\n}\n\nfunction NorthAzimuth2Quadbearing(azimuth){\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'Quadrant', angleType: 'DMS', outputType: 'text', format: 'pd[°]mm[\\']ss[\"]b'})\n}\n\nfunction DMS_North(azimuth){\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'North', angleType: 'DMS', outputType: 'text', format: 'd[°]mm[\\']ss[\"]'})\n}\n\nfunction DMS_South(azimuth){\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'South', angleType: 'DMS', outputType: 'text', format: 'd[°]mm[\\']ss[\"]'})\n}\n\nfunction IsValidCOGO(cogo_direction, cogo_distance, cogo_radius, cogo_arclength, cogo_radius2) {\n binaryDictionary= Dictionary('dir', 1, 'dist',2, 'rad',4, 'arc',8, 'rad2',16)\n if (!IsEmpty(cogo_direction)) {checksum+=binaryDictionary.dir}\n if (!IsEmpty(cogo_distance)) {checksum+=binaryDictionary.dist}\n if (!IsEmpty(cogo_radius)) {checksum+=binaryDictionary.rad}\n if (!IsEmpty(cogo_arclength)) {checksum+=binaryDictionary.arc}\n if (!IsEmpty(cogo_radius2)) {checksum+=binaryDictionary.rad2}\n \n validValuesArray=[0,3,13,29]; //array of valid combinations: '0' for nothing, ... '13' for direction & radius & arclength ...\n partialValuesArray=[1,2,4,5,8,9,12,16,17,20,21,24,25,27,28]; //array of partial combinations: '1' for only direction, '2' for only distance, '4' for only radius...\n //Invalid Values = [6,7,10,11,14,15,18,19,22,23,26,30,31]\n\n\n if (IndexOf(validValuesArray,checksum)>-1) { // a negative value is returned if checksum value is not in the a valid combination array\n return \"valid\";\n }\n if (IndexOf(partialValuesArray,checksum)>-1){\n return \"partial\"; \n }\n return \"invalid\";\n}\n\nfunction COGOTypePrefixPostfix(cogotypeValue){\n if (ShowCOGOType){\n if (cogotypeValue == 1) { //Entered\n return COGOType_Entered\n }\n else if(cogotypeValue == 2) { //From Geometry\n return COGOType_FromGeom\n }\n else if(cogotypeValue == 3) { //Computed\n return COGOType_Computed\n }\n else if(cogotypeValue == 4) { //Computed\n return COGOType_FromAnno\n }\n else if(cogotypeValue == 5) { //Scaled Dimension\n return COGOType_Scaled\n }\n else if(cogotypeValue == 6) { //Calculated Dimension\n return COGOType_Deeded\n }\n else if(cogotypeValue == 7) { //Calculated Dimension\n return COGOType_Calculated\n }\n else { //If not set or invalid value\n return ['', '']\n }\n }\n else{\n return(['', ''])\n }\n}\n\nCOGOValidity = IsValidCOGO(cogo_direction, cogo_distance, cogo_radius, cogo_arclength, cogo_radius2);\nif ( COGOValidity == \"invalid\") { //if invalid COGO return error string\n return \"\" + fontNameSize + ErrorString + \"<\/FNT><\/CLR><\/BOL>\"; \n}\n\nelse if (COGOValidity == \"partial\") { //if a partial COGO change colors\n distanceColor = partialCOGOColor;\n directionColor = partialCOGOColor;\n radiusColor = partialCOGOColor;\n curveParamColor = partialCOGOColor;\n}\n\n// Direction string\nif (ShowDirection) {\n if (IsEmpty(cogo_direction)==false) {\n if (DirectionType == 1) { //using quadrant bearing format\n directionStr = NorthAzimuth2Quadbearing(cogo_direction);\n }\n else if (DirectionType == 2) { //using north azimuth format\n directionStr = DMS_North(cogo_direction);\n }\n else if (DirectionType == 3) { //using south azimuth format\n directionStr = DMS_South(cogo_direction);\n }\n }\n}\n\n// Distance string\nif (ShowDistance) {\n if (IsEmpty(cogo_distance)==false) {\n distanceStr = text(round(cogo_distance,DistUnitRounding), NumberFormat);\n }\n}\n\n//Radius String\nif (ShowRadius) {\n if (!IsEmpty(cogo_radius)) { //it can be a curve or a spiral\n if (IsEmpty(cogo_radius2)) { //if radius2 is empty this is a curve\n radiusStr = RadiusAbbr + \" \" + text(round(cogo_radius, DistUnitRounding), NumberFormat);\n }\n else { // it is a spiral\n radiusStr = RadiusAbbr + \" \" + text(round(cogo_radius, DistUnitRounding),NumberFormat);\n radius2Str = Radius2Abbr + \" \" + text(round(cogo_radius2, DistUnitRounding),NumberFormat);\n if (cogo_radius == 0) { //substitute to infinity sign\n radiusStr = RadiusAbbr + \" ∞ \";\n }\n if (cogo_radius2 == 0) { //substitute to infinity sign\n radius2Str = Radius2Abbr + \" ∞ \";\n }\n } \n \n }\n}\n\n// Curve Parameter\nif (ShowCurveParameter) {\n if (!IsEmpty(cogo_arclength)) {\n if (CurveParameter == 'ArcLength') {\n curveStr = text(round(cogo_arclength, DistUnitRounding), NumberFormat); //return Arc length\n }\n angleRad = cogo_arclength/(abs(cogo_radius)) //calculate angle in radians\n if (CurveParameter == 'Angle') {\n curveStr = DMS_North(angleRad * 180 / pi); // convert radian to degrees and show as DMS\n }\n if (CurveParameter == 'Chord') {\n curveStr = text(round((2 * abs(cogo_radius) * Sin(angleRad/2)),DistUnitRounding), NumberFormat); //calculate chord length\n } \n }\n}\n\n//Determine type of curve displayed\nvar CurveTypePrefix = \"\"\nif (!IsEmpty(curveStr)){\n if (CurveParameter == 'ArcLength'){\n CurveTypePrefix = ArclengthAbrr\n }\n else if (CurveParameter == 'Angle'){\n CurveTypePrefix = AngleAbbr\n }\n else if (CurveParameter == 'Chord'){\n CurveTypePrefix = ChordAbbr\n }\n}\n\nvar isStraightLine = IsEmpty(radiusStr) && IsEmpty(radius2Str) && IsEmpty(curveStr)\n\n// Assemble label string\n\n//Get prefix and postfix if either distance or curve is not empty. NOTE If both aren't empty it's invalid COGO\nif (!IsEmpty(distanceStr) || !IsEmpty(curveStr)){\n prefixPostfix = COGOTypePrefixPostfix(cogotype)\n}\n\nvar sharedLabelBuffer = \"\"\nif (labelPosition == 3) {\n sharedLabelBuffer = \" \\n\"\n}\n\n//Straight lines\nif (isStraightLine){\n if (!IsEmpty(directionStr) && !IsEmpty(distanceStr)){ //If Direction and Distance are both NOT Empty\n return fontNameSize + \"\" + directionStr + \"<\/CLR>\" + \"\\n\" +\n \"\" + prefixPostfix[0] + distanceStr + prefixPostfix[1] + \"<\/CLR><\/FNT>\";\n }\n else if (IsEmpty(directionStr)){ //If Direction is empty\n return fontNameSize + sharedLabelBuffer + \"\" +\n prefixPostfix[0] + distanceStr + prefixPostfix[1] + \"<\/CLR><\/FNT>\";\n }\n else{ //If Distance is empty\n return fontNameSize + sharedLabelBuffer + \"\" + directionStr + \"<\/CLR><\/FNT>\";\n }\n}\n\n//Curves\n//If one or both radii and the curve string are NOT empty show the full curve\nif ((!IsEmpty(radiusStr) || !IsEmpty(radius2Str)) && !IsEmpty(curveStr)){\n return fontNameSize + \"\" + radiusStr + \"<\/CLR>\" + \" \" +\n \"\" + radius2Str + \"<\/CLR>\" + \"\\n\" +\n \"\" + CurveTypePrefix + ' ' +\n prefixPostfix[0] + curveStr + prefixPostfix[1] + \"<\/CLR><\/FNT>\";\n}\n//If the curve is empty\nelse if (IsEmpty(curveStr)){\n return fontNameSize + sharedLabelBuffer + \"\" + radiusStr + \"<\/CLR>\" + \" \" +\n \"\" + radius2Str + \"<\/CLR><\/FNT>\"\n}\n//If both radius are empty\nelse{\n return fontNameSize + sharedLabelBuffer + \"\" + CurveTypePrefix + ' ' +\n prefixPostfix[0] + curveStr + prefixPostfix[1] + \"<\/CLR><\/FNT>\";\n}\n", "title": "Custom" }, "lineOrientation": "direction", "labelPlacement": "esriServerLinePlacementAboveStart", "textLayout": "followFeature", "deconflictionStrategy": "none", "lineConnection": "none", "multiPart": "labelPerFeature", "useClippedGeometry": true, "offsetDistance": 5, "stackLabel": true, "stackAlignment": "dynamic", "removeDuplicates": "none", "stackRowLength": 24, "where": "(LabelPosition = 2 And (Distance IS NOT NULL Or ArcLength IS NOT NULL))", "useCodedValues": true, "maxScale": 0, "minScale": 2500, "name": "Distance_Left", "priority": -1, "symbol": { "type": "esriTS", "color": [ 0, 0, 0, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 255, 255, 255, 255 ], "haloSize": 1, "font": { "family": "Tahoma", "size": 10, "style": "normal", "weight": "normal", "decoration": "none" } } }, { "labelExpressionInfo": { "expression": "// Change the settings portion to configure direction format, color, rounding and abbreviations\n// This is an Arcade expression\n\n// SETTINGS\nvar ShowDistance = true; //set as 'true' to show distance\nvar ShowDirection = false; //set as 'true' to show direction\nvar DirectionType = 1; // 1 = Quadrant Bearing; 2 = North Azimuth; 3 = South Azimuth\nvar ShowRadius = false; //set as 'true' to show radius\nvar ShowCurveParameter = true; //set as 'true' to show a curve parameter\nvar ShowCOGOType = true; //set as 'true' to show prefixes and postfixes defined below for each cogo line label\nvar COGOType_Entered = ['', ''] //Change prefix and postfix for Entered courses\nvar COGOType_Computed = ['', ''] //Change prefix and postfix for Computed courses\nvar COGOType_FromGeom = ['', ''] //Change for prefix and postfix From Geometry courses. The < is a special character to represent the left angle bracket\nvar COGOType_FromAnno = ['', ''] //Change for prefix and postfix From Anno_Dimension field.\nvar COGOType_Scaled = ['', 's'] //Change for prefix and postfix From Scaled Dimension.\nvar COGOType_Calculated = ['', 'c'] //Change for prefix and postfix From Calculated Dimension.\nvar COGOType_Deeded = ['', 'd'] //Change for prefix and postfix From Calculated Dimension.\nvar CurveParameter = \"ArcLength\"; //set as 'ArcLength' or 'Chord' or 'Angle' for central angle. Case sensitive!\nvar ErrorString = \"COGO ERROR\"; //set to display invalid COGO combinations\nvar RadiusAbbr = 'R='; //radius abbreviation\nvar Radius2Abbr = 'R2='; //radius2 abbreviation for spiral curves\nvar ArclengthAbrr = ''; //arclength abbreviation\nvar ChordAbbr = 'C='; //chord abbreviation\nvar AngleAbbr = 'A='; //central Angle abbreviation\nvar DistUnitRounding = 2; //number of decimal places for distance units: distance, radius, arclength & chord\nvar NumberFormat = \"#,###.00\" //number format. In this example: thousands separator with padding of 2 zeros \nvar directionColor = \"blue='255'\"; //direction color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar distanceColor = \"black='255'\"; //distance color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar radiusColor = \"blue='255'\"; //radius color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar curveParamColor = \"black='255'\"; //curve parameter color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar partialCOGOColor = \"magenta='255'\"; //partial COGO color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar invalidCOGOColor = \"red='255'\"; //invalid COGO color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\nvar fontNameSize = \"\"; //font type and size\n\n// VARIABLES\nvar cogo_direction = $feature.Direction;\nvar cogo_distance = $feature.Distance;\nvar cogo_radius = $feature.Radius;\nvar cogo_arclength = $feature.Arclength;\nvar cogo_radius2 = $feature.Radius2\nvar cogotype = $feature.COGOType\nif (HasKey($feature, \"labelPosition\")){\n var labelPosition = $feature.labelPosition\n}\nelse {\n var labelPosition = 1\n}\nvar binaryDictionary; //binary dictionary to check COGO combinations\nvar checksum = 0; //initialize checksum\nvar validValuesArray; //array of valid values for COGO combinations\nvar partialValuesArray; //array of partial values for COGO\nvar directionStr = \"\"; //direction string using for label\nvar distanceStr = \"\"; //distance string using for label\nvar radiusStr = \"\"; //radius string using for label\nvar radius2Str = \"\"; //radius2 string using for labeling spiral curves\nvar curveStr = \"\"; //curve parameter string using for label\nvar prefixPostfix = ['', ''] //Used for prefix and postfix of COGO Type\nvar angleRad; //curve angle in radians\nvar COGOValidity; //COGO combinations validity. can be valid, partial or invalid.\n\nif (IsEmpty(cogo_direction) && IsEmpty(cogo_distance) && IsEmpty(cogo_radius) && IsEmpty(cogo_radius2) && IsEmpty(cogo_arclength)){\n return \"\"\n}\n\nfunction NorthAzimuth2Quadbearing(azimuth){\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'Quadrant', angleType: 'DMS', outputType: 'text', format: 'pd[°]mm[\\']ss[\"]b'})\n}\n\nfunction DMS_North(azimuth){\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'North', angleType: 'DMS', outputType: 'text', format: 'd[°]mm[\\']ss[\"]'})\n}\n\nfunction DMS_South(azimuth){\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'South', angleType: 'DMS', outputType: 'text', format: 'd[°]mm[\\']ss[\"]'})\n}\n\nfunction IsValidCOGO(cogo_direction, cogo_distance, cogo_radius, cogo_arclength, cogo_radius2) {\n binaryDictionary= Dictionary('dir', 1, 'dist',2, 'rad',4, 'arc',8, 'rad2',16)\n if (!IsEmpty(cogo_direction)) {checksum+=binaryDictionary.dir}\n if (!IsEmpty(cogo_distance)) {checksum+=binaryDictionary.dist}\n if (!IsEmpty(cogo_radius)) {checksum+=binaryDictionary.rad}\n if (!IsEmpty(cogo_arclength)) {checksum+=binaryDictionary.arc}\n if (!IsEmpty(cogo_radius2)) {checksum+=binaryDictionary.rad2}\n \n validValuesArray=[0,3,13,29]; //array of valid combinations: '0' for nothing, ... '13' for direction & radius & arclength ...\n partialValuesArray=[1,2,4,5,8,9,12,16,17,20,21,24,25,27,28]; //array of partial combinations: '1' for only direction, '2' for only distance, '4' for only radius...\n //Invalid Values = [6,7,10,11,14,15,18,19,22,23,26,30,31]\n\n\n if (IndexOf(validValuesArray,checksum)>-1) { // a negative value is returned if checksum value is not in the a valid combination array\n return \"valid\";\n }\n if (IndexOf(partialValuesArray,checksum)>-1){\n return \"partial\"; \n }\n return \"invalid\";\n}\n\nfunction COGOTypePrefixPostfix(cogotypeValue){\n if (ShowCOGOType){\n if (cogotypeValue == 1) { //Entered\n return COGOType_Entered\n }\n else if(cogotypeValue == 2) { //From Geometry\n return COGOType_FromGeom\n }\n else if(cogotypeValue == 3) { //Computed\n return COGOType_Computed\n }\n else if(cogotypeValue == 4) { //Computed\n return COGOType_FromAnno\n }\n else if(cogotypeValue == 5) { //Scaled Dimension\n return COGOType_Scaled\n }\n else if(cogotypeValue == 6) { //Calculated Dimension\n return COGOType_Deeded\n }\n else if(cogotypeValue == 7) { //Calculated Dimension\n return COGOType_Calculated\n }\n else { //If not set or invalid value\n return ['', '']\n }\n }\n else{\n return(['', ''])\n }\n}\n\nCOGOValidity = IsValidCOGO(cogo_direction, cogo_distance, cogo_radius, cogo_arclength, cogo_radius2);\nif ( COGOValidity == \"invalid\") { //if invalid COGO return error string\n return \"\" + fontNameSize + ErrorString + \"<\/FNT><\/CLR><\/BOL>\"; \n}\n\nelse if (COGOValidity == \"partial\") { //if a partial COGO change colors\n distanceColor = partialCOGOColor;\n directionColor = partialCOGOColor;\n radiusColor = partialCOGOColor;\n curveParamColor = partialCOGOColor;\n}\n\n// Direction string\nif (ShowDirection) {\n if (IsEmpty(cogo_direction)==false) {\n if (DirectionType == 1) { //using quadrant bearing format\n directionStr = NorthAzimuth2Quadbearing(cogo_direction);\n }\n else if (DirectionType == 2) { //using north azimuth format\n directionStr = DMS_North(cogo_direction);\n }\n else if (DirectionType == 3) { //using south azimuth format\n directionStr = DMS_South(cogo_direction);\n }\n }\n}\n\n// Distance string\nif (ShowDistance) {\n if (IsEmpty(cogo_distance)==false) {\n distanceStr = text(round(cogo_distance,DistUnitRounding), NumberFormat);\n }\n}\n\n//Radius String\nif (ShowRadius) {\n if (!IsEmpty(cogo_radius)) { //it can be a curve or a spiral\n if (IsEmpty(cogo_radius2)) { //if radius2 is empty this is a curve\n radiusStr = RadiusAbbr + \" \" + text(round(cogo_radius, DistUnitRounding), NumberFormat);\n }\n else { // it is a spiral\n radiusStr = RadiusAbbr + \" \" + text(round(cogo_radius, DistUnitRounding),NumberFormat);\n radius2Str = Radius2Abbr + \" \" + text(round(cogo_radius2, DistUnitRounding),NumberFormat);\n if (cogo_radius == 0) { //substitute to infinity sign\n radiusStr = RadiusAbbr + \" ∞ \";\n }\n if (cogo_radius2 == 0) { //substitute to infinity sign\n radius2Str = Radius2Abbr + \" ∞ \";\n }\n } \n \n }\n}\n\n// Curve Parameter\nif (ShowCurveParameter) {\n if (!IsEmpty(cogo_arclength)) {\n if (CurveParameter == 'ArcLength') {\n curveStr = text(round(cogo_arclength, DistUnitRounding), NumberFormat); //return Arc length\n }\n angleRad = cogo_arclength/(abs(cogo_radius)) //calculate angle in radians\n if (CurveParameter == 'Angle') {\n curveStr = DMS_North(angleRad * 180 / pi); // convert radian to degrees and show as DMS\n }\n if (CurveParameter == 'Chord') {\n curveStr = text(round((2 * abs(cogo_radius) * Sin(angleRad/2)),DistUnitRounding), NumberFormat); //calculate chord length\n } \n }\n}\n\n//Determine type of curve displayed\nvar CurveTypePrefix = \"\"\nif (!IsEmpty(curveStr)){\n if (CurveParameter == 'ArcLength'){\n CurveTypePrefix = ArclengthAbrr\n }\n else if (CurveParameter == 'Angle'){\n CurveTypePrefix = AngleAbbr\n }\n else if (CurveParameter == 'Chord'){\n CurveTypePrefix = ChordAbbr\n }\n}\n\nvar isStraightLine = IsEmpty(radiusStr) && IsEmpty(radius2Str) && IsEmpty(curveStr)\n\n// Assemble label string\n\n//Get prefix and postfix if either distance or curve is not empty. NOTE If both aren't empty it's invalid COGO\nif (!IsEmpty(distanceStr) || !IsEmpty(curveStr)){\n prefixPostfix = COGOTypePrefixPostfix(cogotype)\n}\n\nvar sharedLabelBuffer = \"\"\nif (labelPosition == 3) {\n sharedLabelBuffer = \" \\n\"\n}\n\n//Straight lines\nif (isStraightLine){\n if (!IsEmpty(directionStr) && !IsEmpty(distanceStr)){ //If Direction and Distance are both NOT Empty\n return fontNameSize + \"\" + directionStr + \"<\/CLR>\" + \"\\n\" +\n \"\" + prefixPostfix[0] + distanceStr + prefixPostfix[1] + \"<\/CLR><\/FNT>\";\n }\n else if (IsEmpty(directionStr)){ //If Direction is empty\n return fontNameSize + sharedLabelBuffer + \"\" +\n prefixPostfix[0] + distanceStr + prefixPostfix[1] + \"<\/CLR><\/FNT>\";\n }\n else{ //If Distance is empty\n return fontNameSize + sharedLabelBuffer + \"\" + directionStr + \"<\/CLR><\/FNT>\";\n }\n}\n\n//Curves\n//If one or both radii and the curve string are NOT empty show the full curve\nif ((!IsEmpty(radiusStr) || !IsEmpty(radius2Str)) && !IsEmpty(curveStr)){\n return fontNameSize + \"\" + radiusStr + \"<\/CLR>\" + \" \" +\n \"\" + radius2Str + \"<\/CLR>\" + \"\\n\" +\n \"\" + CurveTypePrefix + ' ' +\n prefixPostfix[0] + curveStr + prefixPostfix[1] + \"<\/CLR><\/FNT>\";\n}\n//If the curve is empty\nelse if (IsEmpty(curveStr)){\n return fontNameSize + sharedLabelBuffer + \"\" + radiusStr + \"<\/CLR>\" + \" \" +\n \"\" + radius2Str + \"<\/CLR><\/FNT>\"\n}\n//If both radius are empty\nelse{\n return fontNameSize + sharedLabelBuffer + \"\" + CurveTypePrefix + ' ' +\n prefixPostfix[0] + curveStr + prefixPostfix[1] + \"<\/CLR><\/FNT>\";\n}\n", "title": "Custom" }, "labelPlacement": "esriServerLinePlacementCenterStart", "textLayout": "followFeature", "deconflictionStrategy": "none", "lineConnection": "none", "multiPart": "labelPerFeature", "useClippedGeometry": true, "stackLabel": true, "stackAlignment": "dynamic", "removeDuplicates": "none", "stackRowLength": 24, "where": "(LabelPosition = 3 And (Distance IS NOT NULL Or ArcLength IS NOT NULL))", "useCodedValues": true, "maxScale": 0, "minScale": 2500, "name": "Distance_Shared", "priority": -1, "symbol": { "type": "esriTS", "color": [ 0, 0, 0, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 255, 255, 255, 255 ], "haloSize": 1, "font": { "family": "Tahoma", "size": 10, "style": "normal", "weight": "normal", "decoration": "none" } } } ] }, "defaultVisibility": true, "extent": { "xmin": 2034851.8194070794, "ymin": 1649129.8702989891, "xmax": 2183249.1807482466, "ymax": 1818871.4619174898, "spatialReference": { "wkid": 102630, "latestWkid": 102630, "xyTolerance": 6.561666666666666E-4, "zTolerance": 2.0E-4, "mTolerance": 0.001, "falseX": -16478800, "falseY": -43705000, "xyUnits": 3048.0060960121928, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayFieldExpressionInfo": { "expression": "// Change the settings portion to configure direction format, rounding and abbreviations\n// This is an Arcade expression\n\n// SETTINGS\nvar ShowDistance = true; //set as 'true' to show distance\nvar ShowDirection = true; //set as 'true' to show direction\nvar DirectionType = 1; // 1 = Quadrant Bearing; 2 = North Azimuth; 3 = South Azimuth\nvar ShowRadius = true; //set as 'true' to show radius\nvar ShowCurveParameter = true; //set as 'true' to show a curve parameter\nvar ShowCOGOType = true; //set as 'true' to show prefixes and postfixes defined below for each cogo line label\nvar COGOType_Entered = ['', ''] //Change prefix and postfix for Entered courses\nvar COGOType_Computed = ['±', ''] //Change prefix and postfix for Computed courses\nvar COGOType_FromGeom = ['<', '>'] //Change for prefix and postfix From Geometry courses. The < is a special character to represent the left angle bracket\nvar CurveParameter = \"ArcLength\"; //set as 'ArcLength' or 'Chord' or 'Angle' for central angle. Case sensitive!\nvar ErrorString = \"COGO ERROR\"; //set to display invalid COGO combinations\nvar RadiusAbbr = 'R='; //radius abbreviation\nvar Radius2Abbr = 'R2='; //radius2 abbreviation for spiral curves\nvar ArclengthAbrr = 'L='; //arclength abbreviation\nvar ChordAbbr = 'C='; //chord abbreviation\nvar AngleAbbr = 'A='; //central Angle abbreviation\nvar DistUnitRounding = 2; //number of decimal places for distance units: distance, radius, arclength & chord\nvar NumberFormat = \"#,###.00\" //number format. In this example: thousands separator with padding of 2 zeros\n\n// VARIABLES\nvar cogo_direction = $feature.Direction;\nvar cogo_distance = $feature.Distance;\nvar cogo_radius = $feature.Radius;\nvar cogo_arclength = $feature.Arclength;\nvar cogo_radius2 = $feature.Radius2\nvar cogotype = $feature.COGOType\nvar binaryDictionary; //binary dictionary to check COGO combinations\nvar checksum = 0; //initialize checksum\nvar validValuesArray; //array of valid values for COGO combinations\nvar partialValuesArray; //array of partial values for COGO\nvar directionStr = \"\"; //direction string using for label\nvar distanceStr = \"\"; //distance string using for label\nvar radiusStr = \"\"; //radius string using for label\nvar radius2Str = \"\"; //radius2 string using for labeling spiral curves\nvar curveStr = \"\"; //curve parameter string using for label\nvar prefixPostfix = ['', ''] //Used for prefix and postfix of COGO Type\nvar angleRad; //curve angle in radians\nvar COGOValidity; //COGO combinations validity. can be valid, partial or invalid.\n\nif (IsEmpty(cogo_direction) && IsEmpty(cogo_distance) && IsEmpty(cogo_radius) && IsEmpty(cogo_radius2) && IsEmpty(cogo_arclength)){\n return \"\"\n}\n\nfunction NorthAzimuth2Quadbearing(azimuth){\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'Quadrant', angleType: 'DMS', outputType: 'text', format: 'pd[°]mm[\\']ss[\"]b'})\n}\n\nfunction DMS_North(azimuth){\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'North', angleType: 'DMS', outputType: 'text', format: 'd[°]mm[\\']ss[\"]'})\n}\n\nfunction DMS_South(azimuth){\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'South', angleType: 'DMS', outputType: 'text', format: 'd[°]mm[\\']ss[\"]'})\n}\n\nfunction IsValidCOGO(cogo_direction, cogo_distance, cogo_radius, cogo_arclength, cogo_radius2) {\n binaryDictionary= Dictionary('dir', 1, 'dist',2, 'rad',4, 'arc',8, 'rad2',16)\n if (!IsEmpty(cogo_direction)) {checksum+=binaryDictionary.dir}\n if (!IsEmpty(cogo_distance)) {checksum+=binaryDictionary.dist}\n if (!IsEmpty(cogo_radius)) {checksum+=binaryDictionary.rad}\n if (!IsEmpty(cogo_arclength)) {checksum+=binaryDictionary.arc}\n if (!IsEmpty(cogo_radius2)) {checksum+=binaryDictionary.rad2}\n \n validValuesArray=[0,3,13,29]; //array of valid combinations: '0' for nothing, ... '13' for direction & radius & arclength ...\n partialValuesArray=[1,2,4,5,8,9,12,16,17,20,21,24,25,27,28]; //array of partial combinations: '1' for only direction, '2' for only distance, '4' for only radius...\n //Invalid Values = [6,7,10,11,14,15,18,19,22,23,26,30,31]\n\n\n if (IndexOf(validValuesArray,checksum)>-1) { // a negative value is returned if checksum value is not in the a valid combination array\n return \"valid\";\n }\n if (IndexOf(partialValuesArray,checksum)>-1){\n return \"partial\";\n }\n return \"invalid\";\n}\n\nfunction COGOTypePrefixPostfix(cogotypeValue){\n if (ShowCOGOType){\n if (cogotypeValue == 1) { //Entered\n return COGOType_Entered\n }\n else if(cogotypeValue == 2) { //From Geometry\n return COGOType_FromGeom\n }\n else if(cogotypeValue == 3) { //Computed\n return COGOType_Computed\n }\n else { //If not set or invalid value\n return ['', '']\n }\n }\n else{\n return(['', ''])\n }\n}\n\nCOGOValidity = IsValidCOGO(cogo_direction, cogo_distance, cogo_radius, cogo_arclength, cogo_radius2);\nif ( COGOValidity == \"invalid\") { //if invalid COGO return error string\n return ErrorString;\n}\n\n\n// Direction string\nif (ShowDirection) {\n if (IsEmpty(cogo_direction)==false) {\n if (DirectionType == 1) { //using quadrant bearing format\n directionStr = NorthAzimuth2Quadbearing(cogo_direction);\n }\n else if (DirectionType == 2) { //using north azimuth format\n directionStr = DMS_North(cogo_direction);\n }\n else if (DirectionType == 3) { //using south azimuth format\n directionStr = DMS_South(cogo_direction);\n }\n }\n}\n\n// Distance string\nif (ShowDistance) {\n if (IsEmpty(cogo_distance)==false) {\n distanceStr = text(round(cogo_distance,DistUnitRounding), NumberFormat);\n }\n}\n\n//Radius String\nif (ShowRadius) {\n if (!IsEmpty(cogo_radius)) { //it can be a curve or a spiral\n if (IsEmpty(cogo_radius2)) { //if radius2 is empty this is a curve\n radiusStr = RadiusAbbr + \" \" + text(round(cogo_radius, DistUnitRounding), NumberFormat);\n }\n else { // it is a spiral\n radiusStr = RadiusAbbr + \" \" + text(round(cogo_radius, DistUnitRounding),NumberFormat);\n radius2Str = Radius2Abbr + \" \" + text(round(cogo_radius2, DistUnitRounding),NumberFormat);\n if (cogo_radius == 0) { //substitute to infinity sign\n radiusStr = RadiusAbbr + \" ∞ \";\n }\n if (cogo_radius2 == 0) { //substitute to infinity sign\n radius2Str = Radius2Abbr + \" ∞ \";\n }\n }\n\n }\n}\n\n// Curve Parameter\nif (ShowCurveParameter) {\n if (!IsEmpty(cogo_arclength)) {\n if (CurveParameter == 'ArcLength') {\n curveStr = text(round(cogo_arclength, DistUnitRounding), NumberFormat); //return Arc length\n }\n angleRad = cogo_arclength/(abs(cogo_radius)) //calculate angle in radians\n if (CurveParameter == 'Angle') {\n curveStr = DMS_North(angleRad * 180 / pi); // convert radian to degrees and show as DMS\n }\n if (CurveParameter == 'Chord') {\n curveStr = text(round((2 * abs(cogo_radius) * Sin(angleRad/2)),DistUnitRounding), NumberFormat); //calculate chord length\n }\n }\n}\n\n//Determine type of curve displayed\nvar CurveTypePrefix = \"\"\nif (!IsEmpty(curveStr)){\n if (CurveParameter == 'ArcLength'){\n CurveTypePrefix = ArclengthAbrr\n }\n else if (CurveParameter == 'Angle'){\n CurveTypePrefix = AngleAbbr\n }\n else if (CurveParameter == 'Chord'){\n CurveTypePrefix = ChordAbbr\n }\n}\n\nvar isStraightLine = IsEmpty(radiusStr) && IsEmpty(radius2Str) && IsEmpty(curveStr)\n\n//Get prefix and postfix if either distance or curve is not empty. NOTE If both aren't empty it's invalid COGO\nif (!IsEmpty(distanceStr) || !IsEmpty(curveStr)){\n prefixPostfix = COGOTypePrefixPostfix(cogotype)\n}\n\n// Assemble label string\nif (isStraightLine){\n if (!IsEmpty(directionStr) && !IsEmpty(distanceStr)){ //If Direction and Distance are both NOT Empty\n return directionStr + ' ' + prefixPostfix[0] + distanceStr + prefixPostfix[1];\n }\n else if (IsEmpty(directionStr)){ //If Direction is empty\n return prefixPostfix[0] + distanceStr + prefixPostfix[1];\n }\n else{ //If Distance is empty\n return directionStr\n }\n}\n\n//Curves\n//If one or both radii and the curve string are NOT empty show the full curve\nif ((!IsEmpty(radiusStr) || !IsEmpty(radius2Str)) && !IsEmpty(curveStr)){\n return radiusStr + \" \" + radius2Str + ' ' + CurveTypePrefix + ' ' + prefixPostfix[0] + curveStr + prefixPostfix[1];\n}\n//If the curve is empty\nelse if (IsEmpty(curveStr)){\n return radiusStr + \" \" + radius2Str\n}\n//If both radius are empty\nelse{\n return CurveTypePrefix + ' ' + prefixPostfix[0] + curveStr + prefixPostfix[1];\n}\n\n\n", "title": "DisplayExpression" }, "displayField": "created_user", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "FCODE", "type": "esriFieldTypeSmallInteger", "alias": "FCODE", "domain": { "type": "codedValue", "name": "PF_ParcelLineDesignation", "description": "Delinates type of Parcel Line", "codedValues": [ { "name": "New SubType", "code": 1 }, { "name": "Parcel", "code": 500 }, { "name": "Interstate Road", "code": 501 }, { "name": "State Road", "code": 502 }, { "name": "County Road", "code": 503 }, { "name": "City Road", "code": 504 }, { "name": "Railroad", "code": 505 }, { "name": "Hidden ROW", "code": 506 }, { "name": "Water Property", "code": 508 }, { "name": "Private Road", "code": 509 }, { "name": "US Road", "code": 510 }, { "name": "Township", "code": 800 }, { "name": "Dashed Township", "code": 801 }, { "name": "Section", "code": 802 }, { "name": "Dashed Section", "code": 803 }, { "name": "Quarter Section", "code": 804 }, { "name": "Dashed Quarter Section", "code": 805 }, { "name": "County", "code": 901 }, { "name": "State", "code": 902 }, { "name": "Road Lines", "code": 904 }, { "name": "Unknown", "code": 999 } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDuplicate" } }, { "name": "TextString_DimAnno", "type": "esriFieldTypeString", "alias": "TextString_DimAnno", "length": 255, "domain": null }, { "name": "Join_Count_DimAnno", "type": "esriFieldTypeInteger", "alias": "Join_Count_DimAnno", "domain": null }, { "name": "COGOType", "type": "esriFieldTypeInteger", "alias": "COGO Type", "domain": { "type": "codedValue", "name": "PF_COGOType", "description": "Parcel Fabric COGO Type", "codedValues": [ { "name": "Entered", "code": 1 }, { "name": "From Geometry", "code": 2 }, { "name": "Computed", "code": 3 }, { "name": "From Anno", "code": 4 }, { "name": "Scaled", "code": 5 }, { "name": "Deeded", "code": 6 }, { "name": "Calculated", "code": 7 } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "Direction", "type": "esriFieldTypeDouble", "alias": "Direction", "domain": null }, { "name": "Distance", "type": "esriFieldTypeDouble", "alias": "Distance", "domain": null }, { "name": "Radius", "type": "esriFieldTypeDouble", "alias": "Radius", "domain": null }, { "name": "ArcLength", "type": "esriFieldTypeDouble", "alias": "Arc Length", "domain": null }, { "name": "Radius2", "type": "esriFieldTypeDouble", "alias": "Radius2", "domain": null }, { "name": "LabelPosition", "type": "esriFieldTypeInteger", "alias": "Label Position", "domain": { "type": "codedValue", "name": "PF_LabelPosition", "description": "Indicates if the label position is to the left or right of the parcel line or is centered over the parcel line", "codedValues": [ { "name": "Right", "code": 1 }, { "name": "Left", "code": 2 }, { "name": "Centered", "code": 3 } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "offdir", "type": "esriFieldTypeString", "alias": "offdir", "length": 5, "domain": null }, { "name": "created_user", "type": "esriFieldTypeString", "alias": "Created By", "length": 255, "domain": null }, { "name": "created_date", "type": "esriFieldTypeDate", "alias": "Created Date", "length": 8, "domain": null }, { "name": "last_edited_user", "type": "esriFieldTypeString", "alias": "Modified By", "length": 255, "domain": null }, { "name": "last_edited_date", "type": "esriFieldTypeDate", "alias": "Modified Date", "length": 8, "domain": null }, { "name": "Shape.STLength()", "type": "esriFieldTypeDouble", "alias": "Shape.STLength()", "domain": null } ], "geometryField": {}, "indexes": null, "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": true, "capabilities": "Query,Map,Data", "maxRecordCount": 2000, "supportsStatistics": true, "supportsExceedsLimitStatistics": true, "supportsAdvancedQueries": true, "hasZ": 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": false, "supportsCurrentUserQueries": true }, "supportsDatumTransformation": true, "dateFieldsTimeReference": { "timeZone": "Central Standard Time", "respectsDaylightSaving": false }, "preferredTimeReference": { "timeZone": "Central Standard Time", "respectsDaylightSaving": false }, "datesInUnknownTimezone": false, "hasGeometryProperties": true, "geometryProperties": { "shapeLengthFieldName": "Shape.STLength()", "units": "esriFeet", "mapUnits": {"uwkid": 9003} }, "hasMetadata": true, "isDataArchived": true, "archivingInfo": { "supportsQueryWithHistoricMoment": true, "startArchivingMoment": 1726586917000 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "c4bb4493091f4212b2356cb1d377a3a5" }