<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Le 16/11/2022 à 14:07, andy a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAHEdGZN80oTUBtgcSSD9dyC_fQ_EJX+fEBOpWO8idLoP2SkTJw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi Even,</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, 16 Nov 2022 at
14:00, Even Rouault <<a
href="mailto:even.rouault@spatialys.com"
moz-do-not-send="true" class="moz-txt-link-freetext">even.rouault@spatialys.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>
<p>No, that's not currently implemented in the driver. It
hardcodes "subject" to "dc:subject" and "title" to
"dc:title", and doesn't use SupportedISOQueryables.<br>
</p>
</div>
</blockquote>
</div>
If I use `dc:title` in this XML query
<div><br>
</div>
<div>curl -X POST -H "Content-Type: application/xml;
charset=UTF-8" -d '<?xml version="1.0"
encoding="UTF-8"?><csw:GetRecords resultType="results"
service="CSW" version="2.0.2" xmlns:csw="<a
href="http://www.opengis.net/cat/csw/2.0.2"
moz-do-not-send="true" class="moz-txt-link-freetext">http://www.opengis.net/cat/csw/2.0.2</a>"
xmlns:gml="<a href="http://www.opengis.net/gml"
moz-do-not-send="true" class="moz-txt-link-freetext">http://www.opengis.net/gml</a>"
xmlns:dc="<a href="http://purl.org/dc/elements/1.1/"
moz-do-not-send="true" class="moz-txt-link-freetext">http://purl.org/dc/elements/1.1/</a>"
xmlns:dct="<a href="http://purl.org/dc/terms/"
moz-do-not-send="true" class="moz-txt-link-freetext">http://purl.org/dc/terms/</a>"
xmlns:ogc="<a href="http://www.opengis.net/ogc"
moz-do-not-send="true" class="moz-txt-link-freetext">http://www.opengis.net/ogc</a>"
xmlns:ows="<a href="http://www.opengis.net/ows"
moz-do-not-send="true" class="moz-txt-link-freetext">http://www.opengis.net/ows</a>"
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance"
moz-do-not-send="true" class="moz-txt-link-freetext">http://www.w3.org/2001/XMLSchema-instance</a>"
xsi:schemaLocation="<a
href="http://www.opengis.net/cat/csw/2.0.2"
moz-do-not-send="true" class="moz-txt-link-freetext">http://www.opengis.net/cat/csw/2.0.2</a>
<a
href="http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd"
moz-do-not-send="true" class="moz-txt-link-freetext">http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd</a>"><csw:Query
typeNames="csw:Record"><csw:ElementSetName>full</csw:ElementSetName><csw:Constraint
version="1.1.0"><ogc:Filter><ogc:PropertyIsLike
wildCard="*" singleChar="_"
escapeChar="!"><ogc:PropertyName>dc:title</ogc:PropertyName><ogc:Literal>strutture</ogc:Literal></ogc:PropertyIsLike></ogc:Filter></csw:Constraint></csw:Query></csw:GetRecords>'
<a href="https://geodati.gov.it/RNDT/csw"
moz-do-not-send="true" class="moz-txt-link-freetext">https://geodati.gov.it/RNDT/csw</a></div>
<div><br>
</div>
<div>I have some results.</div>
<div><br>
</div>
<div>If I use OGR</div>
<div><br>
</div>
<div>ogrinfo --debug on -ro -al "CSW:<a
href="http://www.pcn.minambiente.it/geoportal/csw"
moz-do-not-send="true" class="moz-txt-link-freetext">http://www.pcn.minambiente.it/geoportal/csw</a>"
-where "title LIKE 'strutture'"</div>
<div><br>
</div>
<div>I have this error:</div>
<div><br>
</div>
<div>ERROR 1: "title" not recognised as an available field.</div>
<div><br>
</div>
<div>as if title were not interpreted as `dc:title`.</div>
<div><br>
</div>
<div>Is this a bug in the server?</div>
</div>
</blockquote>
<p>No, title is not in the lists of hardcoded fields by the OGR CSW
driver. Probably a fix/improvement to do in the driver.</p>
<p>If I recall well from git history, I coded the driver on a rainy
sunday afternoon 7 years ago, and it didn't receive much love
afterwards :-) There are certainly room for a lot of improvements.</p>
<blockquote type="cite"
cite="mid:CAHEdGZN80oTUBtgcSSD9dyC_fQ_EJX+fEBOpWO8idLoP2SkTJw@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>Than you<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>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr"><span
style="font-size:small">___________________</span><br>
</div>
<div dir="ltr"><span
style="font-size:small"><br>
</span></div>
<div dir="ltr">Andrea Borruso<br>
website: <a
href="https://medium.com/tantotanto"
target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://medium.com/tantotanto</a><br>
38° 7' 48" N, 13° 21' 9" E,
EPSG:4326<br>
<span style="font-size:small">___________________</span><br>
<br>
"cercare e saper riconoscere chi e
cosa,<br>
in mezzo all’inferno, non è
inferno, <br>
e farlo durare, e dargli spazio"<br>
<br>
Italo Calvino<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>