I am using Genetwork v2.6.3.
I am trying to submit a GetRecord request with an OGC filter in order to select data on the basis of tempExtent_begin (both date and time).
I tried the following query, but they gave me the same results.
--- DATE AND TIME
<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:gmd="http://www.isotc211.org/2005/gmd" service="CSW" outputSchema="http://www.isotc211.org/2005/gmd" version="2.0.2" resultType="results" outputFormat="application/xml" startPosition="1" maxRecords="30">
<csw:Query typeNames="gmd:MD_Metadata">
<ElementSetName>summary</ElementSetName>
<csw:Constraint version="1.1.0">
<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<PropertyIsGreaterThanOrEqualTo>
<PropertyName>tempExtent_begin</PropertyName>
<Literal>2010-10-14T16:42:00</Literal>
</PropertyIsGreaterThanOrEqualTo>
</Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
--- DATE
<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:gmd="http://www.isotc211.org/2005/gmd" service="CSW" outputSchema="http://www.isotc211.org/2005/gmd" version="2.0.2" resultType="results" outputFormat="application/xml" startPosition="1" maxRecords="30">
<csw:Query typeNames="gmd:MD_Metadata">
<ElementSetName>summary</ElementSetName>
<csw:Constraint version="1.1.0">
<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<PropertyIsGreaterThanOrEqualTo>
<PropertyName>tempExtent_begin</PropertyName>
<Literal>2010-10-14</Literal>
</PropertyIsGreaterThanOrEqualTo>
</Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
I am wondering if the problem could be due to the format of the date&time in the Metadata (Format YYYY-MM-DDThh:mm:ss).
Thanks in advance for the help.
Raffaella
--
________________________________________
Raffaella Ratti
Earth Observation Dept
Tel.: +39.0238048.205
Fax: +39.023086458
Email: rratti@anonymised.com
CGS S.p.A.
Compagnia Generale per lo Spazio
An OHB Technology Company
Via Gallarate, 150
20151 Milano MI - Italy
Website: www.cgspace.it
<< Le informazioni contenute in questo messaggio di posta elettronica e relativi allegati sono riservate e confidenziali e ne è vietata la diffusione in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invitiamo ad eliminarlo e a darcene gentile comunicazione. Quanto precede ai fini del rispetto delle Legge 675/96 e del Decreto Legislativo 30/06/2003 n.196, sulla tutela dei dati personali>>
<< This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your co-operation. Please contact our IT Helpdesk on +3902380481 or email ml_servizi.informatici@anonymised.com if you need assistance>>