PROJ C++ API
Public Types | Public Member Functions | Static Public Member Functions | List of all members
osgeo::proj::io::PROJStringFormatter Class Reference

Formatter to PROJ strings. More...

#include <io.hpp>

Public Types

enum  Convention { Convention::PROJ_5, Convention::PROJ_4 }
 

Public Member Functions

void setUseETMercForTMerc (bool flag)
 Set whether Extented Transverse Mercator (etmerc) should be used instead of tmerc.
 
const std::string & toString () const
 Returns the PROJ string.
 

Static Public Member Functions

static PROJStringFormatterNNPtr create (Convention conventionIn=Convention::PROJ_5, DatabaseContextPtr dbContext=nullptr)
 Constructs a new formatter. More...
 

Detailed Description

Formatter to PROJ strings.

An instance of this class can only be used by a single thread at a time.

Member Enumeration Documentation

PROJ variant.

Enumerator
PROJ_5 

PROJ v5 (or later versions) string.

PROJ_4 

PROJ v4 string as output by GDAL exportToProj4()

Member Function Documentation

PROJStringFormatterNNPtr osgeo::proj::io::PROJStringFormatter::create ( Convention  conventionIn = Convention::PROJ_5,
DatabaseContextPtr  dbContext = nullptr 
)
static

Constructs a new formatter.

A formatter can be used only once (its internal state is mutated)

Its default behaviour can be adjusted with the different setters.

Parameters
conventionInPROJ string flavor. Defaults to Convention::PROJ_5
dbContextDatabase context (can help to find alternative grid names). May be nullptr
Returns
new formatter.

The documentation for this class was generated from the following files: