Ejemplo n.º 1
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     if SextanteUtils.isWindows() or SextanteUtils.isMac():
         SextanteConfig.addSetting(
             Setting(self.getDescription(), GrassUtils.GRASS_FOLDER,
                     "GRASS folder", GrassUtils.grassPath()))
         SextanteConfig.addSetting(
             Setting(self.getDescription(), GrassUtils.GRASS_WIN_SHELL,
                     "Msys folder", GrassUtils.grassWinShell()))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), GrassUtils.GRASS_LOG_COMMANDS,
                 "Log execution commands", False))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), GrassUtils.GRASS_LOG_CONSOLE,
                 "Log console output", False))
     #SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_AUTO_REGION, "Use min covering region", True))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), GrassUtils.GRASS_LATLON,
                 "Coordinates are lat/lon", False))
     #=======================================================================
     # SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_REGION_XMIN, "GRASS Region min x", 0))
     # SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_REGION_YMIN, "GRASS Region min y", 0))
     # SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_REGION_XMAX, "GRASS Region max x", 1000))
     # SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_REGION_YMAX, "GRASS Region max y", 1000))
     # SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_REGION_CELLSIZE, "GRASS Region cellsize", 100))
     #=======================================================================
     SextanteConfig.addSetting(
         Setting(self.getDescription(), GrassUtils.GRASS_HELP_FOLDER,
                 "GRASS help folder", GrassUtils.grassHelpPath()))
Ejemplo n.º 2
0
 def unload(self):
     AlgorithmProvider.unload(self)
     if SextanteUtils.isWindows() or SextanteUtils.isMac():
         SextanteConfig.removeSetting(GrassUtils.GRASS_FOLDER)
         SextanteConfig.removeSetting(GrassUtils.GRASS_WIN_SHELL)
     SextanteConfig.removeSetting(GrassUtils.GRASS_LOG_COMMANDS)
     SextanteConfig.removeSetting(GrassUtils.GRASS_LOG_CONSOLE)
 def unload(self):
     AlgorithmProvider.unload(self)
     if SextanteUtils.isWindows() or SextanteUtils.isMac():
         SextanteConfig.removeSetting(GrassUtils.GRASS_FOLDER)
         SextanteConfig.removeSetting(GrassUtils.GRASS_WIN_SHELL)
     SextanteConfig.removeSetting(GrassUtils.GRASS_LOG_COMMANDS)
     SextanteConfig.removeSetting(GrassUtils.GRASS_LOG_CONSOLE)
Ejemplo n.º 4
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     #=======================================================================
     # self.actions.append(DefineGrassRegionAction())
     # self.actions.append(DefineGrassRegionFromLayerAction())
     #=======================================================================
     self.createAlgsList()  #preloading algorithms to speed up
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     if SextanteUtils.isWindows():
         SextanteConfig.addSetting(
             Setting(self.getDescription(), SagaUtils.SAGA_FOLDER,
                     "SAGA folder", SagaUtils.sagaPath()))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), SagaUtils.SAGA_AUTO_RESAMPLING,
                 "Use min covering grid system for resampling", True))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), SagaUtils.SAGA_LOG_COMMANDS,
                 "Log execution commands", False))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), SagaUtils.SAGA_LOG_CONSOLE,
                 "Log console output", False))
     SextanteConfig.addSetting(
         Setting(self.getDescription(),
                 SagaUtils.SAGA_RESAMPLING_REGION_XMIN,
                 "Resampling region min x", 0))
     SextanteConfig.addSetting(
         Setting(self.getDescription(),
                 SagaUtils.SAGA_RESAMPLING_REGION_YMIN,
                 "Resampling region min y", 0))
     SextanteConfig.addSetting(
         Setting(self.getDescription(),
                 SagaUtils.SAGA_RESAMPLING_REGION_XMAX,
                 "Resampling region max x", 1000))
     SextanteConfig.addSetting(
         Setting(self.getDescription(),
                 SagaUtils.SAGA_RESAMPLING_REGION_YMAX,
                 "Resampling region max y", 1000))
     SextanteConfig.addSetting(
         Setting(self.getDescription(),
                 SagaUtils.SAGA_RESAMPLING_REGION_CELLSIZE,
                 "Resampling region cellsize", 1))
Ejemplo n.º 6
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(
         Setting(self.getDescription(),
                 WpsAlgorithmProvider.WPS_DESCRIPTIONS,
                 "WPS description cache folder",
                 WpsAlgorithmProvider.WpsDescriptionFolder()))
