Skip to content
Permalink
Browse files

Add utility class for proj to Python bindings

  • Loading branch information
nyalldawson committed Mar 19, 2019
1 parent a1a8e92 commit 545e8bcf2cd5cb643eae3f58b7a3ed1117d89692
Showing with 59 additions and 2 deletions.
  1. +37 −0 python/core/auto_generated/qgsprojutils.sip.in
  2. +1 −0 python/core/core_auto.sip
  3. +21 −2 src/core/qgsprojutils.h
@@ -0,0 +1,37 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsprojutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/




class QgsProjUtils
{
%Docstring
Utility functions for working with the proj library.

.. versionadded:: 3.8
%End

%TypeHeaderCode
#include "qgsprojutils.h"
%End
public:

static int projVersionMajor();
%Docstring
Returns the proj library major version number.
%End
};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsprojutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -99,6 +99,7 @@
%Include auto_generated/qgsprojectstorageregistry.sip
%Include auto_generated/qgsprojecttranslator.sip
%Include auto_generated/qgsprojectversion.sip
%Include auto_generated/qgsprojutils.sip
%Include auto_generated/qgsproperty.sip
%Include auto_generated/qgspropertycollection.sip
%Include auto_generated/qgspropertytransformer.sip
@@ -26,7 +26,26 @@
#include <QThreadStorage>
#endif

#define SIP_NO_FILE
/**
* \class QgsProjUtils
* \ingroup core
* Utility functions for working with the proj library.
* \since QGIS 3.8
*/
class CORE_EXPORT QgsProjUtils
{
public:

/**
* Returns the proj library major version number.
*/
static int projVersionMajor()
{
return PROJ_VERSION_MAJOR;
}
};

#ifndef SIP_RUN

#if PROJ_VERSION_MAJOR>=6
struct projCtx_t;
@@ -68,5 +87,5 @@ class CORE_EXPORT QgsProjContext
#endif
};


#endif
#endif // QGSPROJUTILS_H

0 comments on commit 545e8bc

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