{ "currentVersion": 11.4, "cimVersion": "3.4.0", "id": 6, "name": "road_speed_v02", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolyline", "sourceSpatialReference": { "wkid": 25832, "latestWkid": 25832, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "xyUnits": 10000, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "// Define variables for speed limits and thresholds\nvar v85 = $feature.v85Speed // Hastighedsgrænse attributen\nvar maxSpeed = $feature.maxSpeed // Maksimal hastighed attributen\n\n// Calculate thresholds\nvar lowerThreshold = maxSpeed * 1.1 // Hastighedsgrænse + 10%\nvar upperThreshold = maxSpeed * 1.2 // Hastighedsgrænse + 20%\n\n// Check conditions and assign colors based on thresholds\nif (v85 <= lowerThreshold) {\n return \"green\" // 85% fraktil er under hastighedsgrænsen + 10%\n} \nelse if (v85 > lowerThreshold && v85 <= upperThreshold) {\n return \"yellow\" // 85% fraktil er mellem hastighedsgrænse + 10% og + 20%\n} \nelse if (v85 > upperThreshold) {\n return \"red\" // 85% fraktil er over hastighedsgrænse + 20%\n} ", "valueExpressionTitle": "Farvekode", "uniqueValueGroups": [ { "heading": "", "classes": [ { "label": "85% fraktil er under [hastighedsgrænsen + 10 %]", "description": "85% fraktil er under [hastighedsgrænsen + 10 %]", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 56, 168, 0, 255 ], "width": 1.5 }, "values": [ [ "green" ] ] }, { "label": "85% fraktil er mellem [hastighedsgrænse + 10 % og + 20%]", "description": "85% fraktil er mellem [hastighedsgrænse + 10 % og + 20%]", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 230, 230, 0, 255 ], "width": 1.5 }, "values": [ [ "yellow" ] ] }, { "label": "85% fraktil er over [hastighedsgrænse + 20%]", "description": "85% fraktil er over [hastighedsgrænse + 20%]", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 1.5 }, "values": [ [ "red" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 56, 168, 0, 255 ], "width": 1.5 }, "value": "green", "label": "85% fraktil er under [hastighedsgrænsen + 10 %]", "description": "85% fraktil er under [hastighedsgrænsen + 10 %]" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 230, 230, 0, 255 ], "width": 1.5 }, "value": "yellow", "label": "85% fraktil er mellem [hastighedsgrænse + 10 % og + 20%]", "description": "85% fraktil er mellem [hastighedsgrænse + 10 % og + 20%]" }, { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 255, 0, 0, 255 ], "width": 1.5 }, "value": "red", "label": "85% fraktil er over [hastighedsgrænse + 20%]", "description": "85% fraktil er over [hastighedsgrænse + 20%]" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 252, 204, 255 ], "toColor": [ 252, 252, 204, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 179, 251, 255 ], "toColor": [ 252, 179, 251, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 233, 252, 255 ], "toColor": [ 179, 233, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 179, 180, 255 ], "toColor": [ 252, 179, 180, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 183, 182, 252, 255 ], "toColor": [ 183, 182, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 179, 252, 202, 255 ], "toColor": [ 179, 252, 202, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 236, 215, 252, 255 ], "toColor": [ 236, 215, 252, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 215, 252, 237, 255 ], "toColor": [ 215, 252, 237, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 222, 215, 255 ], "toColor": [ 252, 222, 215, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 214, 252, 184, 255 ], "toColor": [ 214, 252, 184, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 184, 214, 255 ], "toColor": [ 252, 184, 214, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 252, 223, 184, 255 ], "toColor": [ 252, 223, 184, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 199, 215, 252, 255 ], "toColor": [ 199, 215, 252, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "defaultVisibility": true, "extent": { "xmin": 550690.4655999998, "ymin": 6109105.9899, "xmax": 705348.6868000003, "ymax": 6187435.329500001, "spatialReference": { "wkid": 25832, "latestWkid": 25832, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "xyUnits": 10000, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeNone", "displayField": "kommunekod", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "objectid", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "join_count", "type": "esriFieldTypeInteger", "alias": "Join_Count", "domain": null }, { "name": "target_fid", "type": "esriFieldTypeInteger", "alias": "TARGET_FID", "domain": null }, { "name": "segmentid", "type": "esriFieldTypeInteger", "alias": "segmentID", "domain": null }, { "name": "v85speed", "type": "esriFieldTypeDouble", "alias": "v85Speed", "domain": null }, { "name": "averagespe", "type": "esriFieldTypeDouble", "alias": "averageSpe", "domain": null }, { "name": "maxspeed", "type": "esriFieldTypeDouble", "alias": "maxSpeed", "domain": null }, { "name": "optimalspe", "type": "esriFieldTypeDouble", "alias": "optimalSpe", "domain": null }, { "name": "totalprobe", "type": "esriFieldTypeInteger", "alias": "totalProbe", "domain": null }, { "name": "roadclass", "type": "esriFieldTypeSmallInteger", "alias": "roadClass", "domain": null }, { "name": "kommunekod", "type": "esriFieldTypeString", "alias": "kommunekod", "length": 254, "domain": null }, { "name": "navn", "type": "esriFieldTypeString", "alias": "navn", "length": 254, "domain": null }, { "name": "year", "type": "esriFieldTypeString", "alias": "year", "length": 512, "domain": null }, { "name": "shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "st_length(shape)", "type": "esriFieldTypeDouble", "alias": "st_length(shape)", "domain": null } ], "geometryField": { "name": "shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "r698_sde_rowid_uk", "fields": "objectid", "isAscending": true, "isUnique": true, "description": "" }, { "name": "a557_ix1", "fields": "shape", "isAscending": true, "isUnique": true, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": false, "capabilities": "Map,Query,Data", "maxRecordCount": 2000, "maxSelectionCount": 2000, "supportsStatistics": true, "supportsExceedsLimitStatistics": true, "supportsAdvancedQueries": true, "supportedQueryFormats": "JSON, geoJSON, PBF", "isDataVersioned": false, "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": false }, "dateFieldsTimeReference": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasGeometryProperties": true, "geometryProperties": { "shapeLengthFieldName": "st_length(shape)", "units": "esriMeters", "mapUnits": {"uwkid": 9001} }, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "" }