\HeaderA{showWKT}{Show Well-Known Text spatial reference system metadata}{showWKT}
\keyword{spatial}{showWKT}
\begin{Description}\relax
Use GDAL/OGR spatial reference objects to convert a PROJ.4 representation to a Well-Known Text representation.
\end{Description}
\begin{Usage}
\begin{verbatim}
showWKT(p4s, file = NULL, morphToESRI = TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{p4s}] A valid PROJ.4 string representing a spatial reference system
\item[\code{file}] if not NULL, a file name to which the output Well-Known Text representation should be written
\item[\code{morphToESRI}] default TRUE, morph the WKT string to the representation used by ESRI
\end{ldescription}
\end{Arguments}
\begin{Value}
A character string containing the WKT representation of the PROJ.4 string.
\end{Value}
\begin{Author}\relax
Roger Bivand
\end{Author}
\begin{References}\relax
\url{http://www.remotesensing.org/gdal/ogr/osr_tutorial.html}
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{proj4string}{proj4string}}, \code{\LinkA{CRS-class}{CRS.Rdash.class}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
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")
\end{ExampleCode}
\end{Examples}

