{ "tables": [], "layers": [{ "extent": { "ymin": 115283.10644522309, "zmin": -92995.142699999997, "xmin": 2777251.312573716, "ymax": 373433.26238797605, "zmax": 20279608844.901699, "xmax": 2970402.9092093855, "spatialReference": { "xyTolerance": 0.0032808333333333331, "mUnits": 10000, "zUnits": 10000, "latestWkid": 102721, "xyUnits": 3048.00609601219276, "mTolerance": 0.001, "falseX": -117105100, "falseY": -98987300, "falseZ": -100000, "latestVcsWkid": 5703, "falseM": -100000, "zTolerance": 0.001, "wkid": 102721, "vcsWkid": 5703 } }, "maxRecordCount": 2000, "datesInUnknownTimezone": false, "ownershipBasedAccessControlForFeatures": {"allowOthersToQuery": true}, "type": "Feature Layer", "displayFieldExpressionInfo": { "expression": "// Change the settings portion to configure direction format, rounding and abbreviations\n// This is an Arcade expression\n\n// SETTINGS\nvar QuadrantBearingFormat = true; //set 'true' for quadrant bearing, 'false' for north azimuth\nvar ShowDistance = true; //set as 'true' to show distance\nvar ShowDirection = true; //set as 'true' to show direction\nvar ShowRadius = true; //set as 'true' to show radius\nvar ShowCurveParemater = true; //set as 'true' to show a curve parameter\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 direction=$feature.Direction;\nvar distance=$feature.Distance;\nvar radius=$feature.Radius;\nvar arclength=$feature.Arclength;\nvar radius2=$feature.Radius2\nvar prefix; // quadrant bearing prefix\nvar postfix; // quadrant bearing postfix\nvar bearing; \nvar quadbearing;\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 degrees;\nvar minutes;\nvar seconds;\nvar DMS;\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 angleRad; //curve angle in radians\nvar COGOValidity; //COGO combinations validity. can be valid, partial or invalid.\n\n\nfunction NorthAzimuth2Quadbearing(azimuth){\n if (azimuth<90 && azimuth>=0){\n bearing=azimuth;\n prefix = \"N\";\n postfix= \"E\";}\n else if (azimuth<180 && azimuth>=90){\n bearing=180-azimuth;\n prefix = \"S\";\n postfix= \"E\";}\n else if (azimuth<270 && azimuth>=180){\n bearing=abs(180-azimuth);\n prefix = \"S\";\n postfix= \"W\";}\n else if (azimuth<360 && azimuth>=270){\n bearing=360-azimuth;\n prefix = \"N\";\n postfix= \"W\";}\n \n degrees=floor(bearing);\n minutes=floor((bearing-degrees)*60)\n seconds=((bearing-degrees-minutes/60)*3600)\n if (seconds>=59.5){\n seconds=0;\n minutes+=1;\n if (minutes==60){\n minutes=0;\n degrees+=1;}}\n quadbearing=prefix+degrees+\"°\"+text(minutes,\"00\")+\"'\"+text(seconds,\"00\")+\"''\"+postfix;\n return quadbearing;\n}\n\nfunction DMS(bearing){\n degrees=floor(bearing);\n minutes=floor((bearing-degrees)*60)\n seconds=((bearing-degrees-minutes/60)*3600)\n if (seconds>=59.5){\n seconds=0;\n minutes+=1;\n if (minutes==60){\n minutes=0;\n degrees+=1;}}\n DMS=degrees+\"°\"+text(minutes,\"00\")+\"'\"+text(seconds,\"00\")+\"''\";\n return DMS;\n \n}\nfunction IsValidCOGO(direction, distance, radius, arclength, radius2) {\n binaryDictionary= Dictionary('dir', 1, 'dist',2, 'rad',4, 'arc',8, 'rad2',16)\n if (!IsEmpty(direction)) {checksum+=binaryDictionary.dir}\n if (!IsEmpty(distance)) {checksum+=binaryDictionary.dist}\n if (!IsEmpty(radius)) {checksum+=binaryDictionary.rad}\n if (!IsEmpty(arclength)) {checksum+=binaryDictionary.arc}\n if (!IsEmpty(radius2)) {checksum+=binaryDictionary.rad2}\n \n validValuesArray=[0,3,8,13,29]; //array of valid combinations: '0' for nothing, ... '13' for direction & radius & arclength ...\n partialValuesArray=[1,2,4,5,9,12,16,20,21,25,28]; //array of partial combinations: '1' for only direction, '2' for only distance...\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\nCOGOValidity = IsValidCOGO(direction, distance, radius, arclength, radius2);\nif ( COGOValidity == \"invalid\") { //if invalid COGO return error string\n return ErrorString; \n}\n\n// Direction string\nif (ShowDirection) {\n if (IsEmpty(direction)==false) { \n if (QuadrantBearingFormat==true) { //using quadrant bearing format\n directionStr = NorthAzimuth2Quadbearing(direction);\n }\n else { //using north azimuth format\n directionStr = DMS(direction);\n }\n }\n}\n\n// Distance string\nif (ShowDistance) {\n if (IsEmpty(distance)==false) {\n distanceStr = text(round(distance,DistUnitRounding), NumberFormat);\n }\n}\n\n//Radius String\nif (ShowRadius) {\n if (!IsEmpty(radius)) { //it can be a curve or a spiral\n if (IsEmpty(radius2)) { //if radius2 is empty this is a curve\n radiusStr = RadiusAbbr + \" \" + text(round(radius, DistUnitRounding), NumberFormat);\n }\n else { // it is a spiral\n radiusStr = RadiusAbbr + \" \" + text(round(radius, DistUnitRounding),NumberFormat);\n radius2Str = Radius2Abbr + \" \" + text(round(radius2, DistUnitRounding),NumberFormat);\n if (radius == 0) { //substitute to infinity sign\n radiusStr = RadiusAbbr + \" ∞ \";\n }\n if (radius2 == 0) { //substitute to infinity sign\n radius2Str = Radius2Abbr + \" ∞ \";\n }\n } \n \n }\n}\n// Curve Parameter\nif (ShowCurveParemater) {\n if (!IsEmpty(arclength)) {\n if (CurveParameter == 'ArcLength') {\n curveStr = ArclengthAbrr + text(round(arclength, DistUnitRounding), NumberFormat); //return Arc length \n }\n angleRad = arclength/(abs(radius)) //calculate angle in radians\n if (CurveParameter == 'Angle') {\n curveStr = AngleAbbr + DMS(angleRad * 180 / pi); // convert radian to degrees and show as DMS\n }\n if (CurveParameter == 'Chord') {\n curveStr = ChordAbbr + text(round((2 * abs(radius) * Sin(angleRad/2)),DistUnitRounding), NumberFormat); //calculate chord length\n } \n }\n}\n \n// Assemble label string\nif (IsEmpty(radius)) { //if its empty it is not a curve\n return directionStr + \" \" + distanceStr\n}\nelse { //it's a curve\n return radiusStr + \" \" + radius2Str + \" \" + curveStr;\n}", "title": "Custom" }, "maxSelectionCount": 2000, "subtypes": [], "relationships": [], "cimVersion": "3.6.0", "isDataArchived": true, "id": 1, "archivingInfo": { "startArchivingMoment": 1724428050000, "supportsQueryWithHistoricMoment": true }, "spatialReference": { "xyTolerance": 0.0032808333333333331, "mUnits": 10000, "zUnits": 10000, "latestWkid": 102721, "xyUnits": 3048.00609601219276, "mTolerance": 0.001, "falseX": -117105100, "falseY": -98987300, "falseZ": -100000, "latestVcsWkid": 5703, "falseM": -100000, "zTolerance": 0.001, "wkid": 102721, "vcsWkid": 5703 }, "subtypeFieldName": null, "supportsStatistics": true, "isDataVersioned": true, "hasGeometryProperties": true, "supportsAdvancedQueries": true, "parentLayer": null, "subLayers": [], "currentVersion": 12, "referenceScale": 0, "heightModelInfo": { "vertCRS": "NAVD_1988", "heightModel": "gravity_related_height", "heightUnit": "meter" }, "canScaleSymbols": false, "hasZ": true, "name": "Dimensions", "displayField": "created_user", "fields": [ { "nullable": false, "domain": null, "name": "OBJECTID", "alias": "OBJECTID", "type": "esriFieldTypeOID" }, { "nullable": true, "domain": null, "name": "Direction", "alias": "Direction", "type": "esriFieldTypeDouble" }, { "nullable": true, "domain": null, "name": "Distance", "alias": "Distance", "type": "esriFieldTypeDouble" }, { "nullable": true, "domain": null, "name": "Radius", "alias": "Radius", "type": "esriFieldTypeDouble" }, { "nullable": true, "domain": null, "name": "ArcLength", "alias": "Arc Length", "type": "esriFieldTypeDouble" }, { "nullable": true, "domain": null, "name": "Radius2", "alias": "Radius2", "type": "esriFieldTypeDouble" }, { "nullable": true, "domain": { "splitPolicy": "esriSPTDuplicate", "name": "PF_COGOType", "description": "Parcel Fabric COGO Type", "type": "codedValue", "codedValues": [ { "code": 1, "name": "Entered" }, { "code": 2, "name": "From Geometry" }, { "code": 3, "name": "Computed" } ], "mergePolicy": "esriMPTDefaultValue" }, "name": "COGOType", "alias": "COGO Type", "type": "esriFieldTypeInteger" }, { "nullable": true, "domain": null, "name": "Rotation", "alias": "Rotation", "type": "esriFieldTypeDouble" }, { "nullable": true, "domain": null, "name": "Scale", "alias": "Scale", "type": "esriFieldTypeDouble" }, { "nullable": true, "domain": { "splitPolicy": "esriSPTDuplicate", "name": "lrParcelType", "description": "descField", "type": "codedValue", "codedValues": [ { "code": 1, "name": "PLSS Township" }, { "code": 2, "name": "PLSS Section" }, { "code": 3, "name": "PLSS Quarter Section" }, { "code": 4, "name": "Special Survey" }, { "code": 5, "name": "Simultaneous Conveyance" }, { "code": 6, "name": "Conveyance Division" }, { "code": 7, "name": "Tax" }, { "code": 8, "name": "Ownership" }, { "code": 9, "name": "Encumbrance" }, { "code": 10, "name": "Separated Right" }, { "code": 11, "name": "Other" }, { "code": 12, "name": "PLSS Second Division" } ], "mergePolicy": "esriMPTDefaultValue" }, "name": "Type", "alias": "Type", "type": "esriFieldTypeInteger" }, { "nullable": true, "domain": { "splitPolicy": "esriSPTDefaultValue", "name": "lrLineCategory", "description": "descField", "type": "codedValue", "codedValues": [ { "code": 0, "name": "Boundary Line" }, { "code": 1, "name": "Dependent Line" }, { "code": 2, "name": "Precise Connection (high accuracy)" }, { "code": 3, "name": "Connection" }, { "code": 4, "name": "Radial Line (system generated)" }, { "code": 5, "name": "Road Frontage" }, { "code": 6, "name": "Origin Connection (from CP to parcel)" }, { "code": 7, "name": "Multipart parcel Connector" } ], "mergePolicy": "esriMPTDefaultValue" }, "name": "Category", "alias": "Category", "type": "esriFieldTypeInteger" }, { "nullable": true, "domain": { "splitPolicy": "esriSPTDuplicate", "name": "lrAccuracy", "description": "descField", "type": "codedValue", "codedValues": [ { "code": 1, "name": "1 - Highest" }, { "code": 2, "name": "2 - After 1980" }, { "code": 3, "name": "3 - 1908 to 1980" }, { "code": 4, "name": "4 - 1881 to 1907" }, { "code": 5, "name": "5 - Before 1881" }, { "code": 6, "name": "6 - 1800" }, { "code": 7, "name": "7 - Lowest" } ], "mergePolicy": "esriMPTDefaultValue" }, "name": "Accuracy", "alias": "Accuracy", "type": "esriFieldTypeInteger" }, { "nullable": true, "domain": null, "name": "Shape", "alias": "Shape", "type": "esriFieldTypeGeometry" } ], "dateFieldsTimeReference": null, "preferredTimeReference": null, "useStandardizedQueries": true, "sourceSpatialReference": { "falseM": 0, "xyTolerance": 0.0032808333333333331, "mUnits": 1, "zUnits": 10000, "latestWkid": 102721, "zTolerance": 0.001, "wkid": 102721, "xyUnits": 3048.00609601219276, "mTolerance": 0.001, "falseX": -117105100, "falseY": -98987300, "falseZ": -100000 }, "description": "", "canModifyLayer": true, "supportedSpatialRelationships": [ "esriSpatialRelIntersects", "esriSpatialRelContains", "esriSpatialRelCrosses", "esriSpatialRelEnvelopeIntersects", "esriSpatialRelIndexIntersects", "esriSpatialRelOverlaps", "esriSpatialRelTouches", "esriSpatialRelWithin", "esriSpatialRelRelation" ], "geometryProperties": { "shapeLengthFieldName": "Shape.STLength()", "units": "esriFeet", "mapUnits": {"uwkid": 9003} }, "indexes": [{ "name": "S6_idx", "isUnique": true, "description": "", "fields": "Shape", "isAscending": true }], "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "supportsDatumTransformation": true, "minScale": 0, "supportsDynamicLegends": true, "hasAttachments": false, "advancedQueryCapabilities": { "supportsStatistics": true, "supportsSqlExpression": true, "supportsTrueCurve": true, "supportsOrderBy": true, "supportsQueryRelatedPagination": true, "supportsSqlFormat": false, "useStandardizedQueries": true, "supportsLod": false, "supportsQueryWithDistance": true, "supportsQueryWithDatumTransformation": true, "supportsCountDistinct": true, "supportsCurrentUserQueries": true, "supportsAdvancedQueryRelated": true, "supportsReturningQueryExtent": true, "supportsQueryWithLodSR": false, "supportsPagination": true, "supportsDistinct": true, "supportsTimeRelation": true, "supportsQueryAnalytic": false, "supportsPercentileStatistics": true, "supportsHavingClause": true }, "subtypeField": null, "serviceItemId": "a8feeac619ac4ec3807dc12bb66bea4d", "supportsCoordinatesQuantization": true, "capabilities": "Query,Map,Data", "maxScale": 0, "supportsExceedsLimitStatistics": true, "defaultVisibility": true, "hasMetadata": true, "typeIdField": null, "defaultSubtypeCode": null, "supportsVCSProjection": true, "supportedQueryFormats": "JSON, geoJSON, PBF", "hasLabels": true, "drawingInfo": { "renderer": { "uniqueValueGroups": [{ "heading": "", "classes": [{ "symbol": { "color": [ 0, 0, 0, 255 ], "width": 0.75, "style": "esriSLSSolid", "type": "esriSLS" }, "values": [["COGO"]], "description": "COGO", "label": "COGO" }] }], "valueExpression": "return \"COGO\"", "authoringInfo": {"colorRamp": { "colorRamps": [ { "toColor": [ 199, 248, 252, 255 ], "fromColor": [ 199, 248, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 245, 179, 252, 255 ], "fromColor": [ 245, 179, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 194, 182, 255 ], "fromColor": [ 252, 194, 182, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 188, 252, 179, 255 ], "fromColor": [ 188, 252, 179, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 241, 184, 255 ], "fromColor": [ 252, 241, 184, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 199, 206, 252, 255 ], "fromColor": [ 199, 206, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 215, 252, 218, 255 ], "fromColor": [ 215, 252, 218, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 194, 222, 255 ], "fromColor": [ 252, 194, 222, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 227, 207, 255 ], "fromColor": [ 252, 227, 207, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 196, 182, 252, 255 ], "fromColor": [ 196, 182, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 237, 199, 252, 255 ], "fromColor": [ 237, 199, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 212, 229, 252, 255 ], "fromColor": [ 212, 229, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 232, 252, 192, 255 ], "fromColor": [ 232, 252, 192, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" } ], "type": "multipart" }}, "valueExpressionTitle": "Custom", "uniqueValueInfos": [{ "symbol": { "color": [ 0, 0, 0, 255 ], "width": 0.75, "style": "esriSLSSolid", "type": "esriSLS" }, "label": "COGO", "value": "COGO" }], "type": "uniqueValue", "fieldDelimiter": "," }, "scaleSymbols": true, "transparency": 0, "labelingInfo": [{ "multiPart": "labelPerFeature", "symbol": { "backgroundColor": null, "kerning": true, "color": [ 0, 0, 0, 255 ], "yoffset": 0, "xoffset": 0, "haloColor": [ 255, 255, 255, 255 ], "type": "esriTS", "borderLineColor": null, "borderLineSize": null, "horizontalAlignment": "left", "haloSize": 2, "angle": 0, "rightToLeft": false, "verticalAlignment": "bottom", "font": { "size": 10, "weight": "normal", "style": "normal", "family": "Tahoma", "decoration": "none" } }, "stackLabel": false, "offsetDistance": 3, "maxScale": 0, "lineConnection": "none", "useClippedGeometry": true, "labelExpressionInfo": {"expression": "// Change the settings portion to configure direction format, color, rounding and abbreviations\n// This is an Arcade expression\n\n// SETTINGS\nvar QuadrantBearingFormat = true; //set 'true' for quadrant bearing, 'false' for north azimuth\nvar ShowDistance = true; //set as 'true' to show distance\nvar ShowDirection = true; //set as 'true' to show direction\nvar ShowRadius = true; //set as 'true' to show radius\nvar ShowCurveParemater = true; //set as 'true' to show a curve parameter\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 \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 direction=$feature.Direction;\nvar distance=$feature.Distance;\nvar radius=$feature.Radius;\nvar arclength=$feature.Arclength;\nvar radius2=$feature.Radius2\nvar prefix; // quadrant bearing prefix\nvar postfix; // quadrant bearing postfix\nvar bearing; \nvar quadbearing;\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 degrees;\nvar minutes;\nvar seconds;\nvar DMS;\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 angleRad; //curve angle in radians\nvar COGOValidity; //COGO combinations validity. can be valid, partial or invalid.\n\n\nfunction NorthAzimuth2Quadbearing(azimuth){\n if (azimuth<90 && azimuth>=0){\n bearing=azimuth;\n prefix = \"N\";\n postfix= \"E\";}\n else if (azimuth<180 && azimuth>=90){\n bearing=180-azimuth;\n prefix = \"S\";\n postfix= \"E\";}\n else if (azimuth<270 && azimuth>=180){\n bearing=abs(180-azimuth);\n prefix = \"S\";\n postfix= \"W\";}\n else if (azimuth<360 && azimuth>=270){\n bearing=360-azimuth;\n prefix = \"N\";\n postfix= \"W\";}\n \n degrees=floor(bearing);\n minutes=floor((bearing-degrees)*60)\n seconds=((bearing-degrees-minutes/60)*3600)\n if (seconds>=59.5){\n seconds=0;\n minutes+=1;\n if (minutes==60){\n minutes=0;\n degrees+=1;}}\n quadbearing=prefix+degrees+\"°\"+text(minutes,\"00\")+\"'\"+text(seconds,\"00\")+\"''\"+postfix;\n return quadbearing;\n}\n\nfunction DMS(bearing){\n degrees=floor(bearing);\n minutes=floor((bearing-degrees)*60)\n seconds=((bearing-degrees-minutes/60)*3600)\n if (seconds>=59.5){\n seconds=0;\n minutes+=1;\n if (minutes==60){\n minutes=0;\n degrees+=1;}}\n DMS=degrees+\"°\"+text(minutes,\"00\")+\"'\"+text(seconds,\"00\")+\"''\";\n return DMS;\n \n}\nfunction IsValidCOGO(direction, distance, radius, arclength, radius2) {\n binaryDictionary= Dictionary('dir', 1, 'dist',2, 'rad',4, 'arc',8, 'rad2',16)\n if (!IsEmpty(direction)) {checksum+=binaryDictionary.dir}\n if (!IsEmpty(distance)) {checksum+=binaryDictionary.dist}\n if (!IsEmpty(radius)) {checksum+=binaryDictionary.rad}\n if (!IsEmpty(arclength)) {checksum+=binaryDictionary.arc}\n if (!IsEmpty(radius2)) {checksum+=binaryDictionary.rad2}\n \n validValuesArray=[0,3,8,13,29]; //array of valid combinations: '0' for nothing, ... '13' for direction & radius & arclength ...\n partialValuesArray=[1,2,4,5,9,12,16,20,21,25,28]; //array of partial combinations: '1' for only direction, '2' for only distance, '4' for only radius...\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\nCOGOValidity = IsValidCOGO(direction, distance, radius, arclength, 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}\n\n// Direction string\nif (ShowDirection) {\n if (IsEmpty(direction)==false) { \n if (QuadrantBearingFormat==true) { //using quadrant bearing format\n directionStr = \"\" + fontNameSize + NorthAzimuth2Quadbearing(direction) + \"<\/FNT><\/CLR>\";\n }\n else { //using north azimuth format\n directionStr = \"\" + fontNameSize + DMS(direction) + \"<\/FNT><\/CLR>\";\n }\n }\n}\n\n// Distance string\nif (ShowDistance) {\n if (IsEmpty(distance)==false) {\n distanceStr = \"\" + fontNameSize + text(round(distance,DistUnitRounding), NumberFormat) + \"<\/FNT><\/CLR>\";\n }\n}\n\n//Radius String\nif (ShowRadius) {\n if (!IsEmpty(radius)) { //it can be a curve or a spiral\n if (IsEmpty(radius2)) { //if radius2 is empty this is a curve\n radiusStr = \"\" + fontNameSize + RadiusAbbr + \" \" + text(round(radius, DistUnitRounding), NumberFormat) + \"<\/FNT><\/CLR>\";\n }\n else { // it is a spiral\n radiusStr = \"\" + fontNameSize + RadiusAbbr + \" \" + text(round(radius, DistUnitRounding),NumberFormat) + \"<\/FNT><\/CLR>\";\n radius2Str = \"\" + fontNameSize + Radius2Abbr + \" \" + text(round(radius2, DistUnitRounding),NumberFormat) + \"<\/FNT><\/CLR>\";\n if (radius == 0) { //substitute to infinity sign\n radiusStr = \"\" + fontNameSize + RadiusAbbr + \" ∞ \" + \"<\/FNT><\/CLR>\";\n }\n if (radius2 == 0) { //substitute to infinity sign\n radius2Str = \"\" + fontNameSize + Radius2Abbr + \" ∞ \" + \"<\/FNT><\/CLR>\";\n }\n } \n \n }\n}\n\n// Curve Parameter\nif (ShowCurveParemater) {\n if (!IsEmpty(arclength)) {\n if (CurveParameter == 'ArcLength') {\n curveStr = \"\" + fontNameSize + ArclengthAbrr + text(round(arclength, DistUnitRounding), NumberFormat) + \"<\/FNT><\/CLR>\"; //return Arc length \n }\n angleRad = arclength/(abs(radius)) //calculate angle in radians\n if (CurveParameter == 'Angle') {\n curveStr = \"\" + fontNameSize + AngleAbbr + DMS(angleRad * 180 / pi) + \"<\/FNT><\/CLR>\"; // convert radian to degrees and show as DMS\n }\n if (CurveParameter == 'Chord') {\n curveStr = \"\" + fontNameSize + ChordAbbr + text(round((2 * abs(radius) * Sin(angleRad/2)),DistUnitRounding), NumberFormat) + \"<\/FNT><\/CLR>\"; //calculate chord length\n } \n }\n}\n \n// Assemble label string\nif (IsEmpty(radius)) { //if its empty it is not a curve\n return directionStr + \"\\n\" + distanceStr\n}\nelse { //it's a curve\n return radiusStr + \" \" + radius2Str + \" \\n \" + curveStr;\n}"}, "deconflictionStrategy": "static", "priority": -1, "labelPlacement": "esriServerLinePlacementBelowStart", "removeDuplicates": "none", "textLayout": "followFeature", "lineOrientation": "direction", "name": "Direction and Distance", "minScale": 5000, "useCodedValues": false }] }, "geometryField": { "name": "Shape", "alias": "Shape", "type": "esriFieldTypeGeometry" }, "copyrightText": "", "geometryType": "esriGeometryPolyline" }] }