コード例 #1
0
    def __init__(self, providerType='Standard'):

        QgsProcessingProvider.__init__(self)

        # Load algorithms
        # ,learnWithSpatialSampling()]#,classifyAlgorithm(),splitTrain()]
        self.providerType = providerType
コード例 #2
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            TigSurfitAlgorithm()
            # ,TigContouringAlgorithm()
            ,
            TigTriangleAlgorithm(),
            TigReservesByRasterAlgorithm(),
            TigSurfaceCorrectionAlgorithm(),
            TigSurfaceIntersectCorrectAlgorithm(),
            TigVolumeMethodAlgorithm(),
            TigUpdatePointLocationAlgorithm(),
            TigSetCustomProp(),
            TigSetPdsCustomProp(),
            TigUpdateLabelLocationAlgorithm(),
            TigUpdateTableFieldAlgorithm(),
            TigCreateMultilineRuleLabelAlgorithm(),
            TigSetMapVariable(),
            TigShowRuleLabelContours(),
            TigJoinLayersAlgorithm(),
            TigSwitchLayerStyleAlgorithm()
        ]
        self.alglist = filter(lambda alg: alg is not None, self.alglist)
 def __init__(self):
     """
     Default constructor.
     """
     self.alglist = [
         FluxDensityAlgorithm(),
         DSFLSurface(),
         DSFLRaw(),
         DSFLSymbology(),
         CreateMeshAlgorithm(),
         RoadsReporting(),
         MergeGeometryAlgorithm(),
         MergeGeometryDissolveAlgorithm(),
         MergeGeometryNoOverlapAlgorithm(),
         RoadsExtent(),
         RoadsExtentBDTOPO(),
         RoadsExtentFromCadastre(),
         AddParcellesAlg(),
         RadianceStats(),
         ClassifyLightingAlg()
     ]
     self.alglist2 = [
         VIIRS_Untar(),
         FluxDispAlg(),
         FluxDispTempCoulAlg(),
         FluxEstimationAlgorithm(),
         FluxTimeAlgorithm(),
         LightDispSymbology()
     ]
     for a in self.alglist:
         a.initAlgorithm()
     QgsProcessingProvider.__init__(self)
コード例 #4
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            ValhallaRouteLinesCarAlgo(),
            ValhallaRouteLinesTruckAlgo(),
            ValhallaRouteLinesBicycleAlgo(),
            ValhallaRouteLinesPedestrianAlgo(),
            ValhallaRoutePointsLayerCarAlgo(),
            ValhallaRoutePointsLayerBicycleAlgo(),
            ValhallaRoutePointsLayerPedestrianAlgo(),
            ValhallaRoutePointsLayerTruckAlgo(),
            ValhallaRoutePointsLayersCarAlgo(),
            ValhallaRoutePointsLayersTruckAlgo(),
            ValhallaRoutePointsLayersBicycleAlgo(),
            ValhallaRoutePointsLayersPedestrianAlgo(),
            ValhallaIsochronesCarAlgo(),
            ValhallaIsochronesTruckAlgo(),
            ValhallaIsochronesBicycleAlgo(),
            ValhallaIsochronesPedestrianAlgo(),
            ValhallaMatrixCarAlgo(),
            ValhallaMatrixTruckAlgo(),
            ValhallaMatrixBicycleAlgo(),
            ValhallaMatrixPedestrianAlgo(),
        ]
コード例 #5
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            LTOrographicPrecipitationAlgorithm(),
            LTOrographicPrecipitationTestInput()
        ]
コード例 #6
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            TilesXYZAlgorithmDirectory(),
            TilesXYZAlgorithmMBTiles()
        ]
コード例 #7
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        self.alglist = [
            ExportAlgorithm(),
            ExportImageAlgorithm(),
            ExportModelAlgorithm()
        ]
コード例 #8
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            EstimateEcosystemServiceValuesForStudyRegion(),
            MapTheValueOfIndividualEcosystemServices()
        ]
コード例 #9
0
ファイル: provider.py プロジェクト: raynus/GeoPublicHealth
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        self.activate = True

        # Load algorithms
        self.alglist = [BlurringGeoAlgorithm()]
        for alg in self.alglist:
            alg.provider = self
コード例 #10
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        self.activate = True

        # Load algorithms
        self.alglist = [SnapReachAlgorithm(), FlowTimesAlgorithm(), ChangeReachDirection()]
        for alg in self.alglist:
            alg.provider = self
コード例 #11
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            OfflineMapMatchingAlgorithm(),
            ClipNetworkAlgorithm(),
            ReduceTrajectoryDensity()
        ]
コード例 #12
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            PeliasFreeSearchAlgo(),
            PeliasStrucSearchAlgo(),
            PeliasReverseAlgo()
        ]
