[Qgis-developer] URI

Martin Dobias wonder.sk at gmail.com
Sat May 28 06:01:35 EDT 2011


Hi Radim

On Wed, May 25, 2011 at 2:37 PM, Radim Blazek <radim.blazek at gmail.com> wrote:
> Some possible solutions:
> 1) minimal:
>  - add WMS additional params somehow to URI + parsing in WMS provider
> (it is not clear to me why it was not done this way when WMS was
> implemented)
>  - encode / decode provider key + uri as single string only for drag and drop
> 2) maximal A:
>  - use QUrl for all providers with providers key as scheme
> 3) maximal B:
>  - use modified QgsDataSourceURI (it is not generic, works with set
> of known params only) for all params including provider key

2 or 3 would be my choices with slight preference to 2 since
everything can be encoded into QUrl, so we do not have to
implement/improve custom parsing (as would be necessary in option 3).
For simple creation of URIs we can provide functions that would
generate the QUrl instances easily.


Bye
Martin


More information about the Qgis-developer mailing list