
Last chance! 50% off unlimited learning
Sale ends in
Get shapefile header information; the file should be given including its ".shp" extension, and the function will reconstruct the names of the database (dbf) file and the index (shx) file from these.
getinfo.shape(filen)
# S3 method for shapehead
print(x, ...)
The function returns a list of class shapehead.
name of file with *.shp extension
a shapehead list as returned by getinfo.shape
other arguments passed to print
Roger Bivand Roger.Bivand@nhh.no; shapelib by Frank Warmerdam
The function calls code from shapelib to read shapefiles, a file format used by ESRI GIS software among others
res <- getinfo.shape(system.file("shapes/fylk-val.shp", package="maptools")[1])
res
str(res)
Run the code above in your browser using DataLab