src/main/java/ucar/geoapi/NetcdfProjection.java
private static void ensureTwoDimensional(final DirectPosition point) throws MismatchedDimensionException {
        if (point != null && point.getDimension() != 2) {
            throw new MismatchedDimensionException("All given positions shall be two-dimensional.");
        }
    }
/**
     * Ensures that the given position is two-dimensional.
     *
     * @param  point  the position to verify, or {@code null}.
     * @throws MismatchedDimensionException if the given position is not two-dimensional.
     */
Ensures that the given position is two-dimensional.
@param  point  the position to verify, or  null.
@throws MismatchedDimensionException if the given position is not two-dimensional.
Ensures that the given position is two - dimensional . @param point the position to verify or null . @throws MismatchedDimensionException if the given position is not two - dimensional .
private static void ensureTwoDimensional(final DirectPosition point) throws MismatchedDimensionException {
        if (point != null && point.getDimension() != 2) {
            throw new MismatchedDimensionException("All given positions shall be two-dimensional.");
        }
    }
private static void ensureTwoDimensional ( final DirectPosition point ) throws MismatchedDimensionException { if ( point != null && point . getDimension ( ) != 2 ) { throw new MismatchedDimensionException ( "All given positions shall be two-dimensional." ) ; } }
Ensures that the given position is two-dimensional.
Ensures that the given position is two - dimensional .