This method is useful for querying and updating only some dimensions. For example in order to expand only the horizontal component of a four dimensional (x,y,z,t) envelope, one can use:
{@preformat javaenvelope.subEnvelope(0, 2).add(myPosition2D);}If the sub-envelope needs to be independent from the original envelope, use the following idiom: {@preformat javaGeneralEnvelope copy = envelope.subEnvelope(0, 2).clone();}The sub-envelope is initialized with a {@code null} {@linkplain #getCoordinateReferenceSystem() CRS}. This method does not compute a sub-CRS because it may not be needed, or the sub-CRS may be already known by the caller. @param beginIndex The index of the first valid ordinate value of the corners. @param endIndex The index after the last valid ordinate value of the corners. @return The sub-envelope of dimension {@code endIndex - beginIndex}. @throws IndexOutOfBoundsException If an index is out of bounds.
|
|
|
|
|
|