{ "currentVersion": 11.3, "cimVersion": "3.3.0", "id": 21, "name": "Street Centerlines", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolyline", "sourceSpatialReference": { "wkid": 102705, "latestWkid": 102705, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -18285500, "falseY": -47441400, "xyUnits": 1.3723394853484237E8, "falseZ": -100000, "zUnits": 10000, "falseM": 0, "mUnits": 1 }, "copyrightText": "", "parentLayer": { "id": 18, "name": "Street Centerline" }, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "simple", "symbol": { "type": "esriSLS", "style": "esriSLSDash", "color": [ 78, 78, 78, 255 ], "width": 0.4 } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": [ { "labelExpressionInfo": { "expression": "// Change the settings portion to configure direction format, color, rounding and abbreviations\r\n// This is an Arcade expression\r\n\r\n// SETTINGS\r\nvar QuadrantBearingFormat = true; //set 'true' for quadrant bearing, 'false' for north azimuth\r\nvar ShowDistance = true; //set as 'true' to show distance\r\nvar ShowDirection = false; //set as 'true' to show direction\r\nvar DirectionType = 1; // 1 = Quadrant Bearing; 2 = North Azimuth; 3 = South Azimuth\r\nvar ShowRadius = true; //set as 'true' to show radius\r\nvar ShowCurveParameter = true; //set as 'true' to show a curve parameter\r\nvar CurveParameter = \"Chord\"; //set as 'ArcLength' or 'Chord' or 'Angle' for central angle. Case sensitive!\r\nvar ErrorString = \"COGO ERROR\"; //set to display invalid COGO combinations\r\nvar RadiusAbbr = 'R='; //radius abbreviation\r\nvar Radius2Abbr = 'R2='; //radius2 abbreviation for spiral curves\r\nvar ArclengthAbrr = 'L='; //arclength abbreviation\r\nvar ChordAbbr = 'C='; //chord abbreviation\r\nvar ChordAbbr2 = \"c\"; //chord abbreviation 2\r\nvar AngleAbbr = 'A='; //central Angle abbreviation\r\nvar DistUnitRounding = 2; //number of decimal places for distance units: distance, radius, arclength & chord\r\nvar NumberFormat = \"#,###.00\" //number format. In this example: thousands separator with padding of 2 zeros \r\nvar directionColor = \"blue='255'\"; //direction color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\r\nvar distanceColor = \"black='255'\"; //distance color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\r\nvar radiusColor = \"blue='255'\"; //radius color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\r\nvar curveParamColor = \"blue='255'\"; //curve parameter color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\r\nvar partialCOGOColor = \"magenta='255'\"; //partial COGO color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\r\nvar invalidCOGOColor = \"red='255'\"; //invalid COGO color: red, green, blue, cyan, magenta, yellow, black. You can also use RGB or CYMK combinations.\r\nvar fontNameSize = \"\"; //font type and size\r\n\r\n// VARIABLES\r\nvar cogo_direction = $feature.Direction;\r\nvar cogo_distance = $feature.Distance;\r\nvar cogo_radius = $feature.Radius;\r\nvar cogo_arclength = $feature.Arclength;\r\nvar cogo_radius2 = $feature.Radius2\r\nvar linecategory = $feature.Category\r\nvar binaryDictionary; //binary dictionary to check COGO combinations\r\nvar checksum = 0; //initialize checksum\r\nvar validValuesArray; //array of valid values for COGO combinations\r\nvar partialValuesArray; //array of partial values for COGO\r\nvar degrees;\r\nvar minutes;\r\nvar seconds;\r\nvar DMS;\r\nvar directionStr = \"\"; //direction string using for label\r\nvar distanceStr = \"\"; //distance string using for label\r\nvar radiusStr = \"\"; //radius string using for label\r\nvar radius2Str = \"\"; //radius2 string using for labeling spiral curves\r\nvar curveStr = \"\"; //curve parameter string using for label\r\nvar angleRad; //curve angle in radians\r\nvar COGOValidity; //COGO combinations validity. can be valid, partial or invalid.\r\n\r\n\r\nif (IsEmpty(cogo_direction) && IsEmpty(cogo_distance) && IsEmpty(cogo_radius) && IsEmpty(cogo_radius2) && IsEmpty(cogo_arclength)){\r\n return \"\"\r\n}\r\n\r\nfunction NorthAzimuth2Quadbearing(azimuth){\r\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'Quadrant', angleType: 'DMS', outputType: 'text', format: 'pd[°]mm[\\']ss[\"]b'})\r\n}\r\n\r\nfunction DMS_North(azimuth){\r\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'North', angleType: 'DMS', outputType: 'text', format: 'd[°]mm[\\']ss[\"]'})\r\n}\r\n\r\nfunction DMS_South(azimuth){\r\n return ConvertDirection(azimuth, {directionType:'North', angleType: 'Degrees'}, {directionType:'South', angleType: 'DMS', outputType: 'text', format: 'd[°]mm[\\']ss[\"]'})\r\n}\r\n\r\nfunction IsValidCOGO(cogo_direction, cogo_distance, cogo_radius, cogo_arclength, cogo_radius2) {\r\n binaryDictionary= Dictionary('dir', 1, 'dist',2, 'rad',4, 'arc',8, 'rad2',16)\r\n if (!IsEmpty(cogo_direction)) {checksum+=binaryDictionary.dir}\r\n if (!IsEmpty(cogo_distance)) {checksum+=binaryDictionary.dist}\r\n if (!IsEmpty(cogo_radius)) {checksum+=binaryDictionary.rad}\r\n if (!IsEmpty(cogo_arclength)) {checksum+=binaryDictionary.arc}\r\n if (!IsEmpty(cogo_radius2)) {checksum+=binaryDictionary.rad2}\r\n \r\n validValuesArray=[0,3,13,29]; //array of valid combinations: '0' for nothing, ... '13' for direction & radius & arclength ...\r\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...\r\n //Invalid Values = [6,7,10,11,14,15,18,19,22,23,26,30,31]\r\n \r\n if (IndexOf(validValuesArray,checksum)>-1) { // a negative value is returned if checksum value is not in the a valid combination array\r\n return \"valid\";\r\n }\r\n if (IndexOf(partialValuesArray,checksum)>-1){\r\n return \"partial\"; \r\n }\r\n return \"invalid\";\r\n}\r\n\r\nCOGOValidity = IsValidCOGO(cogo_direction, cogo_distance, cogo_radius, cogo_arclength, cogo_radius2);\r\nif ( COGOValidity == \"invalid\") { //if invalid COGO return error string\r\n return \"\" + fontNameSize + ErrorString + \"<\/FNT><\/CLR><\/BOL>\"; \r\n}\r\n\r\nif (COGOValidity == \"partial\") { //if a partial COGO change colors\r\n distanceColor = partialCOGOColor;\r\n directionColor = partialCOGOColor;\r\n radiusColor = partialCOGOColor;\r\n curveParamColor = partialCOGOColor;\r\n}\r\n\r\n// Direction string\r\nif (ShowDirection) {\r\n if (IsEmpty(cogo_direction)==false) {\r\n if (DirectionType == 1) { //using quadrant bearing format\r\n directionStr = NorthAzimuth2Quadbearing(cogo_direction);\r\n }\r\n else if (DirectionType == 2) { //using north azimuth format\r\n directionStr = DMS_North(cogo_direction);\r\n }\r\n else if (DirectionType == 3) { //using south azimuth format\r\n directionStr = DMS_South(cogo_direction);\r\n }\r\n }\r\n}\r\n\r\n// Distance string\r\nif (ShowDistance) {\r\n if (IsEmpty(cogo_distance)==false) {\r\n distanceStr = text(round(cogo_distance,DistUnitRounding), NumberFormat);\r\n }\r\n}\r\n\r\n//Radius String\r\nif (ShowRadius) {\r\n if (!IsEmpty(cogo_radius)) { //it can be a curve or a spiral\r\n if (IsEmpty(cogo_radius2)) { //if radius2 is empty this is a curve\r\n radiusStr = RadiusAbbr + \" \" + text(round(cogo_radius, DistUnitRounding), NumberFormat);\r\n }\r\n else { // it is a spiral\r\n radiusStr = RadiusAbbr + \" \" + text(round(cogo_radius, DistUnitRounding),NumberFormat);\r\n radius2Str = Radius2Abbr + \" \" + text(round(cogo_radius2, DistUnitRounding),NumberFormat);\r\n if (cogo_radius == 0) { //substitute to infinity sign\r\n radiusStr = RadiusAbbr + \" ∞ \";\r\n }\r\n if (cogo_radius2 == 0) { //substitute to infinity sign\r\n radius2Str = Radius2Abbr + \" ∞ \";\r\n }\r\n } \r\n \r\n }\r\n}\r\n\r\n// Curve Parameter\r\nif (ShowCurveParameter) {\r\n if (!IsEmpty(cogo_arclength)) {\r\n if (CurveParameter == 'ArcLength') {\r\n curveStr = text(round(cogo_arclength, DistUnitRounding), NumberFormat); //return Arc length\r\n }\r\n angleRad = cogo_arclength/(abs(cogo_radius)) //calculate angle in radians\r\n if (CurveParameter == 'Angle') {\r\n curveStr = DMS_North(angleRad * 180 / pi); // convert radian to degrees and show as DMS\r\n }\r\n if (CurveParameter == 'Chord') {\r\n curveStr = text(round((2 * abs(cogo_radius) * Sin(angleRad/2)),DistUnitRounding), NumberFormat); //calculate chord length\r\n } \r\n }\r\n}\r\n\r\n//Determine type of curve displayed\r\nvar CurveTypePrefix = \"\"\r\nvar CurveSuffix = \"\"\r\nif (!IsEmpty(curveStr)){\r\n if (CurveParameter == 'ArcLength'){\r\n CurveTypePrefix = ArclengthAbrr\r\n }\r\n else if (CurveParameter == 'Angle'){\r\n CurveTypePrefix = AngleAbbr\r\n }\r\n else if (CurveParameter == 'Chord'){\r\n CurveTypePrefix = ChordAbbr\r\n CurveSuffix = ChordAbbr2\r\n }\r\n}\r\n\r\nvar isStraightLine = IsEmpty(radiusStr) && IsEmpty(radius2Str) && IsEmpty(curveStr)\r\n\r\n// Assemble label string\r\n\r\n//Straight lines\r\nif (isStraightLine){\r\n if (!IsEmpty(directionStr) && !IsEmpty(distanceStr)){ //If Direction and Distance are both NOT Empty\r\n return \"\" + directionStr + \"<\/CLR>\" + \"\\n\" +\r\n \"\" + distanceStr + \"'\" +\"<\/CLR>\";\r\n }\r\n else if (IsEmpty(directionStr)){ //If Direction is empty\r\n return \"\" +\r\n distanceStr + \"'\" +\"<\/CLR>\";\r\n }\r\n else{ //If Distance is empty\r\n return \"\" + directionStr + \"'\" +\"<\/CLR>\";\r\n }\r\n}\r\n\r\n//Curves\r\n//If one or both radii and the curve string are NOT empty show the full curve\r\nif ((!IsEmpty(radiusStr) || !IsEmpty(radius2Str)) && !IsEmpty(curveStr)){\r\n if (!IsEmpty(linecategory) && linecategory == 5){\r\n return \"\" + CurveTypePrefix + \" \" +\r\n curveStr + \"'\" + \"<\/CLR>\";\r\n }else{\r\n return \"\" + radiusStr + \"'\" +\"<\/CLR>\" + \" \" +\r\n \"\" + radius2Str + \"<\/CLR>\" + \"\\n\" +\r\n \"\" + CurveTypePrefix + \" \" +\r\n curveStr + \"'\" + \"<\/CLR>\";\r\n }\r\n}\r\n//If the curve is empty\r\nelse if (IsEmpty(curveStr)){\r\n return \"\" + radiusStr + \"'\" +\"<\/CLR>\" + \" \" +\r\n \"\" + radius2Str + \"'\" +\"<\/CLR>\"\r\n}\r\n//If both radius are empty\r\nelse{\r\n return \"\" + CurveTypePrefix + ' ' +\r\n curveStr + \"'\" +\"<\/CLR>\";\r\n}", "title": "Custom" }, "labelPlacement": "esriServerLinePlacementAboveAlong", "textLayout": "followFeature", "deconflictionStrategy": "dynamic", "allowOverrun": true, "repeatLabel": false, "lineConnection": "minimizeLabels", "useClippedGeometry": true, "stackLabel": true, "stackAlignment": "dynamic", "removeDuplicates": "none", "stackRowLength": 24, "stackSeparators": [ {"separator": " "} ], "useCodedValues": true, "maxScale": 0, "minScale": 2256, "name": "Class 1", "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": null, "haloSize": null, "font": { "family": "Arial", "size": 7, "style": "normal", "weight": "normal", "decoration": "none" } } } ] }, "defaultVisibility": true, "extent": { "xmin": -1.0788532107355792E7, "ymin": 4943370.736394685, "xmax": -1.074033700387028E7, "ymax": 5004072.142178937, "spatialReference": { "wkid": 102100, "latestWkid": 3857, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -20037700, "falseY": -30241100, "xyUnits": 10000, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "StreetName", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "StreetName", "type": "esriFieldTypeString", "alias": "StreetName", "length": 225, "domain": null }, { "name": "Direction", "type": "esriFieldTypeDouble", "alias": "Direction", "domain": null }, { "name": "Distance", "type": "esriFieldTypeDouble", "alias": "Distance", "domain": null }, { "name": "Type", "type": "esriFieldTypeInteger", "alias": "Type", "domain": { "type": "codedValue", "name": "lrParcelType_2", "description": "descField", "codedValues": [ { "name": "PLSS Township", "code": 1 }, { "name": "PLSS Section", "code": 2 }, { "name": "PLSS Quarter Section", "code": 3 }, { "name": "Special Survey", "code": 4 }, { "name": "Simultaneous Conveyance", "code": 5 }, { "name": "Conveyance Division", "code": 6 }, { "name": "Tax", "code": 7 }, { "name": "Ownership", "code": 8 }, { "name": "Encumbrance", "code": 9 }, { "name": "Separated Right", "code": 10 }, { "name": "Other", "code": 11 }, { "name": "PLSS Second Division", "code": 12 }, { "name": "Preliminary", "code": 13 } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "Category", "type": "esriFieldTypeInteger", "alias": "Category", "domain": { "type": "codedValue", "name": "lrLineCategory_2", "description": "descField", "codedValues": [ { "name": "Boundary Line", "code": 0 }, { "name": "Dependent Line", "code": 1 }, { "name": "Precise Connection (high accuracy)", "code": 2 }, { "name": "Connection", "code": 3 }, { "name": "Radial Line (system generated)", "code": 4 }, { "name": "Road Frontage", "code": 5 }, { "name": "Origin Connection (from CP to parcel)", "code": 6 }, { "name": "Multipart parcel Connector", "code": 7 }, { "name": "Street Centerline", "code": 8 } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "Radius", "type": "esriFieldTypeDouble", "alias": "Radius", "domain": null }, { "name": "ArcLength", "type": "esriFieldTypeDouble", "alias": "ArcLength", "domain": null }, { "name": "Delta", "type": "esriFieldTypeDouble", "alias": "Delta", "domain": null }, { "name": "RadialBearing", "type": "esriFieldTypeDouble", "alias": "RadialBearing", "domain": null }, { "name": "TangentBearing", "type": "esriFieldTypeDouble", "alias": "TangentBearing", "domain": null }, { "name": "Accuracy", "type": "esriFieldTypeInteger", "alias": "Accuracy", "domain": { "type": "codedValue", "name": "lrAccuracy_2", "description": "descField", "codedValues": [ { "name": "1 - Highest", "code": 1 }, { "name": "2 - After 1980", "code": 2 }, { "name": "3 - 1908 to 1980", "code": 3 }, { "name": "4 - 1881 to 1907", "code": 4 }, { "name": "5 - Before 1881", "code": 5 }, { "name": "6 - 1800", "code": 6 }, { "name": "7 - Lowest", "code": 7 } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "InternalAngle", "type": "esriFieldTypeDouble", "alias": "InternalAngle", "domain": null }, { "name": "SystemStartDate", "type": "esriFieldTypeDate", "alias": "SystemStartDate", "length": 8, "domain": null }, { "name": "SystemEndDate", "type": "esriFieldTypeDate", "alias": "SystemEndDate", "length": 8, "domain": null }, { "name": "LegalStartDate", "type": "esriFieldTypeDate", "alias": "LegalStartDate", "length": 8, "domain": null }, { "name": "LegalEndDate", "type": "esriFieldTypeDate", "alias": "LegalEndDate", "length": 8, "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "IsPreliminary", "type": "esriFieldTypeInteger", "alias": "Is Preliminary", "domain": { "type": "codedValue", "name": "PF_YesNo", "description": "Parcel Fabric Yes No", "codedValues": [ { "name": "No", "code": 0 }, { "name": "Yes", "code": 1 } ], "mergePolicy": "esriMPTDefaultValue", "splitPolicy": "esriSPTDefaultValue" } }, { "name": "Radius2", "type": "esriFieldTypeDouble", "alias": "Radius2", "domain": null }, { "name": "Shape.STLength()", "type": "esriFieldTypeDouble", "alias": "Shape.STLength()", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "R6589_pk", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "S6029_idx", "fields": "Shape", "isAscending": true, "isUnique": true, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": true, "capabilities": "Map,Query,Data", "maxRecordCount": 2000, "supportsStatistics": true, "supportsExceedsLimitStatistics": true, "supportsAdvancedQueries": true, "hasZ": true, "supportedQueryFormats": "JSON, geoJSON, PBF", "isDataVersioned": false, "effectiveMinScale": 9200, "ownershipBasedAccessControlForFeatures": {"allowOthersToQuery": true}, "useStandardizedQueries": true, "supportedSpatialRelationships": [ "esriSpatialRelIntersects", "esriSpatialRelContains", "esriSpatialRelCrosses", "esriSpatialRelEnvelopeIntersects", "esriSpatialRelIndexIntersects", "esriSpatialRelOverlaps", "esriSpatialRelTouches", "esriSpatialRelWithin", "esriSpatialRelRelation" ], "advancedQueryCapabilities": { "useStandardizedQueries": true, "supportsStatistics": true, "supportsPercentileStatistics": true, "supportsHavingClause": true, "supportsOrderBy": true, "supportsDistinct": true, "supportsCountDistinct": true, "supportsAdvancedQueryRelated": true, "supportsQueryRelatedPagination": true, "supportsPagination": true, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsTrueCurve": true, "supportsQueryWithDatumTransformation": true, "supportsReturningQueryExtent": true, "supportsQueryWithDistance": true, "supportsSqlExpression": true, "supportsTimeRelation": true, "supportsSqlFormat": false, "supportsQueryAnalytic": true, "supportsCurrentUserQueries": true }, "supportsDatumTransformation": true, "advancedQueryAnalyticCapabilities": { "supportsLinearRegression": true, "supportsAsync": false, "supportsPercentileAnalytic": true }, "dateFieldsTimeReference": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasGeometryProperties": true, "geometryProperties": { "shapeLengthFieldName": "Shape.STLength()", "units": "esriFeet", "mapUnits": {"uwkid": 9003} }, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "089bcddf373f4680877e665ed2a0a793" }