1. how should multiple textures be dealt with? (2 rows/hz are currently returned)
-- can this be fixed in SQL ?
--> NASIS: we are keeping only the first record
--> PedonPC: texture class is ommited from query

2. how should A/B horizons be dealt with when entered as 2 horizons sharing the same depths?

3. soil texture plotting / subsetting / flagging helper function or guidance

4. finish NASIS component queries and return similar objects as pedon queries

5. best-guess record from taxhistory table-- see fetchPedonPC() for current implementation

6. what do we do with multiple entries / site in the Site Bedrock table?

7. check sync between NASIS / PedonPC functions

8. need to check for presence of STD coordinates vs. DMS/datum coordinates, maybe warn users

9. figure out data problems: total_frags_pct vs. fragvoltot

10. allow for querying the selected set (local NASIS):

# ideas
library(RODBC)
channel <- odbcConnect('nasis_local', uid='NasisSqlRO', pwd='nasisRe@d0n1y')
tt <- sqlTables(channel, schema='dbo')
tt[grep('site_', tt$TABLE_NAME, ignore.case=TRUE), ]


q.1 <- "SELECT * from site;"
q.2 <- "SELECT * from site_View_0;"
q.3 <- "SELECT * from site_View_1;"
q.4 <- "SELECT * from site_View_NONDEL_0;"
q.5 <- "SELECT * from site_View_NONDEL_1;"

r.1 <- sqlQuery(channel, q.1, stringsAsFactors=FALSE)
r.2 <- sqlQuery(channel, q.2, stringsAsFactors=FALSE)
r.3 <- sqlQuery(channel, q.3, stringsAsFactors=FALSE)
r.4 <- sqlQuery(channel, q.4, stringsAsFactors=FALSE)
r.5 <- sqlQuery(channel, q.5, stringsAsFactors=FALSE)

ss <- TRUE
tables <- c('site')
if(ss == TRUE)
	tables <- paste(tables, 'View_1', sep='_')

(q <- paste('SELECT * from ', tables[1], ';', sep=''))

