[Qgis-developer] Get size of SVG in Python

Tom Chadwin tom.chadwin at nnpa.org.uk
Thu Jun 23 07:02:41 PDT 2016


I need to get the width and height of an SVG file used as an SVG marker
symbol layer. To be explicit, the dimensions I need are the width and height
attributes of the <svg> element. What's the best way to do that in PyQGIS?
Parse the XML (never done that in Python yet)? Or something in the QGIS API?
Some other technique?

Thanks

Tom



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Get-size-of-SVG-in-Python-tp5273032.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list