{ "extent": { "ymin": 488147.55208331347, "xmin": 407061.80208329856, "ymax": 589013.78776040673, "xmax": 598100.24674476683, "spatialReference": { "falseM": -100000, "xyTolerance": 0.0032808333333333331, "mUnits": 10000, "zUnits": 10000, "latestWkid": 2264, "zTolerance": 0.000020000000000000002, "wkid": 102719, "xyUnits": 3048.00609601219276, "mTolerance": 0.000020000000000000002, "falseX": -121841900, "falseY": -93659000, "falseZ": -100000 } }, "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 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 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 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 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 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\n// Assemble label string\nif (isStraightLine){\n if (!IsEmpty(directionStr) && !IsEmpty(distanceStr)){ //If Direction and Distance are both NOT Empty\n return directionStr + ' ' + distanceStr;\n }\n else if (IsEmpty(directionStr)){ //If Direction is empty\n return distanceStr;\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 + ' ' + curveStr;\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 + ' ' + curveStr;\n}\n\n\n", "title": "Custom" }, "maxSelectionCount": 2000, "subtypes": [ { "code": 2, "name": "Easement", "domains": {"FTR_CODE": {"type": "inherited"}}, "defaultValues": { "Radius": null, "Radius2": null, "LINE_TYPE": 1, "ArcLength": null, "FTR_CODE": "PARCEL-LINE", "Direction": null, "Distance": null, "GlobalID": null } }, { "code": 3, "name": "Hook", "domains": {"FTR_CODE": {"type": "inherited"}}, "defaultValues": { "Radius": null, "Radius2": null, "LINE_TYPE": 1, "ArcLength": null, "FTR_CODE": "PARCEL-LINE", "Direction": null, "Distance": null, "GlobalID": null } }, { "code": 4, "name": "Hydro", "domains": {"FTR_CODE": {"type": "inherited"}}, "defaultValues": { "Radius": null, "Radius2": null, "LINE_TYPE": 1, "ArcLength": null, "FTR_CODE": "PARCEL-LINE", "Direction": null, "Distance": null, "GlobalID": null } }, { "code": 5, "name": "Leader Line", "domains": {"FTR_CODE": {"type": "inherited"}}, "defaultValues": { "Radius": null, "Radius2": null, "LINE_TYPE": 1, "ArcLength": null, "FTR_CODE": "PARCEL-LINE", "Direction": null, "Distance": null, "GlobalID": null } }, { "code": 7, "name": "Private ROW", "domains": {"FTR_CODE": {"type": "inherited"}}, "defaultValues": { "Radius": null, "Radius2": null, "LINE_TYPE": 1, "ArcLength": null, "FTR_CODE": "PARCEL-LINE", "Direction": null, "Distance": null, "GlobalID": null } } ], "relationships": [], "cimVersion": "3.7.0", "isDataArchived": false, "id": 16, "archivingInfo": { "startArchivingMoment": -1, "supportsQueryWithHistoricMoment": false }, "spatialReference": { "falseM": -100000, "xyTolerance": 0.0032808333333333331, "mUnits": 10000, "zUnits": 10000, "latestWkid": 2264, "zTolerance": 0.000020000000000000002, "wkid": 102719, "xyUnits": 3048.00609601219276, "mTolerance": 0.000020000000000000002, "falseX": -121841900, "falseY": -93659000, "falseZ": -100000 }, "subtypeFieldName": "LINE_TYPE", "supportsStatistics": true, "hasLastEditTime": true, "standardMaxRecordCount": 8000, "isDataVersioned": false, "hasGeometryProperties": true, "supportsAdvancedQueries": true, "parentLayer": null, "subLayers": [], "currentVersion": 12.1, "referenceScale": 0, "canScaleSymbols": false, "name": "parlines", "displayField": "FTR_CODE", "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": "esriSPTDefaultValue", "name": "ParcelLineFeatureCodes", "description": "Valid choices for parcel line feature codes.", "type": "codedValue", "codedValues": [ { "code": "COUNTY-LINE", "name": "COUNTY-LINE" }, { "code": "EASEMENT-LINE", "name": "EASEMENT-LINE" }, { "code": "HOOK", "name": "HOOK" }, { "code": "LEADER-LINE", "name": "LEADER-LINE" }, { "code": "LOT-LINE", "name": "LOT-LINE" }, { "code": "PARCEL-LINE", "name": "PARCEL-LINE" }, { "code": "RAILROAD-ROW", "name": "RAILROAD-ROW" }, { "code": "ROAD-PRIVATE", "name": "ROAD-PRIVATE" }, { "code": "ROAD-ROW", "name": "ROAD-ROW" }, { "code": "WATER-LINE", "name": "WATER-LINE" } ], "mergePolicy": "esriMPTDefaultValue" }, "name": "FTR_CODE", "length": 20, "alias": "FTR_CODE", "type": "esriFieldTypeString" }, { "nullable": true, "domain": null, "name": "LINE_TYPE", "alias": "LINE_TYPE", "type": "esriFieldTypeSmallInteger" }, { "nullable": false, "domain": null, "name": "GlobalID", "length": 38, "alias": "GlobalID", "type": "esriFieldTypeGlobalID" } ], "maxRecordCountFactor": 1, "dateFieldsTimeReference": { "timeZoneIANA": "America/New_York", "respectsDaylightSaving": true, "timeZone": "Eastern Standard Time" }, "preferredTimeReference": null, "useStandardizedQueries": true, "sourceSpatialReference": { "falseM": 0, "xyTolerance": 0.020833333333333291, "mUnits": 1, "zUnits": 400000, "latestWkid": 2264, "zTolerance": 0.000020000000000000002, "wkid": 102719, "xyUnits": 3072.00000000000637, "mTolerance": 0.000020000000000000002, "falseX": -121841899.999999776, "falseY": -93658999.9999998212, "falseZ": 0 }, "description": "", "canModifyLayer": true, "supportedSpatialRelationships": [ "esriSpatialRelIntersects", "esriSpatialRelContains", "esriSpatialRelCrosses", "esriSpatialRelEnvelopeIntersects", "esriSpatialRelIndexIntersects", "esriSpatialRelOverlaps", "esriSpatialRelTouches", "esriSpatialRelWithin", "esriSpatialRelRelation" ], "geometryProperties": { "shapeLengthFieldName": "SHAPE_Length", "units": "esriFeet", "mapUnits": {"uwkid": 9003} }, "standardMaxRecordCountNoGeometry": 32000, "indexes": [{ "name": "FDO_GlobalID", "isUnique": false, "description": "", "fields": "GlobalID", "isAscending": true }], "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "supportsDatumTransformation": true, "minScale": 4800, "supportsDynamicLegends": true, "hasAttachments": false, "advancedQueryCapabilities": { "supportsStatistics": true, "supportsSqlExpression": true, "supportsQueryWithResultType": true, "supportsTrueCurve": true, "supportsOrderBy": true, "supportsQueryRelatedPagination": true, "supportsSqlFormat": false, "useStandardizedQueries": true, "supportsLod": false, "supportsQueryWithDistance": true, "supportsQueryWithCacheHint": false, "supportsQueryWithDatumTransformation": true, "supportsCountDistinct": true, "supportsCurrentUserQueries": true, "supportsAdvancedQueryRelated": true, "supportsReturningQueryExtent": true, "supportsQueryWithLodSR": false, "supportsPagination": true, "supportsMaxRecordCountFactor": false, "supportsDistinct": true, "supportsTimeRelation": true, "supportsQueryAnalytic": false, "supportsPercentileStatistics": true, "supportsHavingClause": true }, "subtypeField": "LINE_TYPE", "types": [ { "name": "Easement", "domains": {"FTR_CODE": {"type": "inherited"}}, "id": 2 }, { "name": "Hook", "domains": {"FTR_CODE": {"type": "inherited"}}, "id": 3 }, { "name": "Hydro", "domains": {"FTR_CODE": {"type": "inherited"}}, "id": 4 }, { "name": "Leader Line", "domains": {"FTR_CODE": {"type": "inherited"}}, "id": 5 }, { "name": "Private ROW", "domains": {"FTR_CODE": {"type": "inherited"}}, "id": 7 } ], "supportsCoordinatesQuantization": true, "capabilities": "Query,Map,Data", "maxScale": 0, "supportsExceedsLimitStatistics": true, "defaultVisibility": true, "hasMetadata": true, "tileMaxRecordCount": 4000, "typeIdField": "LINE_TYPE", "defaultSubtypeCode": 2, "supportedQueryFormats": "JSON, geoJSON, PBF", "hasLabels": false, "drawingInfo": { "renderer": { "uniqueValueGroups": [{ "heading": "LINE_TYPE", "classes": [ { "symbol": { "color": [ 230, 149, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "values": [["2"]], "description": "Easement", "label": "Easement" }, { "symbol": { "color": [ 230, 0, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "values": [["3"]], "description": "Hook", "label": "Hook" }, { "symbol": { "color": [ 0, 92, 230, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "values": [["4"]], "description": "Hydro", "label": "Hydro" }, { "symbol": { "color": [ 0, 0, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "values": [["5"]], "description": "Leader Line", "label": "Leader Line" }, { "symbol": { "color": [ 166, 0, 133, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "values": [["7"]], "description": "Private ROW", "label": "Private ROW" } ] }], "field1": "LINE_TYPE", "authoringInfo": {"colorRamp": { "colorRamps": [ { "toColor": [ 194, 217, 252, 255 ], "fromColor": [ 194, 217, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 250, 252, 179, 255 ], "fromColor": [ 250, 252, 179, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 192, 184, 255 ], "fromColor": [ 252, 192, 184, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 179, 241, 255 ], "fromColor": [ 252, 179, 241, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 184, 252, 227, 255 ], "fromColor": [ 184, 252, 227, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 241, 215, 255 ], "fromColor": [ 252, 241, 215, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 184, 252, 179, 255 ], "fromColor": [ 184, 252, 179, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 190, 179, 252, 255 ], "fromColor": [ 190, 179, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 215, 239, 255 ], "fromColor": [ 252, 215, 239, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 189, 243, 252, 255 ], "fromColor": [ 189, 243, 252, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 224, 252, 207, 255 ], "fromColor": [ 224, 252, 207, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 179, 205, 255 ], "fromColor": [ 252, 179, 205, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" }, { "toColor": [ 252, 230, 179, 255 ], "fromColor": [ 252, 230, 179, 255 ], "type": "algorithmic", "algorithm": "esriCIELabAlgorithm" } ], "type": "multipart" }}, "defaultSymbol": { "color": [ 151, 168, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "defaultLabel": "", "uniqueValueInfos": [ { "symbol": { "color": [ 230, 149, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "label": "Easement", "value": "2" }, { "symbol": { "color": [ 230, 0, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "label": "Hook", "value": "3" }, { "symbol": { "color": [ 0, 92, 230, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "label": "Hydro", "value": "4" }, { "symbol": { "color": [ 0, 0, 0, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "label": "Leader Line", "value": "5" }, { "symbol": { "color": [ 166, 0, 133, 255 ], "width": 1, "style": "esriSLSSolid", "type": "esriSLS" }, "label": "Private ROW", "value": "7" } ], "type": "uniqueValue", "fieldDelimiter": "," }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "geometryField": {}, "copyrightText": "", "geometryType": "esriGeometryPolyline" }