Re: [QGIS-Developer] GdalUtils in recent QGIS versions

2020-12-20 Thread Nyall Dawson
On Mon, 21 Dec 2020 at 16:56, matteo  wrote:
>
> > issue aside, you really shouldn't be relying on this class in any 3rd
> > party code. It's private Processing api, and could be removed or
> > changed at any time.
>
> yep that's exactly where I'm using it. I'm developing some Processing
> scripts (as a plugin) and I discovered this bug when using the
> Processing plugin in 3.10 and master

That's still abusing private api though -- the ONLY code which should
be importing and using this module is stuff which resides in QGIS
master.

If you find it useful, you should copy this class inside your plugin
and always use your internal copy, so that you're not risking breakage
if the api of that class is ever changed in future releases.


>
> Thanks for the clarification
>
> Matteo
___
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] GdalUtils in recent QGIS versions

2020-12-20 Thread matteo

issue aside, you really shouldn't be relying on this class in any 3rd
party code. It's private Processing api, and could be removed or
changed at any time.


yep that's exactly where I'm using it. I'm developing some Processing 
scripts (as a plugin) and I discovered this bug when using the 
Processing plugin in 3.10 and master


Thanks for the clarification

Matteo
___
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] GdalUtils in recent QGIS versions

2020-12-20 Thread Nyall Dawson
On Mon, 21 Dec 2020 at 16:50, matteo  wrote:
>
> Hi all,
>
> recently I opened an issue because of a strange behavior of GdalUtils in
> QGIS 3.17 vs QGIS 3.10 [0]
>
> I really think GdalUtils is an extremely useful module we have in QGIS
> and that we can call in python.
>
> Someone else has experienced some recent strange behavior?

issue aside, you really shouldn't be relying on this class in any 3rd
party code. It's private Processing api, and could be removed or
changed at any time.

Nyall


>
> Cheers and thanks
>
> Matteo
>
>
> [0] https://github.com/qgis/QGIS/issues/40662
> ___
> 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


[QGIS-Developer] GdalUtils in recent QGIS versions

2020-12-20 Thread matteo

Hi all,

recently I opened an issue because of a strange behavior of GdalUtils in 
QGIS 3.17 vs QGIS 3.10 [0]


I really think GdalUtils is an extremely useful module we have in QGIS 
and that we can call in python.


Someone else has experienced some recent strange behavior?

Cheers and thanks

Matteo


[0] https://github.com/qgis/QGIS/issues/40662
___
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