dankelley/oce — Issue #162: oce - read.coastline
Author: wethey
Created: 2011-11-03 13:07:43+00:00
State: open

In the newest version of oce there appears to be a bug in read.coastline that switches the longitude and latitude columns:

data <- read.table(file, col.names = c("latitude", "longitude"))
res <- new("coastline", latitude = data$latitude, longitude = data$longitude,
fillable = FALSE)

Here is an example of the first few lines of an R formatted coastline file of Europe from the NOAA site:

NA NA
-9.817985	30.999932
-9.817985	30.999052

The first column is longitude in this format.