Ejemplo n.º 7
0
 def unload(self):
     '''Setting should be removed here, so they do not appear anymore
     when the plugin is unloaded'''
     AlgorithmProvider.unload(self)
     SextanteConfig.removeSetting(IliUtils.JAVA_EXEC)
     SextanteConfig.removeSetting(IliUtils.ILI2C_JAR)
     SextanteConfig.removeSetting(IliUtils.ILI2PG_JAR)
Ejemplo n.º 8
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     if SextanteUtils.isWindows():
         SextanteConfig.addSetting(
             Setting(self.getDescription(), SagaUtils.SAGA_FOLDER, "SAGA folder", SagaUtils.sagaPath())
         )
     SextanteConfig.addSetting(
         Setting(
             self.getDescription(),
             SagaUtils.SAGA_AUTO_RESAMPLING,
             "Use min covering grid system for resampling",
             True,
         )
     )
     SextanteConfig.addSetting(
         Setting(self.getDescription(), SagaUtils.SAGA_LOG_COMMANDS, "Log execution commands", False)
     )
     SextanteConfig.addSetting(
         Setting(self.getDescription(), SagaUtils.SAGA_LOG_CONSOLE, "Log console output", False)
     )
     SextanteConfig.addSetting(
         Setting(self.getDescription(), SagaUtils.SAGA_RESAMPLING_REGION_XMIN, "Resampling region min x", 0)
     )
     SextanteConfig.addSetting(
         Setting(self.getDescription(), SagaUtils.SAGA_RESAMPLING_REGION_YMIN, "Resampling region min y", 0)
     )
     SextanteConfig.addSetting(
         Setting(self.getDescription(), SagaUtils.SAGA_RESAMPLING_REGION_XMAX, "Resampling region max x", 1000)
     )
     SextanteConfig.addSetting(
         Setting(self.getDescription(), SagaUtils.SAGA_RESAMPLING_REGION_YMAX, "Resampling region max y", 1000)
     )
     SextanteConfig.addSetting(
         Setting(self.getDescription(), SagaUtils.SAGA_RESAMPLING_REGION_CELLSIZE, "Resampling region cellsize", 1)
     )
Ejemplo n.º 9
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     if SextanteUtils.isWindows() or SextanteUtils.isMac():
         SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_FOLDER, "GRASS folder", GrassUtils.grassPath()))
         SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_WIN_SHELL, "Msys folder", GrassUtils.grassWinShell()))
     SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_LOG_COMMANDS, "Log execution commands", False))
     SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_LOG_CONSOLE, "Log console output", False))
Ejemplo n.º 10
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     #=======================================================================
     # self.actions.append(DefineGrassRegionAction())
     # self.actions.append(DefineGrassRegionFromLayerAction())
     #=======================================================================
     self.createAlgsList() #preloading algorithms to speed up
Ejemplo n.º 11
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.alglist = [AddTableField(), FieldsCalculator(), SaveSelectedFeatures(), JoinAttributes(),
                     AutoincrementalField(), Explode(), FieldsPyculator(), EquivalentNumField(),
                     SumLines(), PointsInPolygon(), PointsInPolygonWeighted(), PointsInPolygonUnique(),
                     BasicStatisticsStrings(), BasicStatisticsNumbers(), NearestNeighbourAnalysis(),
                     MeanCoords(), LinesIntersection(), UniqueValues(), PointDistance(), PointsLayerFromTable(),
                     StatisticsByCategories(),ReprojectLayer(),
                     ExportGeometryInfo(), Centroids(), Delaunay(), VoronoiPolygons(),
                     SimplifyGeometries(), DensifyGeometries(), DensifyGeometriesInterval(),
                     MultipartToSingleparts(), SinglePartsToMultiparts(), PolygonsToLines(),
                     LinesToPolygons(), ExtractNodes(),
                     ConvexHull(), FixedDistanceBuffer(), VariableDistanceBuffer(),
                     Dissolve(), Difference(), Intersection(), Union(), Clip(),
                     ExtentFromLayer(), RandomSelection(), RandomSelectionWithinSubsets(),
                     SelectByLocation(),
                     #MMQGISX
                     mmqgisx_delete_columns_algorithm(),
                     mmqgisx_delete_duplicate_geometries_algorithm(),
                     mmqgisx_geometry_convert_algorithm(),
                     mmqgisx_grid_algorithm(),
                     mmqgisx_gridify_algorithm(),
                     mmqgisx_hub_distance_algorithm(),
                     mmqgisx_hub_lines_algorithm(),
                     mmqgisx_merge_algorithm(),
                     mmqgisx_select_algorithm(),
                     mmqgisx_text_to_float_algorithm(),
                     #raster
                     CreateConstantRaster(), RasterLayerStatistics()
                     #graphics
                     #VectorLayerHistogram(), VectorLayerScatterplot(), RasterLayerHistogram(),
                     #MeanAndStdDevPlot(), BarPlot(), PolarPlot()
                     ]
