Package org.opengis.metadata.spatial

Examples of org.opengis.metadata.spatial.Dimension


                "<gmd:MD_Dimension xmlns:gmd=\"" + Namespaces.GMD + '"' +
                                 " xmlns:gco=\"" + Namespaces.GCO + "\">\n" +
                "  <gmd:dimensionSize gco:nilReason=\"unknown\"/>\n" +
                "</gmd:MD_Dimension>";

        final Dimension result = (Dimension) XML.unmarshal(expected);

        final Integer size = result.getDimensionSize();
        assertNotNull("Expected a sentinel value.", size);
        assertEquals ("Nil value shall be 0.",      Integer.valueOf(0), size);
        assertNotSame("Expected a sentinel value.", Integer.valueOf(0), size);
        assertSame("nilReason", NilReason.UNKNOWN, NilReason.forObject(size));
View Full Code Here

TOP

Related Classes of org.opengis.metadata.spatial.Dimension

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.