However, can you clarify how it is specified the order of tags in the marshalled XML? I am currently trying to validate xml metadata with the inspire metadata validator (http://inspire-geoportal.ec.europa.eu/validator2/), and i get some issues related to the order of tags, under the "Schema validation issues", such as:

 *
   In content of element <RS_Identifier>: The content model does not
   allow element <Q{.../gmd}authority> to appear immediately after
   element <Q{.../gmd}codeSpace>. Expected <Q{.../gmd}version> or
   nothing. at column 31, line 171


Another issue (more funny maybe):

 *
   In content of element <CI_Citation>: The content model does not
   allow element <Q{.../gmd}identifier> to appear immediately after
   element <Q{.../gmd}alternateTitle>. It must be preceded by
   <Q{.../gmd}alternateTitle>. at column 38, line 179


I got these issues for the ReferenceSystemInfo, this after having specifying a non null /version /and one /alternateTitle/ for the epsg authority.

I also got an error (but INSPIRE specific this time), saying that the ReferenceSystem code should be an URI, and not a string:

 *
   The required metadata element "Coordinate Reference System" is
   present, but does not contain any of the coordinate reference system
   identifiers (EPSG URIs) required by the Technical Guidelines


Would you have any advice about the above? :-/
By chance would you know a better validation tool?
Does Apache SIS bring with a validator for ISO / INSPIRE ?

Thanks in advance,
Emmanuel

Le 29/07/2015 18:46, Emmanuel Blondel a écrit :
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]>

--
*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]>

Reply via email to