Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not mix class and struct
  • Loading branch information
wonder-sk committed Mar 26, 2020
1 parent f43bd8c commit 976c0e0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
15 changes: 14 additions & 1 deletion python/core/auto_generated/qgstiles.sip.in
Expand Up @@ -86,8 +86,21 @@ Returns index of the last row in the range
};


struct QgsTileMatrix
class QgsTileMatrix
{
%Docstring
Defines a matrix of tiles for a single zoom level: it is defined by its size (width * height)
and map extent that it covers.

Please note that we follow the XYZ convention of X/Y axes, i.e. top-left tile has [0,0] coordinate
(which is different from TMS convention where bottom-left tile has [0,0] coordinate).

.. versionadded:: 3.14
%End

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

static QgsTileMatrix fromWebMercator( int mZoomLevel );
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgstiles.h
Expand Up @@ -96,7 +96,7 @@ class CORE_EXPORT QgsTileRange
*
* \since QGIS 3.14
*/
struct CORE_EXPORT QgsTileMatrix
class CORE_EXPORT QgsTileMatrix
{
public:

Expand Down
2 changes: 1 addition & 1 deletion src/core/vectortile/qgsvectortilelayer.h
Expand Up @@ -23,7 +23,7 @@

class QgsVectorTileRenderer;

struct QgsTileXYZ;
class QgsTileXYZ;

/**
* \ingroup core
Expand Down
2 changes: 1 addition & 1 deletion src/core/vectortile/qgsvectortileutils.h
Expand Up @@ -31,7 +31,7 @@ class QgsVectorLayer;

class QgsTileMatrix;
class QgsTileRange;
struct QgsTileXYZ;
class QgsTileXYZ;
class QgsVectorTileLayer;

/**
Expand Down

0 comments on commit 976c0e0

Please sign in to comment.