/** * Get a bounding box in the provided projection * * @param projection * desired projection * * @return bounding box * @since 3.1.0 */ public BoundingBox getBoundingBox(Projection projection) { BoundingBox boundingBox = getBoundingBox(); if (boundingBox != null && projection != null) { ProjectionTransform transform = getProjection().getTransformation( projection); if (!transform.isSameProjection()) { boundingBox = boundingBox.transform(transform); } } return boundingBox; }
/** * Get a bounding box in the provided projection * * @param projection * desired projection * * @return bounding box * @since 3.1.0 */ public BoundingBox getBoundingBox(Projection projection) { BoundingBox boundingBox = getBoundingBox(); if (projection != null) { ProjectionTransform transform = getProjection().getTransformation( projection); if (!transform.isSameProjection()) { boundingBox = boundingBox.transform(transform); } } return boundingBox; }
ProjectionTransform transform = projection.getTransformation(ProjectionConstants.EPSG_WEB_MERCATOR); requestBoundingBox = boundingBox; if (!transform.isSameProjection()) { requestBoundingBox = requestBoundingBox.transform(transform);
.getTransformation(ProjectionConstants.EPSG_WEB_MERCATOR); requestBoundingBox = boundingBox; if (!transform.isSameProjection()) { requestBoundingBox = requestBoundingBox .transform(transform);
ProjectionTransform transformProjectionToContents = projection.getTransformation(contents.getProjection()); BoundingBox contentsBoundingBox = boundingBox; if (!transformProjectionToContents.isSameProjection()) { contentsBoundingBox = contentsBoundingBox.transform(transformProjectionToContents); boolean sameProjection = transformProjectionToTileMatrixSet.isSameProjection(); BoundingBox updateBoundingBox = boundingBox; if (!sameProjection) {
.getTransformation(contents.getProjection()); BoundingBox contentsBoundingBox = boundingBox; if (!transformProjectionToContents.isSameProjection()) { contentsBoundingBox = contentsBoundingBox .transform(transformProjectionToContents); .getTransformation(tileMatrixProjection); boolean sameProjection = transformProjectionToTileMatrixSet .isSameProjection(); BoundingBox updateBoundingBox = boundingBox; if (!sameProjection) {
.getTransformation(contentsSrs.getProjection()); BoundingBox contentsBoundingBox = bbox; if (!transform.isSameProjection()) { contentsBoundingBox = bbox.transform(transform);
.getTransformation(contentsSrs.getProjection()); BoundingBox contentsBoundingBox = bbox; if (!transform.isSameProjection()) { contentsBoundingBox = bbox.transform(transform);