geopoints: A 'geopoints' object containing one or more georeferenced...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Geospoints objects contain data for one or more points defined by their longitude and latitude in decimal degrees. These objects can be read or write to ERSI shape files, or DBF database.

Usage

1
2
3
4
5
6
7
8
geopoints(x)
read.geopoints(File, format)
write.geopoints(x, file, arcgis = FALSE,...)

## S3 method for class 'geopoints'
print(x, ...)
## S3 method for class 'geopoints'
points(x, ...)

Arguments

x

A 'geoshapes' object or a data frame with columns 'x' and 'y' for longitudes and latitudes of the points in decimal degrees. For print() and points() methods, it is a 'geopoints' object

File

The path to a .shp (ESRI shape file) or .dbf (DBase) file to import

format

Either "shp" or "dbf". If you do not provide this argument, the format is guess from the File extension

file

The path to an ESRI file where to write data, without extension. Three files are created, with respective extensions .shp, .shx, and .dbf

arcgis

If TRUE, the header of the DBF table is made compatible with ArcGIS, that is, dot (.) is replaced by underline (_)

...

Further arguments passed to the functions (not used yet)

Details

geopoints() converts a 'geoshapes' object or a data frame into a 'geopoints' object. read.geoshapes() and write.geoshapes() read and write shapes from or to ESRI shape files or DBase files on disk. The 'geoshapes' objects have methods to print them, and to add them to graphs (points at corresponding coordinates).

Value

A 'geopoints' object is returned from geopoints() and read.geopoints(). The other functions are used for their side-effect rather than for returning something useful.

Author(s)

Philippe Grosjean <phgrosjean@sciviews.org>

See Also

geomat, geoshapes

Examples

1
2
3
4
5
6
7
data(mpet)
mpet

# Plot of Morocco terrain and add the stations location in red
data(morocco)
image(morocco)
points(mpet, col = 2)

aurelhy documentation built on May 2, 2019, 5:46 p.m.

Related to geopoints in aurelhy...