Function File: [ infs ] = shapeinfo (fname)

Returns a struct with info on shapefile fname.

Input:

fname

(character string). Does not need to have a .shp suffix.

Output: a struct with fields:

Filename

Contains the filename of the shapefile.

ShapeType

The type of shapefile.

ShapeTypeName

The name of the shape type.

BoundingBox

The minimum and maximum X and Y coordinates of all items in the shapefile in a 2 X 2 array, upper rox min and min Y, lower row max X and max Y.

NumFeatures

The number of features (items, records) in the shapefile.

Attributes

A structure with fields Name and Type (containng the names and types of all attributes in the shapefile). Type can be Numeric, Character or Data.

See also: geoshow, mapshow, shapedraw, shaperead, shapewrite.

Package: mapping