Learn R Programming

RArcInfo (version 0.3)

read.coverage: Function for retrieving basic data from a given coverage

Description

This function allows the user to retrieve the main data stored in the chosen coverage. This doesn't mean that all the data are retrieved, but only the most important.

Tables are not imported, but a dataframe containig the information provided by a call to get.tablenames of all the tables related to the coverage.

Neither Polygon definitions files are imported. For a single coverage there can be more than one pal file, so their names are imported. Then, the user can choose which one to import by calling get.paldata.

The names of the different files are supposed to be the default names when calling the proper get.XXXdata. If some of these names change then the function will not import that feature properly. But this fact should never happen.

Usage

read.coverage(datadir, coverage)

Arguments

datadir
Directory under which all the coverages and a directory called 'info' are.
coverage
The name of the coverage we want to work with

Value

  • This function returns a list of all the data directory, coverage name and all the data imported: i
  • datadirThe directory where all the coverages are stored, the one used when this function was called.
  • coverageThe name of the coverage used when calling this function.
  • arcThe arc definitions, as returned by get.arcdata.
  • bndThe bounday definition, as returned by get.bnddata.
  • cntThe polygon centroids, as returned by get.cntdata.
  • labThe label point records of the coverage.
  • palThe names of all the polygon definitions files.
  • tblnThe description of all the tables related to the coverage, as returned by get.tablenames.
  • tolThe tolerance values.

References

More information about this kind of data can be found at http://pages.infinit.net/danmo/e00/docs/v7_bin_cover.html.