opendap/src/main/java/opendap/servers/SDGrid.java
public void setProjection(int dimension, int start, int stride, int stop)
            throws InvalidDimensionException, SBHException {
        try {
            DArray a = (DArray) getVar(0);
            DArrayDimension d = a.getDimension(dimension);
            d.setProjection(start, stride, stop);

            DArray map = (DArray) getVar(dimension + 1);
            DArrayDimension mapD = map.getDimension(0);
            mapD.setProjection(start, stride, stop);
        }
        catch (NoSuchVariableException e) {
            throw new InvalidDimensionException("SDGrid.setProjection(): Bad Value for dimension!: "
                    + e.getMessage());
        }
    }
public void setProjection(int dimension, int start, int stride, int stop)
            throws InvalidDimensionException, SBHException {
        try {
            DArray a = (DArray) getVar(0);
            DArrayDimension d = a.getDimension(dimension);
            d.setProjection(start, stride, stop);

            DArray map = (DArray) getVar(dimension + 1);
            DArrayDimension mapD = map.getDimension(0);
            mapD.setProjection(start, stride, stop);
        }
        catch (NoSuchVariableException e) {
            throw new InvalidDimensionException("SDGrid.setProjection(): Bad Value for dimension!: "
                    + e.getMessage());
        }
    }
public void setProjection ( int dimension , int start , int stride , int stop ) throws InvalidDimensionException , SBHException { try { DArray a = ( DArray ) getVar ( 0 ) ; DArrayDimension d = a . getDimension ( dimension ) ; d . setProjection ( start , stride , stop ) ; DArray map = ( DArray ) getVar ( dimension + 1 ) ; DArrayDimension mapD = map . getDimension ( 0 ) ; mapD . setProjection ( start , stride , stop ) ; } catch ( NoSuchVariableException e ) { throw new InvalidDimensionException ( "SDGrid.setProjection(): Bad Value for dimension!: " + e . getMessage ( ) ) ; } }
Set the projection information for this dimension. The internal <code>DArray</code> is
retrieved and then the <code>DArrayDimension</code>
associated with the <code>dimension</code> specified is retrieved and the <code>start</code>
<code>stride</code> and <code>stop</code> parameters are passed to its
<code>setProjection()</code> method.

@param dimension The dimension that is to be modified.
@param start     The starting point for the projection of this <code>DArrayDimension</code>.
@param stride    The size of the stride for the projection of this <code>DArrayDimension</code>.
@param stop      The stopping point for the projection of this <code>DArrayDimension</code>.
@see DArray
@see DArrayDimension
Set the projection information for this dimension . The internal <code > DArray< / code > is retrieved and then the <code > DArrayDimension< / code > associated with the <code > dimension< / code > specified is retrieved and the <code > start< / code > <code > stride< / code > and <code > stop< / code > parameters are passed to its <code > setProjection () < / code > method .