コード例 #13
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            ORSdirectionsPointsAlgo(),
            ORSdirectionsLinesAlgo(),
            ORSisochronesAlgo(),
            ORSmatrixAlgo()
        ]
コード例 #14
0
ファイル: snapper_provider.py プロジェクト: bazzile/projecta
    def __init__(self, icon: QIcon, plugin_dir: str):
        """
        Default constructor.
        """

        self.icon = icon

        self.plugin_dir = plugin_dir

        QgsProcessingProvider.__init__(self)
コード例 #15
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [OfflineMapMatchingAlgorithm(),
                        MapMatchingPreparation(),
                        CalculateAllShortestPaths(),
                        ClipNetworkAlgorithm(),
						ReduceTrajectoryDensity(),
                        RipUpNetwork()]
コード例 #16
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            DemShadingAlgorithm(),
            HillshadeAlgorithm(),
            OcclusionAlgorithm(),
            TpiAlgorithm()
        ]
コード例 #17
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Deactivate provider by default
        self.activate = False

        # Load algorithms
        self.alglist = [exportProject(), exportVector(), exportRaster()]
        for alg in self.alglist:
            alg.provider = self
コード例 #18
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        #self.alglist = [ImportGpapAlgorithm(),ExportSpatialiteAlgorithm(),ExportTilesAlgorithm()]
        self.alglist = [
            ImportGpapAlgorithm(),
            ExportSpatialiteAlgorithm(),
            ExportTilesAlgorithm()
        ]
コード例 #19
0
    def __init__(self):
        # we initialize the fact that this class
        # heritates from the provider class of the QGIS
        # package
        QgsProcessingProvider.__init__(self)

        # We load the algorithms that the plugin is
        # going to use while creating the provider.
        # We initialize it at the same time.
        self.alglist = [ForestRoadNetworkAlgorithm(), woodFluxAlgorithm(), roadTypeAlgorithm(), CostRasterAlgorithm()]
コード例 #20
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        self.settings = Settings()

        self.alglist = [
            ImportObservationerByLocationAlgorithm(self.settings),
            # ExportObservationerAlgorithm(self.settings),
            ApplyStyleToLineLayerAlgorithm(self.settings),
            BufferInMetersAroundPointsAlgorithm(self.settings),
        ]
コード例 #21
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        self.alglist = []

        # Load all subclasses of SpcAlgorithm of the following modules
        for module in [project, utils, hacks, tcrm]:
            for cls in module.__dict__.values():
                QgsMessageLog.logMessage(str(cls))
                if isinstance(cls, type) and cls is not SpcAlgorithm and issubclass(cls, SpcAlgorithm):
                    self.alglist.append(cls())
コード例 #22
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            WGS2GCJ(),
            GCJ2WGS(),
            GCJ2BD(),
            BD2GCJ(),
            WGS2BD(),
            BD2WGS()
        ]
コード例 #23
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            RLERatioOfMapAlgorithm(),
            RLERatioOfImageAlgorithm(),
            LayerCharacteristicsAlgorithm(),
            LayerCharacteristicsGpkgAlgorithm(),
            CommonIntersectionAlgorithm(),
            CommonIntersectionAlgorithmGpkg()
        ]
コード例 #24
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        self.activate = True

        # Load algorithms
        self.alglist = [
            Ili2PgSchemaAlgorithm(),
            Ili2PgImportAlgorithm(),
            Ili2PgExportAlgorithm(),
            Ili2GpkgSchemaAlgorithm(),
            Ili2GpkgImportAlgorithm(),
            Ili2GpkgExportAlgorithm(),
            Ili2ImdAlgorithm()
        ]
        self.initializeSettings()
コード例 #25
0
 def __init__(self,providerType='Standard'):
     
     QgsProcessingProvider.__init__(self)
         
     # Load algorithms
     self.alglist = [trainAlgorithm(),classifyAlgorithm(),splitTrain(),\
                     domainAdaptation(),trainSLOOAlgorithm(),trainSTANDalgorithm()]#,learnWithSpatialSampling()]#,classifyAlgorithm(),splitTrain()]
     
     if providerType == 'Experimental':
     
         from .processing.shannonEntropy import shannonAlgorithm
         from .processing.resampleImageSameDate import resampleImageSameDateAsSource
         from .processing.medianFilter import medianFilterAlgorithm
         self.alglist.append(shannonAlgorithm())
         self.alglist.append(resampleImageSameDateAsSource())
         self.alglist.append(medianFilterAlgorithm())
