[Qgis-developer] pyqgis dxf

Alexandre Busquets abusquets at gmail.com
Fri Feb 20 06:35:48 PST 2015


Hi,

can somebody help me with load  a dxf file into a layer?

I have done this:

fitxer="PARCELARIPEPCH.dxf"
layer = QgsVectorLayer(fitxer, 'prova', 'ogr')
if not layer.isValid():
    print "invalid layer"

And always have an invalid layer.


And then, how I have to filter by different geomtry types?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150220/30e7fd0d/attachment.html>


More information about the Qgis-developer mailing list