Ejemplo n.º 12
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(
         Setting(self.getDescription(), LasToolsUtils.LASTOOLS_FOLDER,
                 "LASTools folder", LasToolsUtils.LasToolsPath()))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), FusionUtils.FUSION_FOLDER,
                 "Fusion folder", FusionUtils.FusionPath()))
Ejemplo n.º 13
0
    def initializeSettings(self):
        '''add settings needed to configure our provider.'''
        # call the parent method which takes care of adding a setting for 
        # activating or deactivating the algorithms in the provider
        AlgorithmProvider.initializeSettings(self)

        # add settings
        SextanteConfig.addSetting(Setting("LWGEOM algorithms", LwgeomAlgorithmProvider.LWGEOM_PATH_SETTING, "Path to liblwgeom", ""))
Ejemplo n.º 14
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(
         Setting(self.getDescription(), RUtils.RSCRIPTS_FOLDER, "R Scripts folder", RUtils.RScriptsFolder())
     )
     if SextanteUtils.isWindows():
         SextanteConfig.addSetting(Setting(self.getDescription(), RUtils.R_FOLDER, "R folder", RUtils.RFolder()))
         SextanteConfig.addSetting(Setting(self.getDescription(), RUtils.R_USE64, "Use 64 bit version", False))
Ejemplo n.º 15
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     #self.actions = [CreateNewModelAction()]
     self.contextMenuActions = [
         EditModelAction(),
         DeleteModelAction(),
         SaveAsPythonScriptAction()
     ]
 def initializeSettings(self):
     '''In this method we add settings needed to configure our provider.
     Do not forget to call the parent method, since it takes care or
     automatically adding a setting for activating or deactivating the
     algorithms in the provider'''
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(Setting("Example algorithms", ExampleAlgorithmProvider.MY_DUMMY_SETTING, "Example setting", "Default value"))
     '''To get the parameter of a setting parameter, use SextanteConfig.getSetting(name_of_parameter)'''
Ejemplo n.º 17
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     # deactivate provider by default
     self.activate = False
     # load algorithms
     self.alglist = [ExampleAlgorithm()]
     for alg in self.alglist:
         alg.provider = self
Ejemplo n.º 18
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(
         Setting(self.getDescription(), RUtils.RSCRIPTS_FOLDER,
                 "R Scripts folder", RUtils.RScriptsFolder()))
     if SextanteUtils.isWindows():
         SextanteConfig.addSetting(
             Setting(self.getDescription(), RUtils.R_FOLDER, "R folder",
                     RUtils.RFolder()))
