aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2019-02-12 20:45:37 +0100
committerKristian Evers <kristianevers@gmail.com>2019-02-12 20:45:37 +0100
commitee00f2c8fca0a55c5ff20c9f0490ddda753ea3b1 (patch)
tree401852d2777285e926fd14489f84e075abee0059 /include
parent54df6833b2f7f1907e16ada7c52f136da2668dbb (diff)
parent06236ecbbae7c8cc8c9688573d1ee33b53c833b0 (diff)
downloadPROJ-ee00f2c8fca0a55c5ff20c9f0490ddda753ea3b1.tar.gz
PROJ-ee00f2c8fca0a55c5ff20c9f0490ddda753ea3b1.zip
Merge remote-tracking branch 'osgeo/master' into pipestack
Diffstat (limited to 'include')
-rw-r--r--include/proj/io.hpp36
1 files changed, 34 insertions, 2 deletions
diff --git a/include/proj/io.hpp b/include/proj/io.hpp
index 4120d707..091efcb7 100644
--- a/include/proj/io.hpp
+++ b/include/proj/io.hpp
@@ -365,7 +365,7 @@ class PROJ_GCC_DLL PROJStringFormatter {
PROJ_DLL ~PROJStringFormatter();
//! @endcond
- PROJ_DLL void setUseETMercForTMerc(bool flag);
+ PROJ_DLL void setUseApproxTMerc(bool flag);
PROJ_DLL const std::string &toString() const;
@@ -378,7 +378,7 @@ class PROJ_GCC_DLL PROJStringFormatter {
PROJ_DLL void startInversion();
PROJ_DLL void stopInversion();
PROJ_INTERNAL bool isInverted() const;
- PROJ_INTERNAL bool getUseETMercForTMerc(bool &settingSetOut) const;
+ PROJ_INTERNAL bool getUseApproxTMerc() const;
PROJ_INTERNAL void setCoordinateOperationOptimizations(bool enable);
PROJ_DLL void
@@ -888,6 +888,38 @@ class PROJ_GCC_DLL AuthorityFactory {
PROJ_DLL std::string getDescriptionText(const std::string &code) const;
+ /** CRS information */
+ struct CRSInfo {
+ /** Authority name */
+ std::string authName{};
+ /** Code */
+ std::string code{};
+ /** Name */
+ std::string name{};
+ /** Type */
+ ObjectType type{ObjectType::CRS};
+ /** Whether the object is deprecated */
+ bool deprecated{};
+ /** Whereas the west_lon_degree, south_lat_degree, east_lon_degree and
+ * north_lat_degree fields are valid. */
+ bool bbox_valid{};
+ /** Western-most longitude of the area of use, in degrees. */
+ double west_lon_degree{};
+ /** Southern-most latitude of the area of use, in degrees. */
+ double south_lat_degree{};
+ /** Eastern-most longitude of the area of use, in degrees. */
+ double east_lon_degree{};
+ /** Northern-most latitude of the area of use, in degrees. */
+ double north_lat_degree{};
+ /** Name of the area of use. */
+ std::string areaName{};
+ /** Name of the projection method for a projected CRS. Might be empty
+ * even for projected CRS in some cases. */
+ std::string projectionMethodName{};
+ };
+
+ PROJ_DLL std::list<CRSInfo> getCRSInfoList() const;
+
// non-standard
PROJ_DLL static AuthorityFactoryNNPtr
create(const DatabaseContextNNPtr &context,