tmaptools (version 1.0)

get_proj4: Get a PROJ.4 character string

Description

Get full PROJ.4 string from an existing PROJ.4 string, a shortcut, or a CRS object.

Usage

get_proj4(x, as.CRS = FALSE)

Arguments

x
a projection. One of:
  1. a PROJ.4 character string
  2. a CRS object
  3. an EPSG code
  4. one the following shortcuts codes:

as.CRS
should a CRS object be returned instead of a PROJ.4 character string? Default is FALSE.

Value

validated PROJ.4 character string, or, if as.CRS=TRUE a CRS object.

See Also

http://en.wikipedia.org/wiki/List_of_map_projections for a overview of projections. http://trac.osgeo.org/proj/ for the PROJ.4 project home page. An extensive list of PROJ.4 codes can be created with rgdal's make_EPSG.