Package org.opengis.metadata

Examples of org.opengis.metadata.Metadata


         * If we are executing the "crs" sub-command, extract the first CRS.
         */
        if (hasUnexpectedFileCount(1, 1)) {
            return Command.INVALID_ARGUMENT_EXIT_CODE;
        }
        final Metadata metadata;
        final DataStore store = DataStores.open(files.get(0));
        try {
            metadata = store.getMetadata();
        } finally {
            store.close();
        }
        if (metadata == null) {
            return 0;
        }
        CoordinateReferenceSystem crs = null;
        if (isCRS) {
            for (final ReferenceSystem rs : metadata.getReferenceSystemInfo()) {
                if (rs instanceof CoordinateReferenceSystem) {
                    crs = (CoordinateReferenceSystem) rs;
                    break;
                }
            }
View Full Code Here


     * @throws DataStoreException If an error occurred while reading the NetCDF file.
     */
    @Test
    public void testGetMetadata() throws DataStoreException {
        final NetcdfStore store = create(NCEP);
        final Metadata metadata = store.getMetadata();
        assertSame("Should be cached.", metadata, store.getMetadata());
        store.close();
        MetadataReaderTest.compareToExpected(metadata);
    }
View Full Code Here

     *
     * @throws IOException Should never happen.
     */
    @Test
    public void testEmbedded() throws IOException {
        final Metadata metadata;
        final Decoder input = ChannelDecoderTest.createChannelDecoder(NCEP);
        try {
            metadata = new MetadataReader(input).read();
        } finally {
            input.close();
View Full Code Here

     *
     * @throws IOException Should never happen.
     */
    @Test
    public void testUCAR() throws IOException {
        final Metadata metadata;
        final Decoder input = new DecoderWrapper(TestCase.LISTENERS, new NetcdfDataset(open(NCEP)));
        try {
            metadata = new MetadataReader(input).read();
        } finally {
            input.close();
View Full Code Here

TOP

Related Classes of org.opengis.metadata.Metadata

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.