[QGIS-Developer] how to backport ?

2022-10-17 Thread Sandro Santilli via QGIS-Developer
Is there a guide about backports handling ?
Should I apply the "backport queued_ltr_backports" label and let
bots handle it ?

--strk;

  Libre GIS consultant/developer
  https://strk.kbt.io/services.html
___
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] Best way to import gdal, ogr, osr ?

2022-10-17 Thread i-s-o via QGIS-Developer
FYI you could use the Windows Sandbox feature to simulate how QGIS behaves
in a brand new Windows installation. It is a built-in feature in Windows
10/11:
https://learn.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview


On Mon, Oct 17, 2022 at 6:42 AM Even Rouault via QGIS-Developer <
qgis-developer@lists.osgeo.org> wrote:

>
> Le 17/10/2022 à 12:36, Raymond Nijssen a écrit :
> > Thank you Even. And that will always be available in QGIS? Without any
> > extra (gdal) installations?
>
> yes, I think so. This is needed by the GDAL processing tools, which
> AFAIK are availalable out-of-the box in the standalone Windows installer
>
>
> --
> http://www.spatialys.com
> My software is free, but my time generally not.
>
> ___
> 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] Best way to import gdal, ogr, osr ?

2022-10-17 Thread Even Rouault via QGIS-Developer


Le 17/10/2022 à 12:36, Raymond Nijssen a écrit :
Thank you Even. And that will always be available in QGIS? Without any 
extra (gdal) installations?


yes, I think so. This is needed by the GDAL processing tools, which 
AFAIK are availalable out-of-the box in the standalone Windows installer



--
http://www.spatialys.com
My software is free, but my time generally not.

___
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] Best way to import gdal, ogr, osr ?

2022-10-17 Thread Raymond Nijssen via QGIS-Developer
Thank you Even. And that will always be available in QGIS? Without any 
extra (gdal) installations?


Let's say, I'm buying a brand new Windows laptop and install QGIS with 
the standalone installer, I can type


from osgeo import ogr

in the python console and it will just work?

Sorry, this is a bit hard to verify as I'm not wanting to buy a new 
Windows laptop :)



On 17-10-2022 11:51, Even Rouault wrote:

You can just use

from osgeo import ogr
from osgeo import gdal
from osgeo import osr

That will work with any GDAL version of the last 15 years or so.

Le 17/10/2022 à 10:52, Raymond Nijssen via QGIS-Developer a écrit :

Dear developers,

What is the best way to import ogr, gdal and osr in my pyqgis script?


This used to work in older QGIS versions:

import gdal
import ogr
import osr



Now I've changed that to:

try:
    import ogr
    import gdal
    import osr
except ModuleNotFoundError:
    from osgeo import ogr
    from osgeo import gdal
    from osgeo import osr


But it's still unclear to me what would be the way to make sure my 
script will run in anyone else's installation (Different OS and QGIS 
version).



Maybe there's something like this:

from qgis import ogr

???


Kind regards,
Raymond
___
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] Best way to import gdal, ogr, osr ?

2022-10-17 Thread Even Rouault via QGIS-Developer

You can just use

from osgeo import ogr
from osgeo import gdal
from osgeo import osr

That will work with any GDAL version of the last 15 years or so.

Le 17/10/2022 à 10:52, Raymond Nijssen via QGIS-Developer a écrit :

Dear developers,

What is the best way to import ogr, gdal and osr in my pyqgis script?


This used to work in older QGIS versions:

import gdal
import ogr
import osr



Now I've changed that to:

try:
    import ogr
    import gdal
    import osr
except ModuleNotFoundError:
    from osgeo import ogr
    from osgeo import gdal
    from osgeo import osr


But it's still unclear to me what would be the way to make sure my 
script will run in anyone else's installation (Different OS and QGIS 
version).



Maybe there's something like this:

from qgis import ogr

???


Kind regards,
Raymond
___
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


--
http://www.spatialys.com
My software is free, but my time generally not.

___
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] Best way to import gdal, ogr, osr ?

2022-10-17 Thread Raymond Nijssen via QGIS-Developer

Dear developers,

What is the best way to import ogr, gdal and osr in my pyqgis script?


This used to work in older QGIS versions:

import gdal
import ogr
import osr



Now I've changed that to:

try:
import ogr
import gdal
import osr
except ModuleNotFoundError:
from osgeo import ogr
from osgeo import gdal
from osgeo import osr


But it's still unclear to me what would be the way to make sure my 
script will run in anyone else's installation (Different OS and QGIS 
version).



Maybe there's something like this:

from qgis import ogr

???


Kind regards,
Raymond
___
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] OSGEO4W nightlies (and weeklies) broken?

2022-10-17 Thread Andrea Giudiceandrea via QGIS-Developer

Hi all,
it seems the OSGeo4W QGIS dev builds are broken again.

The latest qgis dev nightly build [1] was released on October 10th and 
the latest weekly build [2] on September 26th.


Best regards.

Andrea Giudiceandrea

[1] 
https://download.osgeo.org/osgeo4w/v2/x86_64/release/qgis/qgis-dev/?C=M=D

[2] https://download.osgeo.org/qgis/windows/weekly/?C=M=D
___
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