Package org.apache.sis.metadata.iso.constraint

Examples of org.apache.sis.metadata.iso.constraint.DefaultConstraints


     */
    @Test
    public void testConstraintsToAFNOR() {
        Constraints std, fra;

        std = new DefaultConstraints("Some constraints.");
        fra = (Constraints) FrenchProfile.toAFNOR(std);
        assertNotSame("Expected a copy.", std, fra);
        assertSame   ("Already an AFNOR instance.", fra, FrenchProfile.toAFNOR(fra));
        assertEquals ("Some constraints.", getSingleton(fra.getUseLimitations()).toString());

View Full Code Here


         */
        final DefaultDataIdentification info = new DefaultDataIdentification(citation,
                "NCEP SST Global 5.0 x 2.5 degree model data", null, null);
        info.getSpatialRepresentationTypes().add(SpatialRepresentationType.GRID);
        info.getDescriptiveKeywords().add(keywords);
        info.getResourceConstraints().add(new DefaultConstraints("Freely available"));
        info.getExtents().add(Extents.WORLD);
        return info;
    }
View Full Code Here

TOP

Related Classes of org.apache.sis.metadata.iso.constraint.DefaultConstraints

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.