Learn R Programming

rgdal (version 1.3-2)

make_EPSG: Make a data frame of EPSG projection codes

Description

Make a data frame of the now-defunct European Petroleum Survey Group (EPSG) geodetic parameter dataset as distributed with PROJ.4 software and included in this package. Because finding the correct projection specification is not easy, lists still known as EPSG lists are maintained, and more generally retrieved from databases. The data collated here are as distributed with PROJ.4.

Usage

make_EPSG(file)

Arguments

file

file name of the file matching EPSG codes and PROJ.4 arguments, should usually be autodetected

Value

returns a data frame with columns:

code

integer column of EPSG code numbers

note

character column of notes as included in the file

prj4

character column of PROJ.4 arguments for the equivalent projection definitions

...

References

http://www.epsg.org/

Examples

Run this code
# NOT RUN {
EPSG <- make_EPSG()
attr(EPSG, "metadata") # PROJ.4 5.0.0 and later include EPSG version
EPSG[grep("Oslo", EPSG$note), 1:2]
EPSG[1925:1927, 3]
EPSG[grep("Poland", EPSG$note), 1:2]
EPSG[grep("Amersfoort", EPSG$note), 1:2]
EPSG[grep("North Carolina", EPSG$note), 1:2]
EPSG[2202, 3]
# }

Run the code above in your browser using DataLab