neilcharles / geoviz

Functions to make it easy to process DEM data and add GPS traces to rstats Rayshader scenes, and to overlay mapbox and elevation shading imagery
http://www.hilltop-analytics.com
103 stars 12 forks source link

example_igc parsing problem #25

Closed carbonmetrics closed 5 years ago

carbonmetrics commented 5 years ago

igc <- example_igc() loads with parsing failures:

pacman::p_load(geoviz, rayshader)
igc <- example_igc()
Parsed with column specification:
cols(
  `AFLY014n 04141` = col_character()
)
Warning: 7 parsing failures.
row col  expected    actual                                                                      file
  9  -- 1 columns 2 columns '/home/henk/R/x86_64-pc-linux-gnu-library/3.5/geoviz/extdata/example.igc'
 10  -- 1 columns 3 columns '/home/henk/R/x86_64-pc-linux-gnu-library/3.5/geoviz/extdata/example.igc'
 11  -- 1 columns 3 columns '/home/henk/R/x86_64-pc-linux-gnu-library/3.5/geoviz/extdata/example.igc'
 16  -- 1 columns 2 columns '/home/henk/R/x86_64-pc-linux-gnu-library/3.5/geoviz/extdata/example.igc'
 17  -- 1 columns 2 columns '/home/henk/R/x86_64-pc-linux-gnu-library/3.5/geoviz/extdata/example.igc'
... ... ......... ......... .........................................................................
See problems(...) for more details.
neilcharles commented 5 years ago

Thanks. Pure laziness that one, using read_csv to import the igc file and allowing it to drop rows that weren't track points.