Load IGC file as Simple Features in R

21 Views Asked by At

I have a large number of IGC files that are GPS traces logging paraglider flights.

I'd like to load them as simple features using sf::st_read() but the sf library doesn't know how to deal with them. Does anyone know if there's a straightforward solution to loading them? I've written a simple function to parse the logs as they're only text files but I haven't built it to cover the full spec of an IGC file so it gets caught out sometimes.

I can bounce them off gpsbabel and convert them to something sf can read but was hoping there's a nice way to read them straight into R.

sf::st_read() returns:

The source could be corrupt or not supported. See st_drivers() for a list of supported formats. In addition: Warning message: In CPL_read_ogr(dsn, layer, query, as.character(options), quiet, : GDAL Error 1: posix_spawnp() failed

0

There are 0 best solutions below