<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-size:12.8px">But the above is NOT an ogrDataSource</span></blockquote><div>yes, but you are using the OGR-API directly </div><div>- so you must use the OGR-Syntax</div><div><br></div><div>i.e. you must 'translate' the syntax used in QgsSpatiaLiteProvider to something OGR will understand.</div></div>