Giter Club home page Giter Club logo

Comments (4)

dpavlushko avatar dpavlushko commented on June 3, 2024

Can you share your tool and script so I can see the issue in detail?

from r-bridge.

lauren-obrien avatar lauren-obrien commented on June 3, 2024

Sure - hopefully this is enough,

  1. Points dataset from the survey, viewed in Pro - note the highlighted column has human-readable data:
    image

  2. The Fields view of the same attribute table, showing the Domain definition
    image

Extraction script:

library(rstudioapi)    
library(arcgisbinding) 
arc.check_product()    

#> product: ArcGIS Pro (13.0.2.36056)
#> license: Advanced
#> version: 1.0.1.300

arc.portal_connect('https://companyname.maps.arcgis.com/', 
                   'user.name',
                   askForPassword("AGOL password:"))

# > *** Current
# >   url		: https://companyname.maps.arcgis.com/
# >   version	: 10.2
# >   user		: user.name
# >   organization	: Company Name
# > *** Not signed in
# > 'https://www.arcgis.com/' 

my_survey <- 'https://services8.arcgis.com/h5RF6IOaBlFJtC7w/arcgis/rest/services/service_<obfuscated>/FeatureServer'

con <- arc.open(my_survey)

points <- arc.open(paste0(my_survey, '/', con@children$FeatureClass))

points_dat <- arc.select(points)
  1. data structure in R, unaliased:
    image

and context - the code list from the 'choices' tab in the survey definition spreadsheet"
image

Obviously, I can use that to hack things back together myself, but I really don't want to.

from r-bridge.

dpavlushko avatar dpavlushko commented on June 3, 2024

Thanks for the details.
Unfortunately, arc.select() does not support table domains. The missing feature is a good candidate for implementation in the next release or so.

from r-bridge.

lauren-obrien avatar lauren-obrien commented on June 3, 2024

Ah, that's a shame. Ok thanks for the info.

from r-bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.