getinfo.shape

0th

Percentile

Get shapefile header information

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.

Keywords
spatial
Usage
getinfo.shape(filen)
# S3 method for shapehead
print(x, ...)
Arguments
filen

name of file with *.shp extension

x

a shapehead list as returned by getinfo.shape

...

other arguments passed to print

Details

The function calls code from shapelib to read shapefiles, a file format used by ESRI GIS software among others

Value

The function returns a list of class shapehead.

References

http://shapelib.maptools.org/

Aliases
  • getinfo.shape
  • print.shapehead
Examples
# NOT RUN {
res <- getinfo.shape(system.file("shapes/fylk-val.shp", package="maptools")[1])
res
str(res)
# }
Documentation reproduced from package maptools, version 0.9-5, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.