[QGIS-it-user] PYQGIS riferirsi a una banda in in raster multibanda
Luigi Pirelli
luipir a gmail.com
Ven 4 Ott 2019 03:27:30 PDT
https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/raster.html
Luigi Pirelli
**************************************************************************************************
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Book: Mastering QGIS3 - 3rd Edition
<https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition>
* Hire a team: http://www.qcooperative.net
**************************************************************************************************
On Fri, 4 Oct 2019 at 12:20, Giacomo Fontanelli <
giacomofontanelli76 a gmail.com> wrote:
> salve a tutti
>
> Ho caricato un raster multibanda in qgis tramite
>
> rasterLayer = QgsRasterLayer("/path/file.tif")
>
> ho controllato il numero di bande tramite
>
> nBand = rasterLayer.bandCount()
>
> adesso vorrei potermi riferire a una particolare banda del rasterLayer,
> tramite qualcosa come ad esempio
>
> rasterLayer.band(i)
>
> ma 'QgsRasterLayer' non ha l'attributo 'band'
>
> Sapete coe fare?
>
> Grazie
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Mail
> priva di virus. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#m_3388865954445822882_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> _______________________________________________
> QGIS-it-user mailing list
> QGIS-it-user a lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
-------------- parte successiva --------------
Un allegato HTML รจ stato rimosso...
URL: <http://lists.osgeo.org/pipermail/qgis-it-user/attachments/20191004/bedcaef6/attachment.html>
Maggiori informazioni sulla lista
QGIS-it-user