geocode: Locality Description for Austria's administrative Boundaries

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

Description

Query data("BEV", package "sabotagdata") to get locality description for given coordinates.

Usage

1
geocode.austria(x, p = 100, sp = FALSE, bergfex = FALSE, ...)

Arguments

x

Object of class SpatialPointsDataFrame.

p

Value for accuracy estimate. The function searches for a column named “accuracy” or “precision” in x and, if present, useses the given values.

sp

Return SpatialPointsDataFrame.

bergfex

Also query bergfex server to obtain local toponyms.

...

Not used.

Details

The function returns a string composed of country (Staat), state (Bundesland), district (Bezirk) and municiplaity (politische Gemeinde) aswell as a formated coordinate and elevation description. It is espaecially tailored for the region of Austria (and it's neighbouring countries). Setting bergfex = TRUE will addditionally append a local toponym. The function will work only if you have set your geonames username with options(geonamesUsername="myusernamehere"). You will need to create an account at http://www.geonames.org/login/.

Value

A data.frame or SpatialPointsDataFrame with CRS("+init=epsg:4326").

Author(s)

Roland Kaiser

See Also

bergfex

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
x <- data.frame(accuracy = 10, x = 10:16, y = 48)
coordinates(x) <- ~x+y
proj4string(x) <- CRS("+init=epsg:4326")

# for the following to work options()$geonamesUsername
# should return a valid user name
## Not run: 
geocode.austria(x)

## End(Not run)

kardinal-eros/sabotag-tools documentation built on May 20, 2019, 7:21 a.m.