• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python AlgorithmProvider.AlgorithmProvider类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中sextante.core.AlgorithmProvider.AlgorithmProvider的典型用法代码示例。如果您正苦于以下问题:Python AlgorithmProvider类的具体用法?Python AlgorithmProvider怎么用?Python AlgorithmProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了AlgorithmProvider类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: initializeSettings

 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))
开发者ID:JoeyPinilla,项目名称:Quantum-GIS,代码行数:7,代码来源:GrassAlgorithmProvider.py


示例2: unload

 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)
开发者ID:JoeyPinilla,项目名称:Quantum-GIS,代码行数:7,代码来源:GrassAlgorithmProvider.py


示例3: __init__

 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()
                     ]
开发者ID:geonux,项目名称:Quantum-GIS,代码行数:33,代码来源:QGISAlgorithmProvider.py


示例4: initializeSettings

 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)
     )
开发者ID:rudivs,项目名称:Quantum-GIS,代码行数:35,代码来源:SagaAlgorithmProvider.py


示例5: __init__

 def __init__(self):
     AlgorithmProvider.__init__(self)
     #=======================================================================
     # self.actions.append(DefineGrassRegionAction())
     # self.actions.append(DefineGrassRegionFromLayerAction())
     #=======================================================================
     self.createAlgsList() #preloading algorithms to speed up
开发者ID:mokerjoke,项目名称:Quantum-GIS,代码行数:7,代码来源:GrassAlgorithmProvider.py


示例6: unload

 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)
开发者ID:kfischerar,项目名称:ogrtools,代码行数:7,代码来源:ogralgorithmprovider.py


示例7: initializeSettings

 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)'''
开发者ID:carsonfarmer,项目名称:Quantum-GIS,代码行数:8,代码来源:ExampleAlgorithmProvider.py


示例8: __init__

 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
开发者ID:Adam-Brown,项目名称:Quantum-GIS,代码行数:8,代码来源:ExampleAlgorithmProvider.py


示例9: initializeSettings

    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", ""))
开发者ID:SIGISLV,项目名称:processinglwgeomprovider,代码行数:8,代码来源:LwgeomAlgorithmProvider.py


示例10: initializeSettings

 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))
开发者ID:jietaowang,项目名称:Quantum-GIS,代码行数:8,代码来源:RAlgorithmProvider.py


示例11: __init__

 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 
开发者ID:geonux,项目名称:Quantum-GIS,代码行数:11,代码来源:AdminToolsAlgorithmProvider.py


示例12: unload

 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)
开发者ID:Nald,项目名称:Quantum-GIS,代码行数:12,代码来源:SagaAlgorithmProvider.py


示例13: __init__

 def __init__(self):
     AlgorithmProvider.__init__(self)
     self.alglist = [
         ImportVectorIntoGeoServer(),
         ImportRasterIntoGeoServer(),
         CreateWorkspace(),
         DeleteWorkspace(),
         DeleteDatastore(),
         CreateStyleGeoServer(),
         ImportIntoPostGIS(),
         PostGISExecuteSQL(),
     ]  # , TruncateSeedGWC()]
开发者ID:Nald,项目名称:Quantum-GIS,代码行数:12,代码来源:AdminToolsAlgorithmProvider.py


示例14: initializeSettings

 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"))
开发者ID:kfischerar,项目名称:ogrtools,代码行数:14,代码来源:ogralgorithmprovider.py


示例15: unload

 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)
开发者ID:mokerjoke,项目名称:Quantum-GIS,代码行数:17,代码来源:GrassAlgorithmProvider.py


示例16: __init__

 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()
                    ]
开发者ID:mokerjoke,项目名称:Quantum-GIS,代码行数:17,代码来源:FToolsAlgorithmProvider.py


示例17: initializeSettings

 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()))
开发者ID:mokerjoke,项目名称:Quantum-GIS,代码行数:17,代码来源:GrassAlgorithmProvider.py


示例18: __init__

    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)
开发者ID:mokerjoke,项目名称:Quantum-GIS,代码行数:20,代码来源:LidarToolsAlgorithmProvider.py


示例19: __init__

	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() ]
开发者ID:carsonfarmer,项目名称:Quantum-GIS,代码行数:20,代码来源:MMQGISXAlgorithmProvider.py


示例20: __init__

 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()]
开发者ID:tomyun,项目名称:Quantum-GIS,代码行数:41,代码来源:QGISAlgorithmProvider.py



注:本文中的sextante.core.AlgorithmProvider.AlgorithmProvider类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python GeoAlgorithm.GeoAlgorithm类代码示例发布时间:2022-05-27
下一篇:
Python ftools.FToolsUtils类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap