<div dir="ltr">Dear all,<div>I want to highlight some important issues about the current integration between GeoNode and PyCSW.</div><div><br></div><div>Other than a non-trivial security issue (basically the CSW exposes metadata for all Layers no matter if they are accessible or not by the user), one more, I would say, big issue is that currently is not possible to recognize the Layer "real name" from the metadata documents.</div><div><br></div><div>Let me provide an example. Here below a snippet of a DublinCore XML produced by PyCSW</div><div><br></div><div>...</div><div><div><csw:Record></div><div> <dc:identifier>941a8d7e-7159-11e7-b283-002215079c40</dc:identifier></div><div> <dc:title>san_andres_y_providencia_highway</dc:title></div><div> <dc:type>dataset</dc:type></div><div> <dc:subject/></div></div><div> ...</div><div> <dct:references scheme="WWW:DOWNLOAD-1.0-http--download"><a href="http://localhost:8080/geoserver/wms?request=GetLegendGraphic&format=image/png&WIDTH=20&HEIGHT=20&LAYER=geonode:san_andres_y_providencia_highway&legend_options=fontAntiAliasing:true;fontSize:12;forceLabels:on">http://localhost:8080/geoserver/wms?request=GetLegendGraphic&format=image/png&WIDTH=20&HEIGHT=20&LAYER=geonode:san_andres_y_providencia_highway&legend_options=fontAntiAliasing:true;fontSize:12;forceLabels:on</a></dct:references></div><div> <dct:references scheme="OGC:WMS"><a href="http://localhost:8080/geoserver/geonode/wms">http://localhost:8080/geoserver/geonode/wms</a></dct:references></div><div> <dct:references scheme="OGC:WFS"><a href="http://localhost:8080/geoserver/geonode/wfs">http://localhost:8080/geoserver/geonode/wfs</a></dct:references></div><div>...</div><div><br></div><div>(full XML here <a href="https://pastebin.com/Wu0vm79B">https://pastebin.com/Wu0vm79B</a>)</div><div><br></div><div>Seems to be good right? <b>Wrong!</b> There some important things missing here:</div><div><br></div><div>1. It is not possible to recognize the layer name at all; The element "title" is mapped to the resource title, meaning that whenever I change it on the metadata into a human readable fashion, I lose the layer name forever</div><div><br></div><div>2. Layer qualified name is missing; if the name had a namespace, like on GeoServer, it is not possible to know which is at all</div><div><br></div><div>3. WMS and WFS links cannot be used at all, since the layer name cannot be retrieved anywhere</div><div><br></div><div><b>Proposal</b></div><div><b><br></b></div><div>Following the notes written by Stephen Richard here <a href="https://github.com/geopython/pycsw/wiki/Geonode-notes">https://github.com/geopython/pycsw/wiki/Geonode-notes</a> </div><div><br></div><div>the proposal here would be to add more references</div><div><br></div><div>OGC:WMS-1.1.1-http-get-capabilities<br></div><div>OGC:WMS-1.3.0-http-get-capabilities<br></div><div>OGC:WMS-1.1.1-http-get-map<br></div><div>OGC:WMS-1.3.0-http-get-map<br></div><div><div>OGC:WMS-1.1.1-http-get-featureinfo<br></div><div>OGC:WMS-1.3.0-http-get-featureinfo<br></div></div><div><br></div><div>OGC:WFS-1.0.0-http-get-capabilities<br></div><div>OGC:WFS-1.0.0-http-describe-feature<br></div><div>OGC:WFS-1.0.0-http-get-feature<br></div><div><br></div><div>OGC:WCS-1.1.0-http-get-capabilities<br></div><div>OGC:WCS-1.1.0-http-describe-coverage<br></div><div>OGC:WCS-1.1.0-http-get-coverage</div><div>...</div><div><br></div><div>in order to let CSW being able to send correct links to the clients.</div><div><br></div><div>If there are no objections, I will create a PR accordingly related to the following ISSUE</div><div><br></div><div><a href="https://github.com/GeoNode/geonode/issues/2720#issuecomment-262829872">https://github.com/GeoNode/geonode/issues/2720#issuecomment-262829872</a><br></div><div><br></div><div>Please comment on this.</div><div><br></div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Regards,</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Alessio Fabiani</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">==</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">GeoServer Professional Services from the experts! Visit <a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">==</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Ing. Alessio Fabiani</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">@alfa7691</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Founder/Technical Lead</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">GeoSolutions S.A.S.</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Via di Montramito 3/A</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">55054 Massarosa (LU)</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Italy</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">phone: +39 0584 962313</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">fax: +39 0584 1660272</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">mob: +39 331 6233686</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">-------------------------------------------------------</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"> </span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.</span></p></span></div></div></div></div></div></div></div></div>
</div></div>