Hello Martin,

See this piece of code:

DefaultMetadata metadata = new DefaultMetadata();

Anchor srsAnchor = new Anchor();
srsAnchor.setHRef(new URI("http://www.opengis.net/def/crs/EPSG/0/4326";));
srsAnchor.setTitle(new SimpleInternationalString("WGS84"));
srsAnchor.setLabel("4326");

NamedIdentifier namedIdentifier = new NamedIdentifier(null, "EPSG", srsAnchor, null, null);
ReferenceSystemMetadata rsm = new ReferenceSystemMetadata(namedIdentifier);
metadata.setReferenceSystemInfo(Arrays.asList(rsm));

System.out.println(XML.marshal(metadata));

Exception is raised when instantiating the NamedIdentifier.
But it may be that i'm not using the code in the right way, if it's the case please tell me how i could specify an Anchor for the identifier.

Emmanuel

Le 30/07/2015 16:03, Martin Desruisseaux a écrit :
Hello Emmanuel

The exception that you got looks like a bug. Do you have a small XML
example that reproduce it?

     Martin


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