Well, i found my issue, i was trying also set up the DateInfo as per
anticipated for ISO 19115:2014... together with this information the
/setDateStamp /had no effect.
Le 29/07/2015 17:09, Martin Desruisseaux a écrit :
Hello Emmanuel
I just tried the following code with 0.6-jdk8-SNAPSHOT:
DefaultMetadata metadata = new DefaultMetadata();
metadata.setDateStamp(new Date());
System.out.println(XML.marshal(metadata));
and I got (simplified):
<gmd:MD_Metadata>
<gmd:dateStamp>
<gco:DateTime>2015-07-29T17:02:09.546+02:00</gco:DateTime>
</gmd:dateStamp>
</gmd:MD_Metadata>
Is there an other information missing? If the above seems okay, could
you post a code snippet reproducing the problem that you observe?
Thanks,
Martin
Le 29/07/15 15:09, Emmanuel Blondel a écrit :
Hello,
I'm currently using 0.6-jdk7-SNAPSHOT
I'm aware that some changes have been made sometimes ago to implement
the ISO 19115:2014. As a consequence, the /setDateStamp/ method is
now deprecated (as other methods suchas /setParentIdentifier/).
However, for backward compatibility to ISO 19115:2003, i would have
expected that we can still marshall such elements. Actually it is the
case for most of them (e.g. /parentIdentifier/), but for some reason,
if i set use /setDateStamp/, the /dateStamp/ is not marshalled
anymore (while i specify it in my /DefaultMetadata/) which causes
compatibility issues with ISO 19115:2003 and INSPIRE validation.
Could you have a look?
Thanks in advance,
Emmanuel
--
*Emmanuel Blondel*
International Consultant | CEO
/Geographic Information Systems in Agronomy, Environment, Fishery &
Marine Sciences/
41, Avenue du Vacayrial
81370 Saint Sulpice la Pointe, France
Tel: +33 (0) 6 45 97 87 52
Email: [email protected] <mailto:[email protected]>