showWKT {rgdal} | R Documentation

## Show Well-Known Text spatial reference system metadata

### Description

Use GDAL/OGR spatial reference objects to convert a PROJ.4 representation to a Well-Known Text representation.

### Usage

    showWKT(p4s, file = NULL, morphToESRI = TRUE)

### Arguments

`p4s` | A valid PROJ.4 string representing a spatial reference system
`file` | if not NULL, a file name to which the output Well-Known Text representation should be written
`morphToESRI` | default TRUE, morph the WKT string to the representation used by ESRI

### Value

A character string containing the WKT representation of the PROJ.4 string.

### Author(s)

Roger Bivand

### References

http://www.remotesensing.org/gdal/ogr/osr_tutorial.html

### See Also

`proj4string`, `CRS-class`

### Examples

    cities <- readOGR(system.file("vectors", package = "rgdal")[1], "cities")
    readLines(system.file("vectors/cities.prj", package = "rgdal")[1])
    showWKT(proj4string(cities))
    showWKT("+init=epsg:28992")

[Package rgdal version 0.4-4 Index]