bbox.mat {AIGIS}R Documentation

Create a matrix of bounding box data for a list of polygons

Description

Given a list of polygons of class gpc.poly, this creates a matrix where each row contains the bounding box data for corresponding polygon.

Usage

bbox.mat(zones = cabggpc)

Arguments

zones The list of polygons from which to extract bounding box information.

Value

A matrix of dimension length(zones) by 4. The columns correspond to low longitude, high longitude, low latitude and high latitude respectively.

Author(s)

Benjamin P. Bryant, bryant@prgs.edu

See Also

arealw

Examples


data(cabgbbmat)
data(cabggpc)

moh <- bbox.mat(cabggpc)

identical(cabgbbmat, moh)

[Package AIGIS version 1.0 Index]