How to best work with codedValues when downloading feature layers from rest servers? #234
-
Hi, First of all, a huge shout out to @elipousson for implementing Along the same vein, let's say I am trying to read the In this data, the attribute called "CARTOCODE" (alias: "CartographicCode") has values that are coded as follows: (Details in: https://services1.arcgis.com/99lidPhWCzftIe9K/ArcGIS/rest/services/UtahRoads/FeatureServer/0?f=pjson) However, when I download the featurelayer using Now, without manually creating a lookup list, and performing joins, is there a way to easily return the coded values instead of codes? For example: "1 Interstates" instead of "1" or "11 Other Local, Neighborhood, Rural Roads" instead of "11"? Please advise. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@ar-puuk, please try reinstalled from GitHub and running the following: library(arcgislayers)
flayer <- arc_open("https://services1.arcgis.com/99lidPhWCzftIe9K/ArcGIS/rest/services/UtahRoads/FeatureServer/0")
res <- arc_select(flayer, n_max = 100)
encode_field_values(res, flayer, field = "CARTOCODE") @elipousson fixed a small but crucial bug for this functionality. |
Beta Was this translation helpful? Give feedback.
@ar-puuk, please try reinstalled from GitHub and running the following:
@elipousson fixed a small but crucial bug for this functionality.