<div dir="ltr">Dear list!<br><br>I am trying to load a dxf file via qgis python binding, but:<br>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">l=QgsVectorLayer(path_to_dxf, 'dxf', 'ogr')</p>
l.isValid()<br>(False)<br><br>In ogr python bindings I need to type osgeo.ogr.RegisterAll() before open my dxf, there is any method in qgis to do the same thing? <br><br><br>Thanks in advance,<br>Balazs  <br><br><br></div>