[prev in list] [next in list] [prev in thread] [next in thread]
List: qgis-user
Subject: [Qgis-user] Getting the gml cooridnates from xml
From: Asim al-sofi via Qgis-user <qgis-user () lists ! osgeo ! org>
Date: 2022-11-24 11:48:18
Message-ID: CANUs6XDMAuvtppA5v9DEV7G1McT861ng8NQ3qdJVCpi9Nc1LZQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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
[Attachment #5 (text/html)]
<div dir="ltr">Hi all,<div>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. </div><div><b>for q in root:<br> for p in q.iter():<br> if \
'posList'in str(p.tag):<br> \
objects.append(q)</b><br></div><div>Is it possible to get the coordinates as Qspoints \
or QgsGeometry?</div><div>Kind regards</div><div>A. \
Al-Sofi</div><div><br></div></div>
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic