public BoundingBox transform ( ProjectionTransform transform ) { BoundingBox transformed = this ; if ( transform . isSameProjection ( ) ) { transformed = new BoundingBox ( transformed ) ; } else { if ( transform . getFromProjection ( ) . isUnit ( Units . DEGREES ) ) { transformed = TileBoundingBoxUtils . boundDegreesBoundingBoxWithWebMercatorLimits ( transformed ) ; } GeometryEnvelope envelope = buildEnvelope ( transformed ) ; GeometryEnvelope transformedEnvelope = transform . transform ( envelope ) ; transformed = new BoundingBox ( transformedEnvelope ) ; } return transformed ; }
Transform the bounding box using the provided projection transform