@Test public void testWgs84() throws TransformException, FactoryException { String testedWkt = "GEOGCS[\"WGS 84\",\n" + " DATUM[\"WGS_1984\",\n" + " SPHEROID[\"WGS 84\",6378137,298.257223563,\n" + " AUTHORITY[\"EPSG\",\"7030\"]],\n" + " AUTHORITY[\"EPSG\",\"6326\"]],\n" + " PRIMEM[\"Greenwich\",0,\n" + " AUTHORITY[\"EPSG\",\"8901\"]],\n" + " UNIT[\"degree\",0.01745329251994328,\n" + " AUTHORITY[\"EPSG\",\"9122\"]],\n" + " AUTHORITY[\"EPSG\",\"4326\"]]"; CoordinateReferenceSystem testedCrs = CRS.parseWKT(testedWkt); GeoCoding geoCoding = new CrsGeoCoding(testedCrs, new Rectangle(10, 10, 10, 10), new AffineTransform()); DefaultGeographicCRS testedDefaultCrs = (DefaultGeographicCRS) geoCoding.getGeoCRS(); Ellipsoid testedSpheroid = testedDefaultCrs.getDatum().getEllipsoid(); Ellipsoid wgs84Spheroid = DefaultGeographicCRS.WGS84.getDatum().getEllipsoid(); assertTrue(wgs84Spheroid.getSemiMinorAxis() == testedSpheroid.getSemiMinorAxis()); assertTrue(wgs84Spheroid.getSemiMajorAxis() == testedSpheroid.getSemiMajorAxis()); assertSame(DefaultGeographicCRS.WGS84.getCoordinateSystem(), testedDefaultCrs.getCoordinateSystem()); }
@Override public Datum getDatum() { return datum; }
CrsGeoCoding extends AbstractGeoCoding { @Override public Datum getDatum() { return datum; } }
CrsGeoCoding extends AbstractGeoCoding { @Override public Datum getDatum() { return datum; } CrsGeoCoding(CoordinateReferenceSystem mapCRS,
                        int imageWidth,
                        int imageHeight,
                        double easting,
                        double northing,
                        double pixelSizeX,
                        double pixelSizeY);  CrsGeoCoding(CoordinateReferenceSystem mapCRS,
                        int imageWidth,
                        int imageHeight,
                        double easting,
                        double northing,
                        double pixelSizeX,
                        double pixelSizeY,
                        double referencePixelX,
                        double referencePixelY);  CrsGeoCoding(final CoordinateReferenceSystem mapCRS,
                        final Rectangle imageBounds,
                        final AffineTransform imageToMap); }
CrsGeoCoding extends AbstractGeoCoding { @Override public Datum getDatum() { return datum; } CrsGeoCoding(CoordinateReferenceSystem mapCRS,
                        int imageWidth,
                        int imageHeight,
                        double easting,
                        double northing,
                        double pixelSizeX,
                        double pixelSizeY);  CrsGeoCoding(CoordinateReferenceSystem mapCRS,
                        int imageWidth,
                        int imageHeight,
                        double easting,
                        double northing,
                        double pixelSizeX,
                        double pixelSizeY,
                        double referencePixelX,
                        double referencePixelY);  CrsGeoCoding(final CoordinateReferenceSystem mapCRS,
                        final Rectangle imageBounds,
                        final AffineTransform imageToMap); @Override MathTransform getImageToMapTransform(); @Override boolean transferGeoCoding(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef); @Override boolean canGetGeoPos(); @Override boolean canGetPixelPos(); @Override void dispose(); @Override Datum getDatum(); @Override GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos); @Override PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos); final void getPixels(final int x1, final int y1, final int w, final int h,
                                final float[] latPixels, final float[] lonPixels); @Override boolean isCrossingMeridianAt180(); @Override String toString(); }
CrsGeoCoding extends AbstractGeoCoding { @Override public Datum getDatum() { return datum; } CrsGeoCoding(CoordinateReferenceSystem mapCRS,
                        int imageWidth,
                        int imageHeight,
                        double easting,
                        double northing,
                        double pixelSizeX,
                        double pixelSizeY);  CrsGeoCoding(CoordinateReferenceSystem mapCRS,
                        int imageWidth,
                        int imageHeight,
                        double easting,
                        double northing,
                        double pixelSizeX,
                        double pixelSizeY,
                        double referencePixelX,
                        double referencePixelY);  CrsGeoCoding(final CoordinateReferenceSystem mapCRS,
                        final Rectangle imageBounds,
                        final AffineTransform imageToMap); @Override MathTransform getImageToMapTransform(); @Override boolean transferGeoCoding(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef); @Override boolean canGetGeoPos(); @Override boolean canGetPixelPos(); @Override void dispose(); @Override Datum getDatum(); @Override GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos); @Override PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos); final void getPixels(final int x1, final int y1, final int w, final int h,
                                final float[] latPixels, final float[] lonPixels); @Override boolean isCrossingMeridianAt180(); @Override String toString();  }