proj: CRS of various PROJ.4 projections

Description Usage Arguments Value Author(s) See Also Examples

Description

coordinate reference system (CRS) Object for several proj4 character strings. posm and pll are taken directly from OpenStreetMap::osm and longlat.
pmap gets the projection string from map objects as returned by pointsMap.

Usage

1
2
3
4
5
6
7
putm(long, zone = mean(long, na.rm = TRUE)%/%6 + 31)

posm()

pll()

pmap(map)

Arguments

long

Vector of decimal longitude coordinates (East/West values). Not needed of zone is given.

zone

UTM (Universal Transverse Mercator) zone, see e.g. https://upload.wikimedia.org/wikipedia/commons/e/ed/Utm-zones.jpg. DEFAULT: UTM zone at mean of long

map

for pmap: map object as returned by pointsMap

Value

sp::CRS objects for one of:
- UTM projection with given zone
- Open street map (and google) mercator projection
- Latitude Longitude projection

Author(s)

Berry Boessenkool, [email protected], Aug 2016

See Also

projectPoints, degree

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
posm()
str(posm())
posm()@projargs
pll()
putm(5:14) # Germany
putm(zone=33) # Berlin

map <- list(tiles=list(dummy=list(projection=pll())),
            bbox=list(p1=par("usr")[c(1,4)], p2=par("usr")[2:3]) )
pmap(map)

brry/OSMscale documentation built on April 18, 2018, 8:23 p.m.