Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail when user tries to set the algorithm to a list longer than one #415

Open
jordansread opened this issue Jun 15, 2022 · 0 comments
Open
Labels

Comments

@jordansread
Copy link
Contributor

see #414 for details, but for an example

my_algorithms <- list(`Area Grid Statistics (unweighted)` = "gov.usgs.cida.gdp.wps.algorithm.FeatureGridStatisticsAlgorithm", `Area Grid Statistics (weighted)` = "gov.usgs.cida.gdp.wps.algorithm.FeatureWeightedGridStatisticsAlgorithm")

knife <- webprocess()
algorithm(knife) <- my_algorithms
knife
An object of class "webprocess":
url: https://cida.usgs.gov/gdp/process/WebProcessingService 
algorithm: Area Grid Statistics (unweighted) Area Grid Statistics (weighted) 
web processing service version: 1.0.0 
process inputs: 
   SUMMARIZE_TIMESTEP: false
   SUMMARIZE_FEATURE_ATTRIBUTE: false
   DELIMITER: COMMA
   REQUIRE_FULL_COVERAGE: true
   STATISTICS: 
   GROUP_BY: 
wait: FALSE 
email: NA 

☝️ looks like both values are in the algorithm slot, but probably only the first is used for the actual request:

knife@algorithm
$`Area Grid Statistics (unweighted)`
[1] "gov.usgs.cida.gdp.wps.algorithm.FeatureGridStatisticsAlgorithm"

$`Area Grid Statistics (weighted)`
[1] "gov.usgs.cida.gdp.wps.algorithm.FeatureWeightedGridStatisticsAlgorithm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant