Skip to content
Permalink
Browse files

restore GdalTools plugin until we will have multithreading support in…

… Processing
  • Loading branch information
alexbruy committed Mar 1, 2016
1 parent af8a62d commit a4a658a65767e3dd28f302f479c798f60166d88a
Showing with 11,480 additions and 40 deletions.
  1. +1 −0 ms-windows/python_plugins.nsh
  2. +1 −2 python/plugins/CMakeLists.txt
  3. +15 −0 python/plugins/GdalTools/CMakeLists.txt
  4. +421 −0 python/plugins/GdalTools/GdalTools.py
  5. +24 −0 python/plugins/GdalTools/LICENSE
  6. +25 −0 python/plugins/GdalTools/__init__.py
  7. BIN python/plugins/GdalTools/icons/24-to-8-bits.png
  8. BIN python/plugins/GdalTools/icons/8-to-24-bits.png
  9. +2 −0 python/plugins/GdalTools/icons/CMakeLists.txt
  10. BIN python/plugins/GdalTools/icons/about.png
  11. BIN python/plugins/GdalTools/icons/contour.png
  12. BIN python/plugins/GdalTools/icons/dem.png
  13. BIN python/plugins/GdalTools/icons/edit.png
  14. BIN python/plugins/GdalTools/icons/fillnodata.png
  15. BIN python/plugins/GdalTools/icons/grid.png
  16. BIN python/plugins/GdalTools/icons/merge.png
  17. BIN python/plugins/GdalTools/icons/nearblack.png
  18. BIN python/plugins/GdalTools/icons/polygonize.png
  19. BIN python/plugins/GdalTools/icons/projection-add.png
  20. BIN python/plugins/GdalTools/icons/projection-export.png
  21. BIN python/plugins/GdalTools/icons/proximity.png
  22. BIN python/plugins/GdalTools/icons/raster-clip.png
  23. BIN python/plugins/GdalTools/icons/raster-info.png
  24. BIN python/plugins/GdalTools/icons/raster-overview.png
  25. BIN python/plugins/GdalTools/icons/raster-rgb.png
  26. BIN python/plugins/GdalTools/icons/rasterize.png
  27. BIN python/plugins/GdalTools/icons/reset.png
  28. BIN python/plugins/GdalTools/icons/sieve.png
  29. BIN python/plugins/GdalTools/icons/tiles.png
  30. BIN python/plugins/GdalTools/icons/tooltip.png
  31. BIN python/plugins/GdalTools/icons/translate.png
  32. BIN python/plugins/GdalTools/icons/vrt.png
  33. BIN python/plugins/GdalTools/icons/warp.png
  34. +13 −0 python/plugins/GdalTools/metadata.txt
  35. +30 −0 python/plugins/GdalTools/resources.qrc
  36. +8 −0 python/plugins/GdalTools/tools/CMakeLists.txt
  37. +961 −0 python/plugins/GdalTools/tools/GdalTools_utils.py
  38. 0 python/plugins/GdalTools/tools/__init__.py
  39. +149 −0 python/plugins/GdalTools/tools/dialogAbout.ui
  40. +231 −0 python/plugins/GdalTools/tools/dialogBase.py
  41. +124 −0 python/plugins/GdalTools/tools/dialogBase.ui
  42. +117 −0 python/plugins/GdalTools/tools/dialogExtractProjection.ui
  43. +61 −0 python/plugins/GdalTools/tools/dialogSRS.py
  44. +240 −0 python/plugins/GdalTools/tools/dialogSettings.ui
  45. +175 −0 python/plugins/GdalTools/tools/doBuildVRT.py
  46. +216 −0 python/plugins/GdalTools/tools/doClipper.py
  47. +116 −0 python/plugins/GdalTools/tools/doContour.py
  48. +180 −0 python/plugins/GdalTools/tools/doDEM.py
  49. +222 −0 python/plugins/GdalTools/tools/doExtractProj.py
  50. +236 −0 python/plugins/GdalTools/tools/doFillNodata.py
  51. +212 −0 python/plugins/GdalTools/tools/doGrid.py
  52. +134 −0 python/plugins/GdalTools/tools/doInfo.py
  53. +198 −0 python/plugins/GdalTools/tools/doMerge.py
  54. +98 −0 python/plugins/GdalTools/tools/doNearBlack.py
  55. +198 −0 python/plugins/GdalTools/tools/doOverview.py
  56. +163 −0 python/plugins/GdalTools/tools/doPctRgb.py
  57. +122 −0 python/plugins/GdalTools/tools/doPolygonize.py
  58. +190 −0 python/plugins/GdalTools/tools/doProjection.py
  59. +115 −0 python/plugins/GdalTools/tools/doProximity.py
  60. +158 −0 python/plugins/GdalTools/tools/doRasterize.py
  61. +160 −0 python/plugins/GdalTools/tools/doRgbPct.py
  62. +94 −0 python/plugins/GdalTools/tools/doSettings.py
  63. +100 −0 python/plugins/GdalTools/tools/doSieve.py
  64. +95 −0 python/plugins/GdalTools/tools/doTileIndex.py
  65. +306 −0 python/plugins/GdalTools/tools/doTranslate.py
  66. +250 −0 python/plugins/GdalTools/tools/doWarp.py
  67. +204 −0 python/plugins/GdalTools/tools/extentSelector.py
  68. +105 −0 python/plugins/GdalTools/tools/extentSelector.ui
  69. +259 −0 python/plugins/GdalTools/tools/inOutSelector.py
  70. +54 −0 python/plugins/GdalTools/tools/inOutSelector.ui
  71. +79 −0 python/plugins/GdalTools/tools/optionsTable.py
  72. +99 −0 python/plugins/GdalTools/tools/optionsTable.ui
  73. +18 −0 python/plugins/GdalTools/tools/terrain.txt
  74. +162 −0 python/plugins/GdalTools/tools/widgetBatchBase.py
  75. +173 −0 python/plugins/GdalTools/tools/widgetBuildVRT.ui
  76. +356 −0 python/plugins/GdalTools/tools/widgetClipper.ui
  77. +144 −0 python/plugins/GdalTools/tools/widgetContour.ui
  78. +109 −0 python/plugins/GdalTools/tools/widgetConvert.ui
  79. +478 −0 python/plugins/GdalTools/tools/widgetDEM.ui
  80. +159 −0 python/plugins/GdalTools/tools/widgetFillNodata.ui
  81. +854 −0 python/plugins/GdalTools/tools/widgetGrid.ui
  82. +86 −0 python/plugins/GdalTools/tools/widgetInfo.ui
  83. +159 −0 python/plugins/GdalTools/tools/widgetMerge.ui
  84. +86 −0 python/plugins/GdalTools/tools/widgetNearBlack.ui
  85. +91 −0 python/plugins/GdalTools/tools/widgetOverview.ui
  86. +210 −0 python/plugins/GdalTools/tools/widgetPluginBase.py
  87. +85 −0 python/plugins/GdalTools/tools/widgetPolygonize.ui
  88. +109 −0 python/plugins/GdalTools/tools/widgetProjection.ui
  89. +148 −0 python/plugins/GdalTools/tools/widgetProximity.ui
  90. +285 −0 python/plugins/GdalTools/tools/widgetRasterize.ui
  91. +100 −0 python/plugins/GdalTools/tools/widgetSieve.ui
  92. +90 −0 python/plugins/GdalTools/tools/widgetTileIndex.ui
  93. +303 −0 python/plugins/GdalTools/tools/widgetTranslate.ui
  94. +276 −0 python/plugins/GdalTools/tools/widgetWarp.ui
  95. +37 −37 python/plugins/processing/gui/menus.py
  96. +1 −0 src/app/qgspluginregistry.cpp
  97. +0 −1 src/ui/composer/qgscomposerbase.ui
