Package org.geotools.coverage.io.CoverageSource

Examples of org.geotools.coverage.io.CoverageSource.SpatialDomain


        assertTrue(source.getAdditionalDomains().isEmpty());
        assertTrue(source.getDimensionDescriptors().isEmpty());
        assertNull(source.getVerticalDomain());
        assertNotNull(source.getTemporalDomain());

        SpatialDomain spatialDomain = source.getSpatialDomain();
        assertNotNull(spatialDomain);
        assertTrue(CRS.equalsIgnoreMetadata(spatialDomain.getCoordinateReferenceSystem2D(), WGS84));
        assertEquals(RasterLayoutTest.testRasterLayout, spatialDomain
                .getRasterElements(false, null).iterator().next());

        assertNotNull(crs);
        assertEquals(WGS84, crs);
View Full Code Here


                        }
                        LOGGER.info(overallVertical.toString());
                    }

                    // HORIZONTAL DOMAIN
                    final SpatialDomain spatialDomain = gridSource.getSpatialDomain();
                    if (spatialDomain == null) {
                        LOGGER.info("Horizontal domain is null");
                    } else {
                        // print the horizontal domain elements
                        final CoordinateReferenceSystem crs2D = spatialDomain.getCoordinateReferenceSystem2D();
                        assert crs2D != null;
                        final MathTransform2D g2w = spatialDomain.getGridToWorldTransform(null);
                        assert g2w != null;
                        final Set<? extends BoundingBox> spatialElements = spatialDomain.getSpatialElements(true, null);
                        assert spatialElements != null && !spatialElements.isEmpty();

                        final StringBuilder buf = new StringBuilder();
                        buf.append("Horizontal domain is as follows:\n");
                        buf.append("G2W:").append("\t").append(g2w).append("\n");
View Full Code Here

TOP

Related Classes of org.geotools.coverage.io.CoverageSource.SpatialDomain

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.