import os chemin='[% "location" %]' nomCouche = str(os.path.splitext(os.path.split(chemin)[1])[0]) instRegistry = QgsMapLayerRegistry.instance() couche = instRegistry.mapLayersByName(nomCouche) if len(couche) > 0: instRegistry.removeMapLayer(couche[0].id())
closeRaster.py
- 2000 lectures