<div dir="ltr">All,<div><br></div><div>This is very useful, thanks.  The S57 driver does appear to give the layers by names that I recognize:</div><div><br></div><div>INFO: Open of `C:\collab\dasktest\data_dir\13238_FFF.000'<br>      using driver `S57' successful.<br>1: DSID (None)<br>2: LNDARE<br>3: LNDELV<br>4: SBDARE<br>5: UWTROC (Point)<br></div><div><br></div><div>I've found the QML format spec <a href="https://docs.qgis.org/3.16/en/docs/user_manual/appendices/qgis_file_formats.html">here</a>, but is there any guidance on starting from scratch?  Thanks again for all the help.</div><div><br></div><div>Eric</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 3, 2021 at 12:38 PM Martin Dobias <<a href="mailto:wonder.sk@gmail.com">wonder.sk@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Eric<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 3, 2021 at 5:48 PM Eric Younkin - NOAA Federal <<a href="mailto:eric.g.younkin@noaa.gov" target="_blank">eric.g.younkin@noaa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks for the quick reply.  This is for NOAA nautical chart symbology, following the s57/s52 spec.  You can see the symbology in the online viewer <a href="https://www.nauticalcharts.noaa.gov/ENCOnline/enconline.html" target="_blank">here</a>.  It is basically a very complex spec that we generated for display in a wxPython widget a long time ago using GDAL 1.x commands.  S57 is already an existing OGR driver, although I do not know what exactly that driver does.  I do know that it does not somehow generate the symbology of the data for you to then render.<div><br></div><div>The vector data would be a combination of area/line/point features, and I don't think it would be a fit for the Mesh layer.</div><div><br></div><div>We'd like to make this symbology available in QGIS, so that users can drag in a s57 file and view the chart.  You can use one of our WMS services, but having the file support would be useful.  Ideally in a plugin layer, so that I can also use it in our other apps that use PYQGIS <font color="#000000">QgsMapCanvas widgets.</font></div></div></blockquote><div><br></div><div>Thanks for more background. In this case the mesh layer indeed is not useful. I have not worked with S57 before, but if there is OGR driver available, it should be relatively easy to load and style the data without a plugin layer. You do not need to rely on styling provided by OGR (if provided at all). It looks like you only need to load the data as a bunch of vector layers using OGR (one for each object type) and then apply styling to those individual layers. Styling of vector layers in QGIS is fairly strong, with features like rule-based rendering, data-defined properties and geometry generators you can handle even very complex styles. After preparing individual styles for vector layers, you can save them to .qml files, and then your plugin would have just a simple task of taking the input file(s), load layers and apply saved styles.<br></div><div><br></div><div>I would resort to writing a custom plugin layer only when when all other options fail - it is more complex, and generally the user experience is not great.</div><div><br></div><div>Regards</div><div>Martin</div><div><br></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span><font color="#0000ff">Eric Younkin<br>Physical Scientist<br></font></span></div><div dir="ltr"><span><font color="#0000ff">NOAA OCS, </font></span><span style="color:rgb(0,0,255);font-size:12.8px">Hydrographic Systems and Technology Branch</span></div><div dir="ltr"><span><font color="#0000ff">1315 East-West Highway</font></span></div><div dir="ltr"><span><font color="#0000ff">N/CS11, Room 6604<br>Silver Spring, MD 20910</font></span></div><div><span><font color="#0000ff">Office: </font></span><span style="font-family:arial,sans,sans-serif;font-size:13px;white-space:pre-wrap"><font color="#0000ff">240-847-8208</font></span></div><div dir="ltr"><span><font color="#0000ff">
Cell: 828-331-8197</font><br>
</span></div></div></div></div></div></div></div></div></div></div></div></div>