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

bug fix for fetchGML_IDs, doc for multiple counties of same name #283

Merged
merged 5 commits into from
Jun 7, 2016
Merged

bug fix for fetchGML_IDs, doc for multiple counties of same name #283

merged 5 commits into from
Jun 7, 2016

Conversation

aappling-usgs
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 86.069% when pulling b191c06 on aappling-usgs:master into a69aeb3 on USGS-R:master.

@aappling-usgs
Copy link
Contributor Author

@jread-usgs - checks have passed. please glance at the docs before merging - in particular, i want to make sure you're OK with my slightly hacky use of query(webgeom(..., attribute=c('STATE','COUNTY','FIPS'))) here:

#' #3) look at the options for county names and FIPS codes
#' counties <- data.frame(STCountyFIPS=query(webgeom(geom='derivative:US_Counties', 
#'   attribute='STATE,COUNTY,FIPS'), 'values'), stringsAsFactors=FALSE)
#' counties$FIPS=substring(counties$STCountyFIPS, nchar(counties$STCountyFIPS)-4)
#' counties$State=substr(counties$STCountyFIPS, 1, 2)
#' counties$County=substring(counties$STCountyFIPS, 3, nchar(counties$STCountyFIPS)-5)

match_id <- which(value_names %in% values(.Object)) # CHECK ORDER!!!
gml_id = unlist(lapply(match_id, function(x) getNodeSet(xml,paste0(value_path,'/parent::node()[1]/@gml:id'))[[x]][['id']]))
node_sets <- getNodeSet(xml, paste0(value_path,'/parent::node()'))
node_df <- do.call(rbind, lapply(node_sets, function(x) data.frame(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jordansread
Copy link
Contributor

Can you increment the minor version +1?

@jordansread
Copy link
Contributor

sorry @aappling-usgs I meant patch version...can you update again?

@coveralls
Copy link

Coverage Status

Coverage remained the same at 86.069% when pulling 6618100 on aappling-usgs:master into a69aeb3 on USGS-R:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 86.069% when pulling 4504718 on aappling-usgs:master into a69aeb3 on USGS-R:master.

@jordansread jordansread merged commit 1028f15 into DOI-USGS:master Jun 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants