Learn R Programming

oce (version 0.9-19)

read.coastline.shapefile: Read a Coastline File in Shapefile Format

Description

Read coastline data stored in the shapefile format [1].

Usage

read.coastline.shapefile(file, lonlim = c(-180, 180), latlim = c(-90, 90), debug = getOption("oceDebug"), monitor = FALSE, processingLog)

Arguments

file
name of file containing coastline data.
lonlim
as latlim, but a signed longitude.
latlim
range of (signed) latitudes, used only for shapefiles. Regions that do not intersect this range are skipped.
debug
set to TRUE to print information about the header, etc.
monitor
Logical indicating whether to print an indication of progress through the file.
processingLog
if provided, the action item to be stored in the log. (Typically only provided for internal calls; the default that it provides is better for normal calls by a user.)

Value

An object of coastline-class

A hack for depth contours

The following demonstrates that this code is getting close to working with depth contours. This should be handled more internally, and a new object for depth contours should be constructed, of which coastlines could be a subset.

References

1. The ``shapefile'' format is described in ESRI Shapefile Technical Description, March 1998, available at http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf.

See Also

Other things related to coastline data: [[,coastline-method, [[<-,coastline-method, as.coastline, coastline-class, coastlineBest, coastlineCut, coastlineWorld, plot,coastline-method, read.coastline.openstreetmap, subset,coastline-method, summary,coastline-method