[gdal-dev] A CSW query that seems to me works badly
Brad Hards
bradh at frogmouth.net
Tue Nov 15 15:11:45 PST 2022
On Wednesday, 16 November 2022 9:21:54 AM AEDT Even Rouault wrote:
> Andrea,
>
> It seems to me that the server ignores the filter, which is likely a bug
> given that its GetCapabilies response includes a
> <ogc:ComparisonOperator>Like</ogc:ComparisonOperator>.
It looks like the filter is doing something (since without it, I get about a
thousand times the results - 22700 vs 22).
However its not clear its working well:
ogrinfo -ro -al "CSW:http://geodati.gov.it/RNDT/csw" -where "subject LIKE
'commerciale'"
INFO: Open of `CSW:http://geodati.gov.it/RNDT/csw'
using driver `CSW' successful.
Layer name: records
Geometry: Polygon
Feature Count: 1
Extent: (6.620000, 44.060000) - (9.210000, 46.459999)
Layer SRS WKT:
GEOGCRS["WGS 84",
DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433]],
CS[ellipsoidal,2],
AXIS["geodetic latitude (Lat)",north,
ORDER[1],
ANGLEUNIT["degree",0.0174532925199433]],
AXIS["geodetic longitude (Lon)",east,
ORDER[2],
ANGLEUNIT["degree",0.0174532925199433]],
ID["EPSG",4326]]
Data axis to CRS axis mapping: 2,1
Geometry Column = boundingbox
identifier: String (0.0)
other_identifiers: StringList (0.0)
type: String (0.0)
subject: String (0.0)
other_subjects: StringList (0.0)
references: String (0.0)
other_references: StringList (0.0)
modified: String (0.0)
abstract: String (0.0)
date: String (0.0)
language: String (0.0)
rights: String (0.0)
format: String (0.0)
other_formats: StringList (0.0)
creator: String (0.0)
source: String (0.0)
anytext: String (0.0)
OGRFeature(records):1
identifier (String) = r_piemon:982e8c65-99df-4c7a-a8fe-0908fd06ad6f
other_identifiers (StringList) = (1:{CC884939-E2DC-4313-BEE0-7A9AEAD98ED6})
type (String) = downloadableData
subject (String) = RNDT
other_subjects (StringList) =
(9:EU,edificato,residenziale,produttivo,commerciale,ppr,opendata,Regionale,planningCadastre)
references (String) = https://www.datigeo-piem-download.it/direct/
Geoportale/RegionePiemonte/PPR/edifici_PPR_corretto.zip
other_references (StringList) = (2:https://www.geoportale.piemonte.it/
geonetwork/srv/api/records/r_piemon:982e8c65-99df-4c7a-a8fe-0908fd06ad6f/
attachments/edifici_ppr_corretto_s.png,https://geodati.gov.it/geoportalRNDTPA/
csw?getxml=%7BCC884939-E2DC-4313-BEE0-7A9AEAD98ED6%7D)
modified (String) = 2022-11-15T14:51:16+01:00
abstract (String) = Il dato contiene l'aggiornamento degli edifici e altri
manufatti derivati dalle diverse edizioni della CTRN. I dati sono stati
prodotti a partire da una selezione di elementi derivati dalla CTRN (edifici
residenziali, edifici produttivi commerciali, cimiteri) e successivamente
aggiornati attraverso fotointerpretazione di ortofoto. Il dataset deriva dallo
shape file elaborato dal CSI per il Progetto Rapporto Stato Territorio ed è
stato modificato dal Settore Territorio e Paesaggio selezionando soltanto
l'edificato residenziale e produttivo-commerciale ed apportando alcune modifiche
source (String) = {FE705F35-5AD1-4570-A0FD-E1E882A89496}
POLYGON ((6.62 44.06,9.21 44.06,9.21 46.4599990844727,6.62
46.4599990844727,6.62 44.06))
So its perhaps matching other_subjects or abstract field instead?
Brad
More information about the gdal-dev
mailing list