<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-family:"sans serif";font-size:12px;white-space:pre-wrap">That will *not* work for other formats that can have multiple geometry fields, like GML.</span></blockquote><div>Could you send me such a GML to test this?</div><div>Have you ever seen or have a GML with a duplicate layer-name?</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p style="white-space:pre-wrap;font-family:"sans serif";font-size:12px;margin:0px">but it would probably be cleaner to have a dedicated URI parameter for the geometry column name. </p></blockquote><div>ok </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p style="white-space:pre-wrap;font-family:"sans serif";font-size:12px;margin:0px">Anyway at the OGR API level, I reiterate that we must have a separate OGR layer name (for GetLayerByname()) and OGR geometry field name (for GetGeomFieldIndex())</p></blockquote><div>ok </div><div><br></div><div><br></div><div>----</div><div>QgsWkbTypes::parseType could be used for ogrWkbGeometryTypeFromName.</div></div>