aboutsummaryrefslogtreecommitdiff
path: root/include/proj/io.hpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-03-16 11:03:07 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-03-16 11:04:36 +0100
commita1cc9977decb62b4576c6c7f17a0d64cab9bf36a (patch)
treeb11940950e6d661b705487ea2489f2fbc932696e /include/proj/io.hpp
parent3cce54767afe77412b850d2d88ee168370570b6f (diff)
downloadPROJ-a1cc9977decb62b4576c6c7f17a0d64cab9bf36a.tar.gz
PROJ-a1cc9977decb62b4576c6c7f17a0d64cab9bf36a.zip
Fix doc generation with Breathe 4.12.0
Breathe 4.12.0 (as pulled by MacOSX builds such as https://travis-ci.com/OSGeo/proj.4/jobs/185395222) does not seem to like default initialization in documented C++ structs (regression/bug) /Users/travis/build/OSGeo/proj.4/docs/source/development/reference/cpp/io.rst:6:Parsing of expression failed. Using fallback parser. Error was: Error in postfix expression, expected primary expression or type. If primary expression: Invalid definition: Expected identifier in nested name. [error at 67] std::string osgeo::proj::io::AuthorityFactory::CRSInfo::authName = {} -------------------------------------------------------------------^ If type: Invalid definition: Expected identifier in nested name. [error at 67] std::string osgeo::proj::io::AuthorityFactory::CRSInfo::authName = {} -------------------------------------------------------------------^
Diffstat (limited to 'include/proj/io.hpp')
-rw-r--r--include/proj/io.hpp28
1 files changed, 16 insertions, 12 deletions
diff --git a/include/proj/io.hpp b/include/proj/io.hpp
index de1c1d1b..2fef0f9c 100644
--- a/include/proj/io.hpp
+++ b/include/proj/io.hpp
@@ -891,31 +891,35 @@ class PROJ_GCC_DLL AuthorityFactory {
/** CRS information */
struct CRSInfo {
/** Authority name */
- std::string authName{};
+ std::string authName;
/** Code */
- std::string code{};
+ std::string code;
/** Name */
- std::string name{};
+ std::string name;
/** Type */
- ObjectType type{ObjectType::CRS};
+ ObjectType type;
/** Whether the object is deprecated */
- bool deprecated{};
+ bool deprecated;
/** Whereas the west_lon_degree, south_lat_degree, east_lon_degree and
* north_lat_degree fields are valid. */
- bool bbox_valid{};
+ bool bbox_valid;
/** Western-most longitude of the area of use, in degrees. */
- double west_lon_degree{};
+ double west_lon_degree;
/** Southern-most latitude of the area of use, in degrees. */
- double south_lat_degree{};
+ double south_lat_degree;
/** Eastern-most longitude of the area of use, in degrees. */
- double east_lon_degree{};
+ double east_lon_degree;
/** Northern-most latitude of the area of use, in degrees. */
- double north_lat_degree{};
+ double north_lat_degree;
/** Name of the area of use. */
- std::string areaName{};
+ 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{};
+ std::string projectionMethodName;
+
+ //! @cond Doxygen_Suppress
+ CRSInfo();
+ //! @endcond
};
PROJ_DLL std::list<CRSInfo> getCRSInfoList() const;