Package org.geotools.coverage.grid.io.imageio

Examples of org.geotools.coverage.grid.io.imageio.IIOMetadataDumper


            writer.dispose();
   
            // read
            final GeoTiffReader reader = new GeoTiffReader(geotiff);
            if(TestData.isInteractiveTest()){
                IIOMetadataDumper iIOMetadataDumper = new IIOMetadataDumper(
                        ((GeoTiffReader) reader).getMetadata()
                                        .getRootNode());
                System.out.println(iIOMetadataDumper.getMetadata())
            }
            assertTrue(CRS.findMathTransform(reader.getCrs(), DefaultGeographicCRS.WGS84,true).isIdentity()); // more lenient towards metadata differences
            assertTrue(CRS.equalsIgnoreMetadata(reader.getCrs(), DefaultGeographicCRS.WGS84));
  }
View Full Code Here


    // /////////////////////////////////////////////////////////////////////
    //
    // Play with metadata
    //
    // /////////////////////////////////////////////////////////////////////
    IIOMetadataDumper metadataDumper = new IIOMetadataDumper(((GeoTiffReader) reader).getMetadata().getRootNode());
    if (TestData.isInteractiveTest()) {
      LOGGER.info(metadataDumper.getMetadata());
    } else
      metadataDumper.getMetadata();

    // /////////////////////////////////////////////////////////////////////
    //
    // Read the original coverage.
    //
View Full Code Here

            // getting a reader
            GeoTiffReader reader = new GeoTiffReader(noCrs);
           
            if(TestData.isInteractiveTest()){
                            IIOMetadataDumper iIOMetadataDumper = new IIOMetadataDumper(
                                            ((GeoTiffReader) reader).getMetadata()
                                                            .getRootNode());
                            System.out.println(iIOMetadataDumper.getMetadata());           
            }
            // reading the coverage
            GridCoverage2D coverage1 = (GridCoverage2D) reader.read(null);

            // check coverage and crs
View Full Code Here

              buffer.append("GG: ").append(
                  coverage.getGridGeometry().toString()).append("\n");
            }
            // display metadata
            if (org.geotools.TestData.isExtensiveTest()) {
              IIOMetadataDumper iIOMetadataDumper = new IIOMetadataDumper(
                  ((GeoTiffReader) reader).getMetadata()
                      .getRootNode());
              buffer.append("TIFF metadata: ").append(
                  iIOMetadataDumper.getMetadata()).append("\n");
            }
           
            // layout checks
            final ImageLayout layout = reader.getImageLayout();
            assertNotNull(layout);
View Full Code Here

TOP

Related Classes of org.geotools.coverage.grid.io.imageio.IIOMetadataDumper

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.