@@ -7,6 +7,7 @@
# Please don't remove this header. #
################################################################################

WriteRegStr HKEY_CURRENT_USER "Software\QGIS\QGIS2\PythonPlugins" "GdalTools" "true"
WriteRegStr HKEY_CURRENT_USER "Software\QGIS\QGIS2\PythonPlugins" "db_manager" "true"
WriteRegStr HKEY_CURRENT_USER "Software\QGIS\QGIS2\PythonPlugins" "processing" "true"

@@ -49,8 +49,7 @@ MACRO (PLUGIN_INSTALL plugin subdir )
ENDFOREACH(file)
ENDMACRO (PLUGIN_INSTALL)

#ADD_SUBDIRECTORY(fTools)
#ADD_SUBDIRECTORY(GdalTools)
ADD_SUBDIRECTORY(GdalTools)
ADD_SUBDIRECTORY(db_manager)
ADD_SUBDIRECTORY(processing)
ADD_SUBDIRECTORY(MetaSearch)
@@ -0,0 +1,15 @@
FILE(GLOB INSTALLER_FILES *.py)
SET(INSTALLER_FILES ${INSTALLER_FILES})

FILE(GLOB UI_FILES *.ui)
PYQT_WRAP_UI(PYUI_FILES ${UI_FILES})
PYQT_ADD_RESOURCES(PYRC_FILES resources.qrc)
#ADD_CUSTOM_TARGET(gdaltools ALL DEPENDS ${PYUI_FILES} ${PYRC_FILES})

