\hypertarget{classosgeo_1_1proj_1_1io_1_1IPROJStringExportable}{}\doxysection{osgeo\+::proj\+::io\+::IPROJString\+Exportable Class Reference}
\label{classosgeo_1_1proj_1_1io_1_1IPROJStringExportable}\index{osgeo::proj::io::IPROJStringExportable@{osgeo::proj::io::IPROJStringExportable}}


Interface for an object that can be exported to a PROJ string.  




{\ttfamily \#include $<$io.\+hpp$>$}



Inheritance diagram for osgeo\+::proj\+::io\+::IPROJString\+Exportable\+:
% FIG 0
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
std\+::string \mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1IPROJStringExportable_ab592dcf0f32ee2587a782d290aeb0638}{export\+To\+PROJString}} (\mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1PROJStringFormatter}{PROJString\+Formatter}} $\ast$formatter) const
\begin{DoxyCompactList}\small\item\em Builds a PROJ string representation. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Interface for an object that can be exported to a PROJ string. 

\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classosgeo_1_1proj_1_1io_1_1IPROJStringExportable_ab592dcf0f32ee2587a782d290aeb0638}\label{classosgeo_1_1proj_1_1io_1_1IPROJStringExportable_ab592dcf0f32ee2587a782d290aeb0638}} 
\index{osgeo::proj::io::IPROJStringExportable@{osgeo::proj::io::IPROJStringExportable}!exportToPROJString@{exportToPROJString}}
\index{exportToPROJString@{exportToPROJString}!osgeo::proj::io::IPROJStringExportable@{osgeo::proj::io::IPROJStringExportable}}
\doxysubsubsection{\texorpdfstring{exportToPROJString()}{exportToPROJString()}}
{\footnotesize\ttfamily std\+::string osgeo\+::proj\+::io\+::\+IPROJString\+Exportable\+::export\+To\+PROJString (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1PROJStringFormatter}{PROJString\+Formatter}} $\ast$}]{formatter }\end{DoxyParamCaption}) const}



Builds a PROJ string representation. 


\begin{DoxyItemize}
\item For \mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1PROJStringFormatter_a797997db6984aa2bad279abb0010ff13a475fc81228e34a4715d2d28f4d7f2851}{PROJString\+Formatter\+::\+Convention\+::\+PROJ\+\_\+5}} (the default), 
\begin{DoxyItemize}
\item For a \mbox{\hyperlink{classosgeo_1_1proj_1_1crs_1_1CRS}{crs\+::\+CRS}}, returns the same as \mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1PROJStringFormatter_a797997db6984aa2bad279abb0010ff13ae3bec874928ae377030a07a550bdc7eb}{PROJString\+Formatter\+::\+Convention\+::\+PROJ\+\_\+4}}. It should be noted that the export of a CRS as a PROJ string may cause loss of many important aspects of a CRS definition. Consequently it is discouraged to use it for interoperability in newer projects. The choice of a WKT representation will be a better option. 
\item For \mbox{\hyperlink{classosgeo_1_1proj_1_1operation_1_1CoordinateOperation}{operation\+::\+Coordinate\+Operation}}, returns a PROJ pipeline. 
\end{DoxyItemize}


\item For \mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1PROJStringFormatter_a797997db6984aa2bad279abb0010ff13ae3bec874928ae377030a07a550bdc7eb}{PROJString\+Formatter\+::\+Convention\+::\+PROJ\+\_\+4}}, format a string compatible with the OGRSpatial\+Reference\+::export\+To\+Proj4() of GDAL \texorpdfstring{$<$}{<}=2.\+3. It is only compatible of a few CRS objects. The PROJ string will also contain a +type=crs parameter to disambiguate the nature of the string from a Coordinate\+Operation. 
\begin{DoxyItemize}
\item For a \mbox{\hyperlink{classosgeo_1_1proj_1_1crs_1_1GeographicCRS}{crs\+::\+Geographic\+CRS}}, returns a proj=longlat string, with ellipsoid / datum / prime meridian information, ignoring axis order and unit information. 
\item For a geocentric \mbox{\hyperlink{classosgeo_1_1proj_1_1crs_1_1GeodeticCRS}{crs\+::\+Geodetic\+CRS}}, returns the transformation from geographic coordinates into geocentric coordinates. 
\item For a \mbox{\hyperlink{classosgeo_1_1proj_1_1crs_1_1ProjectedCRS}{crs\+::\+Projected\+CRS}}, returns the projection method, ignoring axis order. 
\item For a \mbox{\hyperlink{classosgeo_1_1proj_1_1crs_1_1BoundCRS}{crs\+::\+Bound\+CRS}}, returns the PROJ string of its source/base CRS, amended with towgs84 / nadgrids parameter when the deriving conversion can be expressed in that way. 
\end{DoxyItemize}


\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em formatter} & PROJ string formatter. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a PROJ string. 
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em \mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1FormattingException}{Formatting\+Exception}}} & \\
\hline
\end{DoxyExceptions}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
include/proj/io.\+hpp\end{DoxyCompactItemize}
