[Qgis-user] Open ArcInfo Binary Coverage in QGIS

Tudorache, Marian Marian.Tudorache at navcanada.ca
Mon Jun 29 15:34:45 PDT 2015


Hi everyone,

I figured out
The syntax is:

layer = iface.addVectorLayer("/sadb|layername= arc.adf", "arc.adf", "ogr")

Thanks,
Marian

From: Tudorache, Marian
Sent: June-29-15 12:41 PM
To: ottawa_users at lists.osgeo.org; qgis-user at lists.osgeo.org
Subject: Open ArcInfo Binary Coverage in QGIS

Hi,

I am trying to read some ArcInfo Binary coverage using OGR.
The code is:

import osgeo.ogr, osgeo.
import ogr

layer = iface.addVectorLayer("/sadb", "arc.adf", "ogr")

After the code is executed the system open a dialog window and it asks to select the vector layer to add and I do not want.
[cid:image001.png at 01D0B29A.45A3E120]<http://media.getspatial.com/wordpress/qgis_dialog_addvector_arcinfo_layers.png>

I am interested to add only arc.adf not the others using a python command line.

How can I suppress this window?

I tried various versions like:
layer = iface.addVectorLayer("/sadb/arc.adf", "", "ogr")
layer = iface.addVectorLayer(("/sadb/arc.adf", "arc.adf", "ogr")
layer = iface.addVectorLayer("/sadb|arc.adf", "arc.adf", "ogr")

Non of them subpress the dialog "Select vector layer to add..."

Thanks,
Marian

________________________________
This electronic message, as well as any transmitted files included in the electronic message, may contain privileged or confidential information and is intended solely for the use of the individual(s) or entity to which it is addressed. If you have received this electronic message in error please notify the sender immediately and delete the electronic message. Any unauthorized copying, disclosure or distribution of the electronic message is strictly forbidden. NAV CANADA accepts no liability for any damage caused by any virus and/or other malicious code transmitted by this electronic communication.

Le pr?sent message ?lectronique et tout fichier qui peut y ?tre joint peuvent contenir des renseignements privil?gi?s ou confidentiels destin?s ? l'usage exclusif des personnes ou des organismes ? qui ils s'adressent. Si vous avez re?u ce message ?lectronique par erreur, veuillez en informer l'exp?diteur imm?diatement et supprimez le. Toute reproduction, divulgation ou distribution du pr?sent message ?lectronique est strictement interdite. NAV CANADA n'assume aucune responsabilit? en cas de dommage caus? par tout virus ou autre programme malveillant transmis par ce message ?lectronique.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150629/171c4377/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 22687 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150629/171c4377/attachment.png>


More information about the Qgis-user mailing list