Hi Radim, <br><br><div class="gmail_quote">On Wed, May 25, 2011 at 9:37 AM, Radim Blazek <span dir="ltr">&lt;<a href="mailto:radim.blazek@gmail.com">radim.blazek@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


I would like to discuss possible change of providers URI format.<br>
...<br>
Some possible solutions:<br>
1) minimal:<br>
  - add WMS additional params somehow to URI + parsing in WMS provider<br>
(it is not clear to me why it was not done this way when WMS was<br>
implemented)<br></blockquote><div> I would avoid the 1) as it would be valid for now, but I&#39;m pretty sure in future <br>development we could need a more flexible solution.<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


2) maximal A:<br>
  - use QUrl for all providers with providers key as scheme<br>
3) maximal B:<br>
  - use modified QgsDataSourceURI (it is not generic, works with set<br>
of known params only) for all params including provider key<br></blockquote><div>I&#39;d prefer the 2), it&#39;s generic and we can pass parameters using the query string.<br>The 3) would be also good.<br>An alternative would be  use QgsDataSourceURI like a container for QUri, in <br>

this manner we can define our interface to access the uri informations.<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Other issues:<br>
  - should it be possible to pass via URI also layer style hints? <br></blockquote><div>I don&#39;t know, probably yes.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


  - how the QGIS should recognize layer type of a dropped URI? Should<br>
it be a param in URI or the QGIS should recognize that from a provider<br>
key (asking provider)?<br></blockquote><div>IMHO no, it should be the provider which takes care of this. <br clear="all"><br>Cheers.<br></div></div><br>-- <br>Giuseppe Sucameli<br><br>