Le 16/11/2022 à 14:07, andy a écrit :
Hi Even,
On Wed, 16 Nov 2022 at 14:00, Even Rouault
<[email protected]> wrote:
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.
If I use `dc:title` in this XML query
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:title</ogc:PropertyName><ogc:Literal>strutture</ogc:Literal></ogc:PropertyIsLike></ogc:Filter></csw:Constraint></csw:Query></csw:GetRecords>'
https://geodati.gov.it/RNDT/csw
I have some results.
If I use OGR
ogrinfo --debug on -ro -al
"CSW:http://www.pcn.minambiente.it/geoportal/csw" -where "title LIKE
'strutture'"
I have this error:
ERROR 1: "title" not recognised as an available field.
as if title were not interpreted as `dc:title`.
Is this a bug in the server?
No, title is not in the lists of hardcoded fields by the OGR CSW driver.
Probably a fix/improvement to do in the driver.
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.
Than you
--
___________________
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
--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev