[gdal-dev] A CSW query that seems to me works badly

andy aborruso at gmail.com
Wed Nov 16 02:45:54 PST 2022


Hi Brad,

It looks like the filter is doing something (since without it, I get about
> a thousand times the results - 22700 vs 22).


I think that when I have more words, it works in OR.
I don't know if this is the right/standard way to work.

If I apply double quotes - <ogc:Literal>"Impianti e strutture
ricettive"</ogc:Literal> - I have 0 results, that is the right result:

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="
http://www.opengis.net/cat/csw/2.0.2" xmlns:gml="http://www.opengis.net/gml"
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="
http://purl.org/dc/terms/" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:ows="http://www.opengis.net/ows" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd"><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:Subject</ogc:PropertyName><ogc:Literal>"Impianti
e strutture
ricettive"</ogc:Literal></ogc:PropertyIsLike></ogc:Filter></csw:Constraint></csw:Query></csw:GetRecords>'
https://geodati.gov.it/RNDT/csw

>

-- 
___________________

Andrea Borruso
website: https://medium.com/tantotanto
38° 7' 48" N, 13° 21' 9" E, EPSG:4326
___________________

"cercare e saper riconoscere chi e cosa,
 in mezzo all’inferno, non è inferno,
e farlo durare, e dargli spazio"

Italo Calvino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20221116/d99b6e08/attachment.htm>


More information about the gdal-dev mailing list