SET(INSTALLER_FILES ${INSTALLER_FILES} ${PYUI_FILES} ${PYRC_FILES})

#INSTALL(FILES ${INSTALLER_FILES} DESTINATION ${QGIS_DATA_DIR}/python/plugins/GdalTools)
PLUGIN_INSTALL(GdalTools . ${INSTALLER_FILES} __init__.py metadata.txt)

ADD_SUBDIRECTORY(tools)
ADD_SUBDIRECTORY(icons)

Large diffs are not rendered by default.

@@ -0,0 +1,24 @@
Copyright (c) 2009 Faunalia

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

@@ -0,0 +1,25 @@
"""
/***************************************************************************
Name : GdalTools
Description : Integrate gdal tools into qgis
Date : 17/Sep/09
copyright : (C) 2009 by Lorenzo Masini and Giuseppe Sucameli (Faunalia)
email : lorenxo86@gmail.com - brush.tyler@gmail.com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
This script initializes the plugin, making it known to QGIS.
"""


def classFactory(iface):
# load GdalTools class from file GdalTools
from GdalTools import GdalTools
return GdalTools(iface)
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
FILE(GLOB ICON_FILES *.png)
PLUGIN_INSTALL(GdalTools icons ${ICON_FILES})
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
@@ -0,0 +1,13 @@
[general]
name=GdalTools
description=Integrate GDAL tools into QGIS
category=Raster
version=1.2.29
qgisMinimumVersion=2.0

author=Giuseppe Sucameli (Faunalia)
email=brush.tyler@gmail.com

icon=icons/raster-info.png

class_name=GdalTools
@@ -0,0 +1,30 @@
<RCC>
<qresource prefix="/">
<file>icons/contour.png</file>
<file>icons/merge.png</file>
<file>icons/polygonize.png</file>
<file>icons/rasterize.png</file>
<file>icons/sieve.png</file>
<file>icons/vrt.png</file>
<file>icons/warp.png</file>
<file>icons/proximity.png</file>
<file>icons/nearblack.png</file>
<file>icons/grid.png</file>
<file>icons/translate.png</file>
<file>icons/raster-info.png</file>
<file>icons/projection-add.png</file>
<file>icons/raster-overview.png</file>
<file>icons/raster-clip.png</file>
<file>icons/raster-rgb.png</file>
<file>icons/tiles.png</file>
<file>icons/about.png</file>
<file>icons/dem.png</file>
<file>icons/projection-export.png</file>
<file>icons/fillnodata.png</file>
<file>icons/24-to-8-bits.png</file>
<file>icons/8-to-24-bits.png</file>
<file>icons/edit.png</file>
<file>icons/reset.png</file>
<file>icons/tooltip.png</file>
</qresource>
</RCC>
@@ -0,0 +1,8 @@
FILE(GLOB PY_FILES *.py)
FILE(GLOB UI_FILES *.ui)
FILE(GLOB COLOR_CONFIG_FILES terrain.txt)

PYQT_WRAP_UI(PYUI_FILES ${UI_FILES})

PLUGIN_INSTALL(GdalTools tools ${PY_FILES} ${PYUI_FILES} ${COLOR_CONFIG_FILES})

0 comments on commit a4a658a

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