コード例 #26
0
    def __init__(self, providerType='Standard'):

        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [trainAlgorithm(),classifyAlgorithm(),splitTrain(),\
                        domainAdaptation(),trainSLOOAlgorithm(),trainSTANDalgorithm()]#,learnWithSpatialSampling()]#,classifyAlgorithm(),splitTrain()]

        if providerType == 'Experimental':

            from .processing.shannonEntropy import shannonAlgorithm
            from .processing.resampleImageSameDate import resampleImageSameDateAsSource
            from .processing.medianFilter import medianFilterAlgorithm
            self.alglist.append(shannonAlgorithm())
            self.alglist.append(resampleImageSameDateAsSource())
            self.alglist.append(medianFilterAlgorithm())
コード例 #27
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            PointsInPolygon(),
            PointsToProportional(),
            PointsInGrid(),
            PointsToLine(),
            PointsToEdge(),
            EdgesToFlow(),
            PointsToSplitLine(),
            PointsToNNCluster(),
            LocalIndicatorSpatialA(),
            NearestNeighbourAnalysis(),
            DistanceAnalysis()
        ]
コード例 #28
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # initialize plugin directory
        self.plugin_dir = os.path.dirname(__file__)
        # initialize locale
        locale = QSettings().value('locale/userLocale')[0:2]
        locale_path = os.path.join(self.plugin_dir, 'i18n',
                                   'processing_{}.qm'.format(locale))
        if os.path.exists(locale_path):
            self.translator = QTranslator()
            self.translator.load(locale_path)
            if qVersion() > '4.3.3':
                QCoreApplication.installTranslator(self.translator)

        # Load algorithms
        self.alglist = []

        # RASTER TOOLS
        self.alglist.append(AttachRasterValuesToLineVertices())

        # VECTOR SELECTION TOOLS
        self.alglist.append(SelectDuplicates())

        # WEB
        self.alglist.append(FileDownload())
        self.alglist.append(WmsRipper())

        # TO PROFILE COORDINATES
        self.alglist.append(TransformToProfil_Gradient())
        self.alglist.append(TransformToProfil_GradientForAllLines())

        self.alglist.append(TransformToProfil_LineIntersection())
        self.alglist.append(TransformToProfil_LineIntersectionForAllLines())

        self.alglist.append(TransformToProfil_PolygonIntersection())
        self.alglist.append(TransformToProfil_PolygonIntersectionForAllLines())

        self.alglist.append(TransformToProfil_Points())
        self.alglist.append(TransformToProfil_PointsForAllLines())

        self.alglist.append(TransformGeomFromProfileToRealWorld())

        self.alglist.append(TransformToProfil_ShiftProfileOrigin())
        self.alglist.append(Files2Table())
コード例 #29
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)
        # AlgorithmProvider.__init__(self)

        self.activate = True

        # Load algorithms
        self.alglist = [
            SnapReachAlgorithm(),
            FlowTimesAlgorithm(),
            ChangeReachDirection(),
            SumUpUpstreamAlgorithm(),
            SwmmCreateInputAlgorithm(),
            SwmmExtractResultsAlgorithm(),
            SwmmExecuteAlgorithm()
        ]
        for alg in self.alglist:
            alg.provider = self
コード例 #30
0
ファイル: networks_provider.py プロジェクト: giserh/networks
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Load algorithms
        self.alglist = [
            ReseauTi(),
            AjoutChamp(),
            ConcatReseaux(),
            ConnecteursGeo(),
            Contours(),
            CreerGraphe(),
            Interpole(),
            Majtitj(),
            ImportGTFS(),
            Inverser(),
            ReseauTC(),
            PrepareGTFS(),
            ConnectNodes2Lines(),
            CalculMusliw(),
            MusliwParam(),
            SimpleMatrix(),
            MatrixSimpleList(),
            MatrixDoubleList(),
            IsolatedNodes(),
            FichierAff(),
            ShiftLines()
        ]

        self.plugin_dir = os.path.dirname(__file__)
        # initialize locale
        locale = QSettings().value('locale/userLocale')[0:2]
        locale_path = os.path.join(self.plugin_dir, 'i18n',
                                   'networks_{0}.qm'.format(locale))

        if os.path.exists(locale_path):
            self.translator = QTranslator()
            self.translator.load(locale_path)
            QCoreApplication.installTranslator(self.translator)
コード例 #31
0
    def __init__(self):
        """
        Default constructor.
        """

        self.debugging = False
        #self.debugging = True

        self.tempdir = tempfile.TemporaryDirectory()

        QgsProcessingProvider.__init__(self)

        locale = QSettings().value('locale/userLocale')[0:2]
        locale_path = os.path.join(os.path.dirname(__file__), 'i18n',
                                   'koala_{}.qm'.format(locale))

        self.translator = None
        if os.path.exists(locale_path):
            self.translator = QTranslator()
            self.translator.load(locale_path)

        if qVersion() > '4.3.3':
            QCoreApplication.installTranslator(self.translator)
コード例 #32
0
    def __init__(self):
        QgsProcessingProvider.__init__(self)

        # Deactivate provider by default
        self.activate = False