Skip to content
Permalink
Browse files

Fix build on proj <6

(cherry picked from commit 6490a17)
  • Loading branch information
nyalldawson committed Dec 18, 2019
1 parent 1cdf23c commit 7105b4b1b298bfc18238ebeba4407b42189de5b5
Showing with 8 additions and 7 deletions.
  1. +8 −7 src/core/qgsprojutils.h
@@ -63,6 +63,14 @@ class CORE_EXPORT QgsProjUtils
static QStringList searchPaths();

#ifndef SIP_RUN

//! Flags controlling CRS identification behavior
enum IdentifyFlag
{
FlagMatchBoundCrsToUnderlyingSourceCrs = 1 << 0, //!< Allow matching a BoundCRS object to its underlying SourceCRS
};
Q_DECLARE_FLAGS( IdentifyFlags, IdentifyFlag )

#if PROJ_VERSION_MAJOR >= 6

/**
@@ -103,13 +111,6 @@ class CORE_EXPORT QgsProjUtils
*/
static proj_pj_unique_ptr crsToSingleCrs( const PJ *crs );

//! Flags controlling CRS identification behavior
enum IdentifyFlag
{
FlagMatchBoundCrsToUnderlyingSourceCrs = 1 << 0, //!< Allow matching a BoundCRS object to its underlying SourceCRS
};
Q_DECLARE_FLAGS( IdentifyFlags, IdentifyFlag )

/**
* Attempts to identify a \a crs, matching it to a known authority and code within
* an acceptable level of tolerance.

0 comments on commit 7105b4b

Please sign in to comment.
You can’t perform that action at this time.