Re: [QGIS-Developer] QGIS Server and native Processing algorithms

2019-07-10 Thread Alexander Bruy
I have Processing initialization code in my plugin. Looks like local issue
as on another machine same code works fine.

Thanks and sorry for the noise.

ср, 10 лип. 2019 о 10:49 David Marteau  пише:
>
>
>
> Le 10 juil. 2019 à 08:44, Alessandro Pasotti  a écrit :
>
>
> did you call 
> QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms()) ?
>
>
> You may need to call the above, before calling  'Processing.initialize()'
>
>
> On Wed, Jul 10, 2019 at 8:42 AM Alexander Bruy  
> wrote:
>>
>> Hi,
>>
>> I need to access Processing algorithms from the QGIS Server plugin.
>> But any attempt to call any Processing algorithm failed with following
>> error message in
>> the logs
>>
>> CRITICAL Processing[2960]: Error: Algorithm native:clip not found
>>
>> In the same time I can access analysis classes like QgsHillshadeFilter
>> or QgsZonalStatistics.
>>
>> Is it possible to access Processing algorithms from server plugins?
>>
>> Thanks
>> --
>> Alexander Bruy
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
> --
> Alessandro Pasotti
> w3:   www.itopen.it
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>


-- 
Alexander Bruy
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS Server and native Processing algorithms

2019-07-10 Thread David Marteau


> Le 10 juil. 2019 à 08:44, Alessandro Pasotti  a écrit :
> 
> 
> did you call 
> QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms()) ?

You may need to call the above, before calling  'Processing.initialize()'  

> 
> On Wed, Jul 10, 2019 at 8:42 AM Alexander Bruy  > wrote:
> Hi,
> 
> I need to access Processing algorithms from the QGIS Server plugin.
> But any attempt to call any Processing algorithm failed with following
> error message in
> the logs
> 
> CRITICAL Processing[2960]: Error: Algorithm native:clip not found
> 
> In the same time I can access analysis classes like QgsHillshadeFilter
> or QgsZonalStatistics.
> 
> Is it possible to access Processing algorithms from server plugins?
> 
> Thanks
> -- 
> Alexander Bruy
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org 
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
> 
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
> 
> 
> -- 
> Alessandro Pasotti
> w3:   www.itopen.it 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS Server and native Processing algorithms

2019-07-09 Thread Alessandro Pasotti
did you call
QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms()) ?

On Wed, Jul 10, 2019 at 8:42 AM Alexander Bruy 
wrote:

> Hi,
>
> I need to access Processing algorithms from the QGIS Server plugin.
> But any attempt to call any Processing algorithm failed with following
> error message in
> the logs
>
> CRITICAL Processing[2960]: Error: Algorithm native:clip not found
>
> In the same time I can access analysis classes like QgsHillshadeFilter
> or QgsZonalStatistics.
>
> Is it possible to access Processing algorithms from server plugins?
>
> Thanks
> --
> Alexander Bruy
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Alessandro Pasotti
w3:   www.itopen.it
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer