Skip to content

Commit

Permalink
addressing #25, fulltext section data for SoilWeb now successfully cr…
Browse files Browse the repository at this point in the history
…eated
  • Loading branch information
dylanbeaudette committed Feb 15, 2022
1 parent 7dc67f1 commit 83ad323
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions misc/parseOSD-dev/create-SoilWeb-OSD-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sc <- sc$soilseriesname

## TODO: double-check funky names like "O'BRIEN" and chars not [a-z]

## TODO: add sections / entire OSD -> fulltext data
## TODO: add entire OSD -> fulltext data

## TODO: narratives in the JSON files have leading white space

Expand Down Expand Up @@ -160,8 +160,10 @@ write.csv(hz, file = gzfile('parsed-data.csv.gz'), row.names = FALSE)
write.csv(s, file = gzfile('parsed-site-data.csv.gz'), row.names = FALSE)

## re-make section fulltext table + INSERT statements
# 6 minutes
system.time(.makeFullTextSectionsTable(fulltext.records))

# gzip
R.utils::gzip('fulltext-section-data.sql', overwrite = TRUE)

## TODO: investigate missing records, relative to the last time this was run
# nrow(read.csv('E:/working_copies/parse-osd/R/parsed-data.csv.gz'))
Expand Down

0 comments on commit 83ad323

Please sign in to comment.