Help
Popular Articles
Staff
$ proj -lp # projections $ proj -le # ellipsoids $ proj -ld # datums
# R code:
library(rgdal)
projInfo("proj") # projections
projInfo("ellps") # ellipsoids
projInfo("datum") # datums
The EPSG code can be a convenient way to specify a projection in QGIS, ogr2ogr, proj etc. The saves the hassle of inputting the full PROJ.4 definition string, which can be an error prone step. However, be aware that not all projections are associated with an EPSG code.
# R code:
library(rgdal)
EPSG <- make_EPSG()
# As an example, search for Hawaii state projections
EPSG[[grep("hawaii",|EPSG$note, ignore.case=TRUE), 1:2]]
# Get PROJ.4 information for a particular EPSG code
subset(EPSG, code==2784)