src/test/java/ucar/geoapi/NetcdfCRSTest.java
@Test
    public void testGeographic2D() throws IOException {
        try (NetcdfDataset file = openDataset(TestData.NETCDF_2D_GEOGRAPHIC)) {
            crs = wrap(assertSingleton(file.getCoordinateSystems()), file);
            assertInstanceOf("Expected a geographic CRS.", GeographicCRS.class, crs);
            final EllipsoidalCS ellp = ((GeographicCRS) crs).getCoordinateSystem();
            assertAxisDirectionsEqual("GeographicCRS.cs", ellp, EAST, NORTH);
            assertAxisEquals("lon", Units.DEGREE, ellp.getAxis(0));
            assertAxisEquals("lat", Units.DEGREE, ellp.getAxis(1));
            assertNameEquals("lat lon", crs);
        }
    }
/**
     * Tests the geographic CRS declared in the {@link TestData#NETCDF_2D_GEOGRAPHIC} file.
     * This method tests the following conditions:
     *
     * <ul>
     *   <li>The {@linkplain #crs CRS} shall be an instance of {@link GeographicCRS}.</li>
     *   <li>The axis directions shall be ({@link AxisDirection#EAST EAST}, {@link AxisDirection#NORTH NORTH}).</li>
     *   <li>The axis units shall be (<var>degrees</var>, <var>degrees</var>).</li>
     *   <li>The {@linkplain TemporalDatum#getOrigin() temporal datum origin} shall be
     *       January 1st, 1992 at midnight UTC.</li>
     * </ul>
     *
     * @throws IOException if an error occurred while reading the test file.
     */
Tests the geographic CRS declared in the  TestData#NETCDF_2D_GEOGRAPHIC file.
This method tests the following conditions.


The  #crs CRS shall be an instance of  GeographicCRS.
The axis directions shall be ( AxisDirection#EAST EAST,  AxisDirection#NORTH NORTH).
The axis units shall be (degrees, degrees).
The  TemporalDatum#getOrigin() temporal datum origin shall be
January 1st, 1992 at midnight UTC.


@throws IOException if an error occurred while reading the test file.
Tests the geographic CRS declared in the TestData#NETCDF_2D_GEOGRAPHIC file . This method tests the following conditions . The #crs CRS shall be an instance of GeographicCRS . The axis directions shall be ( AxisDirection#EAST EAST AxisDirection#NORTH NORTH ) . The axis units shall be ( degrees degrees ) . The TemporalDatum#getOrigin () temporal datum origin shall be January 1st 1992 at midnight UTC . @throws IOException if an error occurred while reading the test file .
@Test
    public void testGeographic2D() throws IOException {
        try (NetcdfDataset file = openDataset(TestData.NETCDF_2D_GEOGRAPHIC)) {
            crs = wrap(assertSingleton(file.getCoordinateSystems()), file);
            assertInstanceOf("Expected a geographic CRS.", GeographicCRS.class, crs);
            final EllipsoidalCS ellp = ((GeographicCRS) crs).getCoordinateSystem();
            assertAxisDirectionsEqual("GeographicCRS.cs", ellp, EAST, NORTH);
            assertAxisEquals("lon", Units.DEGREE, ellp.getAxis(0));
            assertAxisEquals("lat", Units.DEGREE, ellp.getAxis(1));
            assertNameEquals("lat lon", crs);
        }
    }
@ Test public void testGeographic2D ( ) throws IOException { try ( NetcdfDataset file = openDataset ( TestData . NETCDF_2D_GEOGRAPHIC ) ) { crs = wrap ( assertSingleton ( file . getCoordinateSystems ( ) ) , file ) ; assertInstanceOf ( "Expected a geographic CRS." , GeographicCRS . class , crs ) ; final EllipsoidalCS ellp = ( ( GeographicCRS ) crs ) . getCoordinateSystem ( ) ; assertAxisDirectionsEqual ( "GeographicCRS.cs" , ellp , EAST , NORTH ) ; assertAxisEquals ( "lon" , Units . DEGREE , ellp . getAxis ( 0 ) ) ; assertAxisEquals ( "lat" , Units . DEGREE , ellp . getAxis ( 1 ) ) ; assertNameEquals ( "lat lon" , crs ) ; } }
Tests the geographic CRS declared in the {@link TestData#NETCDF_2D_GEOGRAPHIC} file.
Tests the geographic CRS declared in the { @link TestData#NETCDF_2D_GEOGRAPHIC } file .