Skip to content

Commit a4a658a

Browse files
committed
restore GdalTools plugin until we will have multithreading support in Processing
1 parent af8a62d commit a4a658a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+11480
-40
lines changed

ms-windows/python_plugins.nsh

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# Please don't remove this header. #
88
################################################################################
99

10+
WriteRegStr HKEY_CURRENT_USER "Software\QGIS\QGIS2\PythonPlugins" "GdalTools" "true"
1011
WriteRegStr HKEY_CURRENT_USER "Software\QGIS\QGIS2\PythonPlugins" "db_manager" "true"
1112
WriteRegStr HKEY_CURRENT_USER "Software\QGIS\QGIS2\PythonPlugins" "processing" "true"
1213

python/plugins/CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ MACRO (PLUGIN_INSTALL plugin subdir )
4949
ENDFOREACH(file)
5050
ENDMACRO (PLUGIN_INSTALL)
5151

52-
#ADD_SUBDIRECTORY(fTools)
53-
#ADD_SUBDIRECTORY(GdalTools)
52+
ADD_SUBDIRECTORY(GdalTools)
5453
ADD_SUBDIRECTORY(db_manager)
5554
ADD_SUBDIRECTORY(processing)
5655
ADD_SUBDIRECTORY(MetaSearch)
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FILE(GLOB INSTALLER_FILES *.py)
2+
SET(INSTALLER_FILES ${INSTALLER_FILES})
3+
4+
FILE(GLOB UI_FILES *.ui)
5+
PYQT_WRAP_UI(PYUI_FILES ${UI_FILES})
6+
PYQT_ADD_RESOURCES(PYRC_FILES resources.qrc)
7+
#ADD_CUSTOM_TARGET(gdaltools ALL DEPENDS ${PYUI_FILES} ${PYRC_FILES})
8+
9+
SET(INSTALLER_FILES ${INSTALLER_FILES} ${PYUI_FILES} ${PYRC_FILES})
10+
11+
#INSTALL(FILES ${INSTALLER_FILES} DESTINATION ${QGIS_DATA_DIR}/python/plugins/GdalTools)
12+
PLUGIN_INSTALL(GdalTools . ${INSTALLER_FILES} __init__.py metadata.txt)
13+
14+
ADD_SUBDIRECTORY(tools)
15+
ADD_SUBDIRECTORY(icons)

python/plugins/GdalTools/GdalTools.py

+421
Large diffs are not rendered by default.

python/plugins/GdalTools/LICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright (c) 2009 Faunalia
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7+
of the Software, and to permit persons to whom the Software is furnished to do
8+
so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.
20+
21+
You should have received a copy of the GNU General Public License along
22+
with this program; if not, write to the Free Software Foundation, Inc.,
23+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24+

python/plugins/GdalTools/__init__.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""
2+
/***************************************************************************
3+
Name : GdalTools
4+
Description : Integrate gdal tools into qgis
5+
Date : 17/Sep/09
6+
copyright : (C) 2009 by Lorenzo Masini and Giuseppe Sucameli (Faunalia)
7+
email : lorenxo86@gmail.com - brush.tyler@gmail.com
8+
***************************************************************************/
9+
10+
/***************************************************************************
11+
* *
12+
* This program is free software; you can redistribute it and/or modify *
13+
* it under the terms of the GNU General Public License as published by *
14+
* the Free Software Foundation; either version 2 of the License, or *
15+
* (at your option) any later version. *
16+
* *
17+
***************************************************************************/
18+
This script initializes the plugin, making it known to QGIS.
19+
"""
20+
21+
22+
def classFactory(iface):
23+
# load GdalTools class from file GdalTools
24+
from GdalTools import GdalTools
25+
return GdalTools(iface)
766 Bytes
Loading
775 Bytes
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FILE(GLOB ICON_FILES *.png)
2+
PLUGIN_INSTALL(GdalTools icons ${ICON_FILES})
2.18 KB
Loading
995 Bytes
Loading
1.55 KB
Loading
1.09 KB
Loading
1.55 KB
Loading
433 Bytes
Loading
923 Bytes
Loading
418 Bytes
Loading
827 Bytes
Loading
Loading
Loading
940 Bytes
Loading
591 Bytes
Loading
866 Bytes
Loading
845 Bytes
Loading
1.55 KB
Loading
646 Bytes
Loading
1.39 KB
Loading
566 Bytes
Loading
416 Bytes
Loading
969 Bytes
Loading
582 Bytes
Loading
753 Bytes
Loading
1.24 KB
Loading

python/plugins/GdalTools/metadata.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[general]
2+
name=GdalTools
3+
description=Integrate GDAL tools into QGIS
4+
category=Raster
5+
version=1.2.29
6+
qgisMinimumVersion=2.0
7+
8+
author=Giuseppe Sucameli (Faunalia)
9+
email=brush.tyler@gmail.com
10+
11+
icon=icons/raster-info.png
12+
13+
class_name=GdalTools
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<RCC>
2+
<qresource prefix="/">
3+
<file>icons/contour.png</file>
4+
<file>icons/merge.png</file>
5+
<file>icons/polygonize.png</file>
6+
<file>icons/rasterize.png</file>
7+
<file>icons/sieve.png</file>
8+
<file>icons/vrt.png</file>
9+
<file>icons/warp.png</file>
10+
<file>icons/proximity.png</file>
11+
<file>icons/nearblack.png</file>
12+
<file>icons/grid.png</file>
13+
<file>icons/translate.png</file>
14+
<file>icons/raster-info.png</file>
15+
<file>icons/projection-add.png</file>
16+
<file>icons/raster-overview.png</file>
17+
<file>icons/raster-clip.png</file>
18+
<file>icons/raster-rgb.png</file>
19+
<file>icons/tiles.png</file>
20+
<file>icons/about.png</file>
21+
<file>icons/dem.png</file>
22+
<file>icons/projection-export.png</file>
23+
<file>icons/fillnodata.png</file>
24+
<file>icons/24-to-8-bits.png</file>
25+
<file>icons/8-to-24-bits.png</file>
26+
<file>icons/edit.png</file>
27+
<file>icons/reset.png</file>
28+
<file>icons/tooltip.png</file>
29+
</qresource>
30+
</RCC>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FILE(GLOB PY_FILES *.py)
2+
FILE(GLOB UI_FILES *.ui)
3+
FILE(GLOB COLOR_CONFIG_FILES terrain.txt)
4+
5+
PYQT_WRAP_UI(PYUI_FILES ${UI_FILES})
6+
7+
PLUGIN_INSTALL(GdalTools tools ${PY_FILES} ${PYUI_FILES} ${COLOR_CONFIG_FILES})
8+

0 commit comments

Comments
 (0)