Package org.geotools.coverage.io

Examples of org.geotools.coverage.io.CoverageAccess.access()


        final List<Name> names = access.getNames(null);
        final Name coverageName = names.get(0);
        assertEquals(1, names.size());
        assertEquals(TestCoverageSourceDescriptor.TEST_NAME, coverageName);

        final CoverageSource source = access.access(TestCoverageSourceDescriptor.TEST_NAME, null,
                AccessType.READ_ONLY, null, null);
        CoordinateReferenceSystem crs = source.getCoordinateReferenceSystem();
        assertEquals(TestCoverageSourceDescriptor.TEST_NAME, source.getName(null));

        // Test dimensions and descriptors
View Full Code Here


                }
                // get the names
                final List<Name> names = access.getNames(null);
                for (Name name : names) {
                    // get a source
                    final CoverageSource gridSource = access.access(name, null, AccessType.READ_ONLY, null, null);
                    if (gridSource == null) {
                        throw new IOException("Unable to access");
                    }
                    LOGGER.info("Connected to coverage: " + name.toString());
View Full Code Here

 
              // get the names
              final List<Name> names = access.getNames(null);
              for (Name name : names) {
                  // get a source
                  final CoverageSource gridSource = access.access(name, null,AccessType.READ_ONLY, null, null);
                  if (gridSource == null)
                      throw new IOException("Unable to access");                 
                  LOGGER.info("Connected to coverage: "+name.toString());
 
                  // TEMPORAL DOMAIN
View Full Code Here

                // get the names
                List<Name> names = access.getNames(null);
                for (Name name : names) {
                    // get a source
                    CoverageSource gridSource = access.access(name, null,
                            AccessType.READ_ONLY, null, null);
                    if (gridSource == null)
                        throw new IOException("");
                    // create a request
                    // reading the coverage
View Full Code Here

                        if (access == null)
                            throw new IOException("");

                        //get the names
                        names = access.getNames(null);
                        gridSource = access.access(names.iterator().next(),
                                null, AccessType.READ_ONLY, null, null);
                        if (gridSource == null)
                            throw new IOException("");
                        //create a request
                        // reading the coverage
View Full Code Here

                .getProgress());

            for (Name name : names) {
              // get a source
              watch = new TestProgress();
              final CoverageSource gridSource = access.access(
                  name, null, AccessType.READ_ONLY, null,
                  watch);
              assertEquals("access progress", 1.0f, watch
                  .getProgress());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.