this.heights = new double[tileMatrices.size()]; projection = tileMatrixSet.getProjection();
/** * Constructor, specified tile size and projection * * @param tileDao tile dao * @param width requested width * @param height requested height * @param requestProjection requested projection */ public TileCreator(TileDao tileDao, Integer width, Integer height, Projection requestProjection) { this.tileDao = tileDao; this.width = width; this.height = height; this.requestProjection = requestProjection; tileMatrixSet = tileDao.getTileMatrixSet(); tilesProjection = tileDao.getTileMatrixSet().getProjection(); tileSetBoundingBox = tileMatrixSet.getBoundingBox(); // Check if the projections have the same units sameProjection = (requestProjection.getUnit().name.equals(tilesProjection.getUnit().name)); }
this.heights = new double[tileMatrices.size()]; projection = tileMatrixSet.getProjection();
/** * 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; }
this.height = height; this.requestProjection = requestProjection; coverageProjection = tileMatrixSet.getProjection(); coverageBoundingBox = tileMatrixSet.getBoundingBox();
tilesProjection = tileDao.getTileMatrixSet().getProjection(); tileSetBoundingBox = tileMatrixSet.getBoundingBox();
.getBoundingBox(); BoundingBox setWebMercatorBoundingBox = setProjectionBoundingBox .transform(tileMatrixSet.getProjection() .getTransformation( ProjectionConstants.EPSG_WEB_MERCATOR));
Projection tileMatrixProjection = tileMatrixSet.getProjection(); if (!tileMatrixProjection.equals(projection)) { throw new GeoPackageException("Can not update tiles projected at "