Thank you to both of you for your very valuable inputs.<br><br>I've browsed the ogrprovider code and found how to implement your proposal. Although I still haven't modified anything, I've made a few tries that seem encouraging.<br>
<br>Martin: I am hoping to reach an acceptable solution for opening S57 layers on demand soon. I will also have to set up svn to produce the actual patch appropriately.<br><br>Chris: The S52 implementation will obviously be the next step. Thank you for all this information (I had no idea the S52 was actually already coded somewhere... That's good news!)<br>
<br>See you soon.<br>Florian<br><br><div class="gmail_quote">On Sun, Jan 18, 2009 at 8:14 PM, Martin Dobias <span dir="ltr"><<a href="http://wonder.sk">wonder.sk</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Sun, Jan 18, 2009 at 6:52 PM, Chris h <<a href="mailto:chris123@magma.ca">chris123@magma.ca</a>> wrote:<br>

> On Sunday 18 January 2009 11:04:13 Florian El Ahdab wrote:<br>
</div><div class="Ih2E3d">>> - I believe Qgis doesn't use the S57 sublayers and that's why nothing gets<br>
>> displayed. Is there any chance that I am right? If I am right,<br>
><br>
> Your most likely correct.<br>
<br>
</div>Yes, QGIS always opens first sublayers and doesn't care about the rest.<br>
<div class="Ih2E3d"><br>
<br>
>> I would like<br>
>> to help with the implementation for this kind of problem. Can anyone in the<br>
>> dev team give me directions on where to begin (I have spent some time in<br>
>> the source and API of both Qgis and GDAL and feel I can contribute here...)<br>
><br>
> Perhaps a good start would be reviewing the submitted material above and then<br>
> following the directions and advice of the qgis development team.<br>
<br>
</div>First of all, a small change in OGR provider in QGIS will be needed to<br>
allow sublayers. This provider awaits a file as input string - let's<br>
add an optional parameter that would specify the layer inside the<br>
file, e.g.:<br>
/data/gis/s-57/ca49995b.000&layer=4<br>
(note the added "&layer=4")<br>
<br>
Then in GUI: when an input file for OGR provider is selected, check<br>
whether there's more than one sublayer - if so, open a dialog and let<br>
user select which sublayers he would like to see. Create input strings<br>
for OGR provider from the chosen sublayers and load them.<br>
<br>
Patches are always welcome :-)<br>
<font color="#888888"><br>
Martin<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</div></div></blockquote></div><br>