Skip to content

Commit

Permalink
Merge branch 'master' of github.com:qgis/QGIS into plugman
Browse files Browse the repository at this point in the history
  • Loading branch information
borysiasty committed Oct 16, 2017
2 parents 11ec24f + 83212e7 commit 9159325
Show file tree
Hide file tree
Showing 120 changed files with 15,370 additions and 4,618 deletions.
1 change: 1 addition & 0 deletions doc/CMakeLists.txt
Expand Up @@ -89,6 +89,7 @@ IF(WITH_APIDOC)
${CMAKE_SOURCE_DIR}/src/analysis
${CMAKE_SOURCE_DIR}/src/analysis/interpolation
${CMAKE_SOURCE_DIR}/src/analysis/network
${CMAKE_SOURCE_DIR}/src/analysis/processing
${CMAKE_SOURCE_DIR}/src/analysis/raster
${CMAKE_SOURCE_DIR}/src/analysis/vector
${CMAKE_SOURCE_DIR}/src/3d
Expand Down
1 change: 1 addition & 0 deletions doc/CONTRIBUTORS
Expand Up @@ -44,6 +44,7 @@ Ismail Sunni
Ivan Lucena
Ivan Mincik
Jaka Kranjc (lynxlynxlynx)
James Shaeffer
Jean-Denis Giguere
Jeremy Palmer
Jerrit Collord
Expand Down
2 changes: 2 additions & 0 deletions python/CMakeLists.txt
Expand Up @@ -224,11 +224,13 @@ ENDIF (WITH_SERVER AND WITH_SERVER_PLUGINS)

