\hypertarget{classosgeo_1_1proj_1_1io_1_1PROJStringParser}{}\doxysection{osgeo\+::proj\+::io\+::PROJString\+Parser Class Reference}
\label{classosgeo_1_1proj_1_1io_1_1PROJStringParser}\index{osgeo::proj::io::PROJStringParser@{osgeo::proj::io::PROJStringParser}}


Parse a PROJ string into the appropriate subclass of \mbox{\hyperlink{classosgeo_1_1proj_1_1util_1_1BaseObject}{util\+::\+Base\+Object}}.  




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

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classosgeo_1_1proj_1_1io_1_1PROJStringParser_abd47dace1048871dbf61b915f94caf6b}\label{classosgeo_1_1proj_1_1io_1_1PROJStringParser_abd47dace1048871dbf61b915f94caf6b}} 
\mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1PROJStringParser}{PROJString\+Parser}} \& {\bfseries attach\+Database\+Context} (const \mbox{\hyperlink{namespaceosgeo_1_1proj_1_1io_ac071e92c14195058e37bcd4c7b75b42f}{Database\+Context\+Ptr}} \&db\+Context)
\begin{DoxyCompactList}\small\item\em Attach a database context, to allow queries in it if needed. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1PROJStringParser}{PROJString\+Parser}} \& \mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1PROJStringParser_a2f302135f3f70e180a3e8e8790c5d333}{set\+Use\+PROJ4\+Init\+Rules}} (bool enable)
\begin{DoxyCompactList}\small\item\em Set how init=epsg\+:XXXX syntax should be interpreted. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classosgeo_1_1proj_1_1io_1_1PROJStringParser_a0a0a8b2a982785ec96568b45aa4cd85e}\label{classosgeo_1_1proj_1_1io_1_1PROJStringParser_a0a0a8b2a982785ec96568b45aa4cd85e}} 
std\+::vector$<$ std\+::string $>$ {\bfseries warning\+List} () const
\begin{DoxyCompactList}\small\item\em Return the list of warnings found during parsing. \end{DoxyCompactList}\item 
\mbox{\hyperlink{structosgeo_1_1proj_1_1util_1_1BaseObjectNNPtr}{util\+::\+Base\+Object\+NNPtr}} \mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1PROJStringParser_ab3df501ccf460e481e4fddc42bc63712}{create\+From\+PROJString}} (const std\+::string \&proj\+String)
\begin{DoxyCompactList}\small\item\em Instantiate a sub-\/class of Base\+Object from a PROJ string. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Parse a PROJ string into the appropriate subclass of \mbox{\hyperlink{classosgeo_1_1proj_1_1util_1_1BaseObject}{util\+::\+Base\+Object}}. 

\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classosgeo_1_1proj_1_1io_1_1PROJStringParser_ab3df501ccf460e481e4fddc42bc63712}\label{classosgeo_1_1proj_1_1io_1_1PROJStringParser_ab3df501ccf460e481e4fddc42bc63712}} 
\index{osgeo::proj::io::PROJStringParser@{osgeo::proj::io::PROJStringParser}!createFromPROJString@{createFromPROJString}}
\index{createFromPROJString@{createFromPROJString}!osgeo::proj::io::PROJStringParser@{osgeo::proj::io::PROJStringParser}}
\doxysubsubsection{\texorpdfstring{createFromPROJString()}{createFromPROJString()}}
{\footnotesize\ttfamily Base\+Object\+NNPtr osgeo\+::proj\+::io\+::\+PROJString\+Parser\+::create\+From\+PROJString (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{proj\+String }\end{DoxyParamCaption})}



Instantiate a sub-\/class of Base\+Object from a PROJ string. 

The proj\+String must contain +type=crs for the object to be detected as a CRS instead of a Coordinate\+Operation.


\begin{DoxyExceptions}{Exceptions}
{\em \mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1ParsingException}{Parsing\+Exception}}} & \\
\hline
\end{DoxyExceptions}
\mbox{\Hypertarget{classosgeo_1_1proj_1_1io_1_1PROJStringParser_a2f302135f3f70e180a3e8e8790c5d333}\label{classosgeo_1_1proj_1_1io_1_1PROJStringParser_a2f302135f3f70e180a3e8e8790c5d333}} 
\index{osgeo::proj::io::PROJStringParser@{osgeo::proj::io::PROJStringParser}!setUsePROJ4InitRules@{setUsePROJ4InitRules}}
\index{setUsePROJ4InitRules@{setUsePROJ4InitRules}!osgeo::proj::io::PROJStringParser@{osgeo::proj::io::PROJStringParser}}
\doxysubsubsection{\texorpdfstring{setUsePROJ4InitRules()}{setUsePROJ4InitRules()}}
{\footnotesize\ttfamily \mbox{\hyperlink{classosgeo_1_1proj_1_1io_1_1PROJStringParser}{PROJString\+Parser}} \& osgeo\+::proj\+::io\+::\+PROJString\+Parser\+::set\+Use\+PROJ4\+Init\+Rules (\begin{DoxyParamCaption}\item[{bool}]{enable }\end{DoxyParamCaption})}



Set how init=epsg\+:XXXX syntax should be interpreted. 


\begin{DoxyParams}{Parameters}
{\em enable} & When set to true, init=epsg\+:XXXX syntax will be allowed and will be interpreted according to PROJ.\+4 and PROJ.\+5 rules, that is geodetic\+CRS will have longitude, latitude order and will expect/output coordinates in radians. Projected\+CRS will have easting, northing axis order (except the ones with Transverse Mercator South Orientated projection). \\
\hline
\end{DoxyParams}


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