Ejemplo n.º 19
0
 def initializeSettings(self):
     '''In this method we add settings needed to configure our provider.
     Do not forget to call the parent method, since it takes care or
     automatically adding a setting for activating or deactivating the
     algorithms in the provider
     '''
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(Setting("Example algorithms", ExampleAlgorithmProvider.MY_DUMMY_SETTING, "Example setting", "Default value"))
     '''To get the parameter of a setting parameter, use
Ejemplo n.º 20
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.alglist = [
         ImportVectorIntoGeoServer(),
         ImportRasterIntoGeoServer(),
         CreateWorkspace(),
         DeleteWorkspace(),
         DeleteDatastore(),
         CreateStyleGeoServer()
     ]  #] PostGISExecuteSQL(), ImportIntoPostGIS()]#, TruncateSeedGWC()]
Ejemplo n.º 21
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.alglist = [
         AddTableField(),
         FieldsCalculator(),
         SaveSelectedFeatures(),
         AutoincrementalField(),
         Explode(),
         FieldsPyculator()
     ]
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.alglist = [ImportVectorIntoGeoServer(), ImportRasterIntoGeoServer(),
                     CreateWorkspace(), DeleteWorkspace(), DeleteDatastore(),
                     CreateStyleGeoServer()]
     
     try:            
         self.alglist.append(ImportIntoPostGIS())
         self.alglist.append(PostGISExecuteSQL())
     except:
         pass 
Ejemplo n.º 23
0
 def unload(self):
     AlgorithmProvider.unload(self)
     if SextanteUtils.isWindows():
         SextanteConfig.removeSetting(SagaUtils.SAGA_FOLDER)
     SextanteConfig.removeSetting(SagaUtils.SAGA_AUTO_RESAMPLING)
     SextanteConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_XMIN)
     SextanteConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_YMIN)
     SextanteConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_XMAX)
     SextanteConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_YMAX)
     SextanteConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_CELLSIZE)
     SextanteConfig.removeSetting(SagaUtils.SAGA_LOG_CONSOLE)
     SextanteConfig.removeSetting(SagaUtils.SAGA_LOG_COMMANDS)
Ejemplo n.º 24
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(
         Setting(self.getDescription(), TauDEMUtils.TAUDEM_FOLDER,
                 "TauDEM command line tools folder",
                 TauDEMUtils.taudemPath()))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), TauDEMUtils.MPIEXEC_FOLDER,
                 "MPICH2/OpenMPI bin directory", TauDEMUtils.mpiexecPath()))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), TauDEMUtils.MPI_PROCESSES,
                 "Number of MPI parallel processes to use", 2))
Ejemplo n.º 25
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.alglist = [
         ImportVectorIntoGeoServer(),
         ImportRasterIntoGeoServer(),
         CreateWorkspace(),
         DeleteWorkspace(),
         DeleteDatastore(),
         CreateStyleGeoServer(),
         ImportIntoPostGIS(),
         PostGISExecuteSQL(),
     ]  # , TruncateSeedGWC()]
Ejemplo n.º 26
0
 def unload(self):
     AlgorithmProvider.unload(self)
     if SextanteUtils.isWindows():
         SextanteConfig.removeSetting(SagaUtils.SAGA_FOLDER)
     SextanteConfig.removeSetting(SagaUtils.SAGA_AUTO_RESAMPLING)
     SextanteConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_XMIN)
     SextanteConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_YMIN)
     SextanteConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_XMAX)
     SextanteConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_YMAX)
     SextanteConfig.removeSetting(SagaUtils.SAGA_RESAMPLING_REGION_CELLSIZE)
     SextanteConfig.removeSetting(SagaUtils.SAGA_LOG_CONSOLE)
     SextanteConfig.removeSetting(SagaUtils.SAGA_LOG_COMMANDS)
Ejemplo n.º 27
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(
         Setting(self.getDescription(), OTBUtils.OTB_FOLDER,
                 "OTB command line tools folder", OTBUtils.otbPath()))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), OTBUtils.OTB_LIB_FOLDER,
                 "OTB applications folder", OTBUtils.otbLibPath()))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), OTBUtils.OTB_SRTM_FOLDER,
                 "SRTM tiles folder", OTBUtils.otbSRTMPath()))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), OTBUtils.OTB_GEOID_FILE,
                 "Geoid file", OTBUtils.otbGeoidPath()))
Ejemplo n.º 28
0
 def initializeSettings(self):
     '''In this method we add settings needed to configure our provider.
     Do not forget to call the parent method, since it takes care or
     automatically adding a setting for activating or deactivating the
     algorithms in the provider'''
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(Setting(self.getDescription(
     ), IliUtils.JAVA_EXEC, "Java executable", IliUtils.java_exec_default()))
     SextanteConfig.addSetting(
         Setting(self.getDescription(), IliUtils.ILI2C_JAR, "ili2c.jar path", "ili2c.jar"))
     SextanteConfig.addSetting(Setting(
         self.getDescription(), IliUtils.ILI2PG_JAR, "ili2pg.jar path", "ili2pg.jar"))
     SextanteConfig.addSetting(Setting(
         self.getDescription(), IliUtils.CREATEDB_EXEC, "createdb path", "createdb"))
    def __init__(self):
        AlgorithmProvider.__init__(self)
        self.alglist = [
            ImportVectorIntoGeoServer(),
            ImportRasterIntoGeoServer(),
            CreateWorkspace(),
            DeleteWorkspace(),
            DeleteDatastore(),
            CreateStyleGeoServer()
        ]

        try:
            self.alglist.append(ImportIntoPostGIS())
            self.alglist.append(PostGISExecuteSQL())
        except:
            pass
Ejemplo n.º 30
0
 def unload(self):
     AlgorithmProvider.unload(self)
     if SextanteUtils.isWindows() or SextanteUtils.isMac():
         SextanteConfig.removeSetting(GrassUtils.GRASS_FOLDER)
         SextanteConfig.removeSetting(GrassUtils.GRASS_WIN_SHELL)
     #SextanteConfig.removeSetting(GrassUtils.GRASS_AUTO_REGION)
     SextanteConfig.removeSetting(GrassUtils.GRASS_LATLON)
     #=======================================================================
     # SextanteConfig.removeSetting(GrassUtils.GRASS_REGION_XMIN)
     # SextanteConfig.removeSetting(GrassUtils.GRASS_REGION_YMIN)
     # SextanteConfig.removeSetting(GrassUtils.GRASS_REGION_XMAX)
     # SextanteConfig.removeSetting(GrassUtils.GRASS_REGION_YMAX)
     # SextanteConfig.removeSetting(GrassUtils.GRASS_REGION_CELLSIZE)
     #=======================================================================
     SextanteConfig.removeSetting(GrassUtils.GRASS_HELP_FOLDER)
     SextanteConfig.removeSetting(GrassUtils.GRASS_LOG_COMMANDS)
     SextanteConfig.removeSetting(GrassUtils.GRASS_LOG_CONSOLE)
Ejemplo n.º 31
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     if SextanteUtils.isWindows() or SextanteUtils.isMac():
         SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_FOLDER, "GRASS folder", GrassUtils.grassPath()))
         SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_WIN_SHELL, "Msys folder", GrassUtils.grassWinShell()))
     SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_LOG_COMMANDS, "Log execution commands", False))
     SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_LOG_CONSOLE, "Log console output", False))
     #SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_AUTO_REGION, "Use min covering region", True))
     SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_LATLON, "Coordinates are lat/lon", False))
     #=======================================================================
     # SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_REGION_XMIN, "GRASS Region min x", 0))
     # SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_REGION_YMIN, "GRASS Region min y", 0))
     # SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_REGION_XMAX, "GRASS Region max x", 1000))
     # SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_REGION_YMAX, "GRASS Region max y", 1000))
     # SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_REGION_CELLSIZE, "GRASS Region cellsize", 100))
     #=======================================================================
     SextanteConfig.addSetting(Setting(self.getDescription(), GrassUtils.GRASS_HELP_FOLDER, "GRASS help folder", GrassUtils.grassHelpPath()))
Ejemplo n.º 32
0
 def unload(self):
     AlgorithmProvider.unload(self)
     if SextanteUtils.isWindows() or SextanteUtils.isMac():
         SextanteConfig.removeSetting(GrassUtils.GRASS_FOLDER)
         SextanteConfig.removeSetting(GrassUtils.GRASS_WIN_SHELL)
     #SextanteConfig.removeSetting(GrassUtils.GRASS_AUTO_REGION)
     SextanteConfig.removeSetting(GrassUtils.GRASS_LATLON)
     #=======================================================================
     # SextanteConfig.removeSetting(GrassUtils.GRASS_REGION_XMIN)
     # SextanteConfig.removeSetting(GrassUtils.GRASS_REGION_YMIN)
     # SextanteConfig.removeSetting(GrassUtils.GRASS_REGION_XMAX)
     # SextanteConfig.removeSetting(GrassUtils.GRASS_REGION_YMAX)
     # SextanteConfig.removeSetting(GrassUtils.GRASS_REGION_CELLSIZE)
     #=======================================================================
     SextanteConfig.removeSetting(GrassUtils.GRASS_HELP_FOLDER)
     SextanteConfig.removeSetting(GrassUtils.GRASS_LOG_COMMANDS)
     SextanteConfig.removeSetting(GrassUtils.GRASS_LOG_CONSOLE)
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.alglist = [SumLines(), PointsInPolygon(), BasicStatistics(),
                     NearestNeighbourAnalysis(), MeanCoords(), LinesIntersection(),
                     UniqueValues(), PointDistance(),
                     # data management
                     # geometry
                     ExportGeometryInfo(), Centroids(), Delaunay(), VoronoiPolygons(),
                     SimplifyGeometries(), MultipartToSingleparts(), SinglePartsToMultiparts(),
                     PolygonsToLines(), LinesToPolygons(), ExtractNodes(),
                     # geoprocessing
                     ConvexHull(), FixedDistanceBuffer(), VariableDistanceBuffer(),
                     Dissolve(), Difference(), Intersection(), Union(), Clip(),
                     # research
                     ExtentFromLayer(), RandomSelection(), RandomSelectionWithinSubsets(),
                     SelectByLocation()
                    ]
Ejemplo n.º 34
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.alglist = [
         SumLines(),
         PointsInPolygon(),
         PointsInPolygonWeighted(),
         PointsInPolygonUnique(),
         BasicStatisticsStrings(),
         BasicStatisticsNumbers(),
         NearestNeighbourAnalysis(),
         MeanCoords(),
         LinesIntersection(),
         UniqueValues(),
         PointDistance(),
         # data management
         ReprojectLayer(),
         # geometry
         ExportGeometryInfo(),
         Centroids(),
         Delaunay(),
         VoronoiPolygons(),
         SimplifyGeometries(),
         DensifyGeometries(),
         MultipartToSingleparts(),
         SinglePartsToMultiparts(),
         PolygonsToLines(),
         LinesToPolygons(),
         ExtractNodes(),
         # geoprocessing
         ConvexHull(),
         FixedDistanceBuffer(),
         VariableDistanceBuffer(),
         Dissolve(),
         Difference(),
         Intersection(),
         Union(),
         Clip(),
         # research
         ExtentFromLayer(),
         RandomSelection(),
         RandomSelectionWithinSubsets(),
         SelectByLocation()
     ]
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.alglist = [# ------ fTools ------
                     SumLines(), PointsInPolygon(), PointsInPolygonWeighted(),
                     PointsInPolygonUnique(), BasicStatisticsStrings(),
                     BasicStatisticsNumbers(), NearestNeighbourAnalysis(),
                     MeanCoords(), LinesIntersection(), UniqueValues(), PointDistance(),
                     # data management
                     ReprojectLayer(),
                     # geometry
                     ExportGeometryInfo(), Centroids(), Delaunay(), VoronoiPolygons(),
                     SimplifyGeometries(), DensifyGeometries(), DensifyGeometriesInterval(),
                     MultipartToSingleparts(), SinglePartsToMultiparts(), PolygonsToLines(),
                     LinesToPolygons(), ExtractNodes(),
                     # geoprocessing
                     ConvexHull(), FixedDistanceBuffer(), VariableDistanceBuffer(),
                     Dissolve(), Difference(), Intersection(), Union(), Clip(),
                     # research
                     ExtentFromLayer(), RandomSelection(), RandomSelectionWithinSubsets(),
                     SelectByLocation(),
                     # ------ mmqgisx ------
                     mmqgisx_delete_columns_algorithm(),
                     mmqgisx_delete_duplicate_geometries_algorithm(),
                     mmqgisx_geometry_convert_algorithm(),
                     mmqgisx_grid_algorithm(),
                     mmqgisx_gridify_algorithm(),
                     mmqgisx_hub_distance_algorithm(),
                     mmqgisx_hub_lines_algorithm(),
                     mmqgisx_merge_algorithm(),
                     mmqgisx_select_algorithm(),
                     mmqgisx_text_to_float_algorithm(),
                     # ------ native algs ------
                     AddTableField(), FieldsCalculator(), SaveSelectedFeatures(), JoinAttributes(),
                     AutoincrementalField(), Explode(), FieldsPyculator(), EquivalentNumField(),
                     PointsLayerFromTable(), StatisticsByCategories(), Polygonize(),
                     # ------ raster ------
                     #CreateConstantRaster(), 
                     RasterLayerStatistics()
                     # ------ graphics ------
                     #VectorLayerHistogram(), VectorLayerScatterplot(), RasterLayerHistogram(),
                     #MeanAndStdDevPlot(), BarPlot(), PolarPlot()
                     ]
Ejemplo n.º 36
0
    def __init__(self):
        AlgorithmProvider.__init__(self)
        self.activate = False
        self.algsList = []
        if SextanteUtils.isWindows():
            lastools = [
                las2shp(),
                lasboundary(),
                las2dem(),
                las2iso(),
                lasgrid(),
                lasground(),
                lasinfo(),
                lasheight(),
                lasprecision(),
                lassplit(),
                lasclassify(),
                lasclip()
            ]
        else:
            lastools = [lasinfo(), lasprecision()]
        for alg in lastools:
            alg.group = "LASTools"
        self.algsList.extend(lastools)

        if SextanteUtils.isWindows():
            self.actions.append(OpenViewerAction())
            fusiontools = [
                CloudMetrics(),
                CanopyMaxima(),
                CanopyModel(),
                ClipData(),
                Cover(),
                FilterData(),
                GridMetrics(),
                GroundFilter(),
                GridSurfaceCreate(),
                MergeData()
            ]
            for alg in fusiontools:
                alg.group = "Fusion"
            self.algsList.extend(fusiontools)
	def __init__(self):
		AlgorithmProvider.__init__(self)
		self.alglist = [ mmqgisx_attribute_export_dialog(), 
			mmqgisx_attribute_join_dialog(), 
			mmqgisx_delete_columns_dialog(), 
			mmqgisx_delete_duplicate_geometries_dialog(),
			mmqgisx_geocode_google_dialog(),
			mmqgisx_geometry_convert_dialog(),
			mmqgisx_geometry_export_dialog(),
			mmqgisx_geometry_import_dialog(),
			mmqgisx_grid_dialog(),
			mmqgisx_gridify_dialog(),
			mmqgisx_hub_distance_dialog(),
			mmqgisx_hub_lines_dialog(),
			mmqgisx_label_point_dialog(),
			mmqgisx_merge_dialog(),
			mmqgisx_select_dialog(),
			mmqgisx_sort_dialog(),
			mmqgisx_text_to_float_dialog(),
			mmqgisx_voronoi_dialog() ]
    def __init__(self):
        AlgorithmProvider.__init__(self)
        self.activate = False
        self.algsList = []
        if SextanteUtils.isWindows():
            lastools = [las2shp(), lasboundary(), las2dem(), las2iso(), lasgrid(), lasground(),
                         lasinfo(), lasheight(), lasprecision(), lassplit(), lasclassify(), lasclip()]
        else:
            lastools = [lasinfo(), lasprecision()]
        for alg in lastools:
            alg.group = "LASTools"
        self.algsList.extend(lastools)

        if SextanteUtils.isWindows():
            self.actions.append(OpenViewerAction())
            fusiontools = [CloudMetrics(), CanopyMaxima(), CanopyModel(), ClipData(), Cover(), FilterData(),
                         GridMetrics(), GroundFilter(), GridSurfaceCreate(), MergeData()]
            for alg in fusiontools:
                alg.group = "Fusion"
            self.algsList.extend(fusiontools)
Ejemplo n.º 39
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.alglist = [AddTableField(), FieldsCalculator(), SaveSelectedFeatures(), JoinAttributes(),
                     AutoincrementalField(), Explode(), FieldsPyculator(), EquivalentNumField(),
                     #FTOOLS
                     SumLines(), PointsInPolygon(), PointsInPolygonWeighted(), PointsInPolygonUnique(),
                     BasicStatisticsStrings(), BasicStatisticsNumbers(), NearestNeighbourAnalysis(),
                     MeanCoords(), LinesIntersection(), UniqueValues(), PointDistance(),
                     # data management
                     ReprojectLayer(),
                     # geometry
                     ExportGeometryInfo(), Centroids(), Delaunay(), VoronoiPolygons(),
                     SimplifyGeometries(), DensifyGeometries(), DensifyGeometriesInterval(),
                     MultipartToSingleparts(), SinglePartsToMultiparts(), PolygonsToLines(),
                     LinesToPolygons(), ExtractNodes(),
                     # geoprocessing
                     ConvexHull(), FixedDistanceBuffer(), VariableDistanceBuffer(),
                     Dissolve(), Difference(), Intersection(), Union(), Clip(),
                     # research
                     ExtentFromLayer(), RandomSelection(), RandomSelectionWithinSubsets(),
                     SelectByLocation(),
                     #MMQGISX
                     #mmqgisx_attribute_export_algorithm(),
                     #mmqgisx_attribute_join_algorithm(),
                     mmqgisx_delete_columns_algorithm(),
                     mmqgisx_delete_duplicate_geometries_algorithm(),
                     #mmqgisx_geocode_google_algorithm(),
                     mmqgisx_geometry_convert_algorithm(),
                     #mmqgisx_geometry_export_algorithm(),
                     #mmqgisx_geometry_import_algorithm(),
                     mmqgisx_grid_algorithm(),
                     mmqgisx_gridify_algorithm(),
                     mmqgisx_hub_distance_algorithm(),
                     mmqgisx_hub_lines_algorithm(),
                     mmqgisx_label_point_algorithm(),
                     mmqgisx_merge_algorithm(),
                     mmqgisx_select_algorithm(),
                     mmqgisx_sort_algorithm(),
                     mmqgisx_text_to_float_algorithm(),
                     #raster
                     CreateConstantRaster()]
Ejemplo n.º 40
0
    def getPostProcessingErrorMessage(self, wrongLayers):
        html = AlgorithmProvider.getPostProcessingErrorMessage(self, wrongLayers)
        msg = GrassUtils.checkGrassIsInstalled(True)
        html += ("<p>This algorithm requires GRASS to be run. A test to check if GRASS is correctly installed "
                "and configured in your system has been performed, with the following result:</p><ul><i>")
        if msg is None:
            html += "GRASS seems to be correctly installed and configured</li></ul>"
        else:
            html += msg + "</i></li></ul>"
            html += '<p><a href= "http://docs.qgis.org/2.0/html/en/docs/user_manual/sextante/3rdParty.html">Click here</a> to know more about how to install and configure GRASS to be used with SEXTANTE</p>'

        return html
Ejemplo n.º 41
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(
         Setting(
             self.getDescription(),
             TauDEMUtils.TAUDEM_FOLDER,
             "TauDEM command line tools folder",
             TauDEMUtils.taudemPath(),
         )
     )
     SextanteConfig.addSetting(
         Setting(
             self.getDescription(),
             TauDEMUtils.MPIEXEC_FOLDER,
             "MPICH2/OpenMPI bin directory",
             TauDEMUtils.mpiexecPath(),
         )
     )
     SextanteConfig.addSetting(
         Setting(self.getDescription(), TauDEMUtils.MPI_PROCESSES, "Number of MPI parallel processes to use", 2)
     )
Ejemplo n.º 42
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.alglist = [
         mmqgisx_attribute_export_dialog(),
         mmqgisx_attribute_join_dialog(),
         mmqgisx_delete_columns_dialog(),
         mmqgisx_delete_duplicate_geometries_dialog(),
         mmqgisx_geocode_google_dialog(),
         mmqgisx_geometry_convert_dialog(),
         mmqgisx_geometry_export_dialog(),
         mmqgisx_geometry_import_dialog(),
         mmqgisx_grid_dialog(),
         mmqgisx_gridify_dialog(),
         mmqgisx_hub_distance_dialog(),
         mmqgisx_hub_lines_dialog(),
         mmqgisx_label_point_dialog(),
         mmqgisx_merge_dialog(),
         mmqgisx_select_dialog(),
         mmqgisx_sort_dialog(),
         mmqgisx_text_to_float_dialog(),
         mmqgisx_voronoi_dialog()
     ]
Ejemplo n.º 43
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.activate = False
     self.createAlgsList() #preloading algorithms to speed up
Ejemplo n.º 44
0
 def unload(self):
     AlgorithmProvider.unload(self)
     SextanteConfig.removeSetting(OTBUtils.OTB_FOLDER)
     SextanteConfig.removeSetting(OTBUtils.OTB_LIB_FOLDER)
Ejemplo n.º 45
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
     SextanteConfig.addSetting(Setting(self.getDescription(), OTBUtils.OTB_FOLDER, "OTB command line tools folder", OTBUtils.otbPath()))
     SextanteConfig.addSetting(Setting(self.getDescription(), OTBUtils.OTB_LIB_FOLDER, "OTB applications folder", OTBUtils.otbLibPath()))
     SextanteConfig.addSetting(Setting(self.getDescription(), OTBUtils.OTB_SRTM_FOLDER, "SRTM tiles folder", OTBUtils.otbSRTMPath()))
     SextanteConfig.addSetting(Setting(self.getDescription(), OTBUtils.OTB_GEOID_FILE, "Geoid file", OTBUtils.otbGeoidPath()))
Ejemplo n.º 46
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.activate = False
     self.createAlgsList()
Ejemplo n.º 47
0
 def unload(self):
     AlgorithmProvider.unload(self)
Ejemplo n.º 48
0
 def initializeSettings(self):
     AlgorithmProvider.initializeSettings(self)
Ejemplo n.º 49
0
 def getIcon(self):
     '''We return the default icon'''
     return AlgorithmProvider.getIcon(self)
Ejemplo n.º 50
0
 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.alglist = [OgrInfo(), Ogr2Vrt(), Ogr2Ogr(), Ogr2OgrVrt(), OgrSql(), Ili2Pg(), Pg2Ili(
     ), Ili2Imd(), EnumsAsGML(), ImportGML(), IliEnumsToPg(), CreatePGDb(), IliOgr2Ogr()]
     for alg in self.alglist:
         alg.provider = self
 def __init__(self):
     AlgorithmProvider.__init__(self)
     #self.readAlgNames()
     self.createAlgsList()
Ejemplo n.º 52
0
 def unload(self):
     AlgorithmProvider.unload(self)