# additional analysis includes
INCLUDE_DIRECTORIES(BEFORE
../src/analysis/processing
../src/analysis/vector
../src/analysis/raster
../src/analysis/network
../src/analysis/interpolation
../src/analysis/openstreetmap
${CMAKE_BINARY_DIR}/src/analysis/processing
${CMAKE_BINARY_DIR}/src/analysis/vector
${CMAKE_BINARY_DIR}/src/analysis/raster
${CMAKE_BINARY_DIR}/src/analysis/network
Expand Down
1 change: 1 addition & 0 deletions python/analysis/analysis_auto.sip
Expand Up @@ -26,4 +26,5 @@
%Include network/qgsnetworkdistancestrategy.sip
%Include network/qgsgraphanalyzer.sip
%Include network/qgsvectorlayerdirector.sip
%Include processing/qgsnativealgorithms.sip
%Include network/qgsgraphdirector.sip
55 changes: 55 additions & 0 deletions python/analysis/processing/qgsnativealgorithms.sip
@@ -0,0 +1,55 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/processing/qgsnativealgorithms.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/




class QgsNativeAlgorithms: QgsProcessingProvider
{
%Docstring
.. versionadded:: 3.0
Native c++ processing algorithm provider.
%End

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

QgsNativeAlgorithms( QObject *parent = 0 );
%Docstring
Constructor for QgsNativeAlgorithms.
%End

virtual QIcon icon() const;

virtual QString svgIconPath() const;

virtual QString id() const;

virtual QString name() const;

virtual bool supportsNonFileBasedOutput() const;


protected:

virtual void loadAlgorithms();


};



/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/processing/qgsnativealgorithms.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
11 changes: 11 additions & 0 deletions python/core/qgscoordinatereferencesystem.sip
Expand Up @@ -601,6 +601,17 @@ Returns whether this CRS is correctly initialized and usable
:rtype: QgsUnitTypes.DistanceUnit
%End

QgsRectangle bounds() const;
%Docstring
Returns the approximate bounds for the region the CRS is usable within.

The returned bounds represent the latitude and longitude extent for the
projection in the WGS 84 CRS.

.. versionadded:: 3.0
:rtype: QgsRectangle
%End


void setValidationHint( const QString &html );
%Docstring
Expand Down
31 changes: 31 additions & 0 deletions python/gui/qgsprojectionselectiontreewidget.sip
Expand Up @@ -11,6 +11,7 @@




class QgsProjectionSelectionTreeWidget : QWidget
{
%Docstring
Expand Down Expand Up @@ -51,6 +52,13 @@ class QgsProjectionSelectionTreeWidget : QWidget
option is selected, calling crs() will return an invalid QgsCoordinateReferenceSystem.
.. seealso:: showNoProjection()
.. versionadded:: 3.0
%End

void setShowBoundsMap( bool show );
%Docstring
Sets whether to show the bounnds preview map.
.. seealso:: showBoundsMap()
.. versionadded:: 3.0
%End

bool showNoProjection() const;
Expand All @@ -62,6 +70,14 @@ class QgsProjectionSelectionTreeWidget : QWidget
:rtype: bool
%End

bool showBoundsMap() const;
%Docstring
Returns whether the bounds preview map is shown.
.. versionadded:: 3.0
.. seealso:: setShowBoundsMap()
:rtype: bool
%End

bool hasValidSelection() const;
%Docstring
Returns true if the current selection in the widget is a valid choice. Valid
Expand All @@ -80,6 +96,21 @@ class QgsProjectionSelectionTreeWidget : QWidget
.. seealso:: crs()
%End

void setPreviewRect( const QgsRectangle &rect );
%Docstring
Sets the initial "preview" rectangle for the bounds overview map.
.. versionadded:: 3.0
.. seealso:: previewRect()
%End

QgsRectangle previewRect() const;
%Docstring
The initial "preview" rectangle for the bounds overview map.
.. versionadded:: 3.0
.. seealso:: previewRect()
:rtype: QgsRectangle
%End

void setOgcWmsCrsFilter( const QSet<QString> &crsFilter );
%Docstring
filters this widget by the given CRSs
Expand Down
2 changes: 2 additions & 0 deletions python/plugins/processing/tests/GuiTest.py
Expand Up @@ -27,13 +27,15 @@

from qgis.testing import start_app, unittest
from qgis.core import QgsApplication
from qgis.analysis import QgsNativeAlgorithms

from processing.gui.AlgorithmDialog import AlgorithmDialog
from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog
from processing.modeler.ModelerParametersDialog import ModelerParametersDialog
from processing.gui.wrappers import *

start_app()
QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms())


class AlgorithmDialogTest(unittest.TestCase):
Expand Down
5 changes: 4 additions & 1 deletion python/plugins/processing/tests/QgisAlgorithmsTest.py
Expand Up @@ -30,9 +30,11 @@
import nose2
import shutil

from qgis.core import (QgsProcessingAlgorithm,
from qgis.core import (QgsApplication,
QgsProcessingAlgorithm,
QgsProcessingFeedback,
QgsProcessingException)
from qgis.analysis import (QgsNativeAlgorithms)
from qgis.testing import start_app, unittest
from processing.tools.dataobjects import createContext

Expand Down Expand Up @@ -64,6 +66,7 @@ class TestQgisAlgorithms(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest):
@classmethod
def setUpClass(cls):
start_app()
QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms())
from processing.core.Processing import Processing
Processing.initialize()
cls.cleanup_paths = []
Expand Down
1 change: 1 addition & 0 deletions resources/CMakeLists.txt
Expand Up @@ -4,6 +4,7 @@ INSTALL(FILES qgis_global_settings.ini
DESTINATION ${QGIS_DATA_DIR})
INSTALL(DIRECTORY cpt-city-qgis-min DESTINATION ${QGIS_DATA_DIR}/resources)
INSTALL(DIRECTORY themes DESTINATION ${QGIS_DATA_DIR}/resources)
INSTALL(DIRECTORY data DESTINATION ${QGIS_DATA_DIR}/resources)

IF (WITH_SERVER)
INSTALL(DIRECTORY server DESTINATION ${QGIS_DATA_DIR}/resources)
Expand Down
Binary file added resources/data/world_map.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions resources/data/world_map.prj
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file added resources/data/world_map.qix
Binary file not shown.

0 comments on commit 9159325

Please sign in to comment.