[Qgis-user] Printing Qgis shown layers in new version

2023-12-08 Per discussione Asim al-sofi via QGIS-User
Hi All,
I have a question related to printing out the shown layers in qgis.
I made a plugin that has worked fine in the older Qgis versions but not
working properly in the new version.
The problem that iam facing is that the
*QgsProject.instance().mapLayers().values()
*does not show me the layers shown in qgis.
So in the previous version, the below image gives me the names of the
layers *Gasunie 2, Gasunie Z-509-05 and Wattinfra Kabelverbinding*. But in
the new Qgis version it gives me the names *Overzicht entities
and openbasiskaart.nl *. Does anyone know how to
tackle this problem?
[image: Layers.png]
Thanks in advance
Kind regards
Asim
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Getting the gml cooridnates from xml

2022-11-24 Per discussione Asim al-sofi via Qgis-user
Hi all,
I would like to extract gml coordinates given in an xml file using Python.
I have used the following but what I get is the coordinates as a string.



*for q in root:for p in q.iter():if 'posList'in str(p.tag):
objects.append(q)*
Is it possible to get the coordinates as Qspoints or QgsGeometry?
Kind regards
A. Al-Sofi
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user