/** * Get the projection * * @return projection * @since 3.1.0 */ public Projection getProjection() { return getSrs().getProjection(); }
TestCase.assertNotNull(result.getMaxY()); SpatialReferenceSystem srs = result.getSrs(); TestCase.assertNotNull(srs); TestCase.assertNotNull(srs.getSrsName());
/** * Text output from a TileMatrixSet * * @param tileMatrixSet * tile matrix set * @return text */ public String textOutput(TileMatrixSet tileMatrixSet) { StringBuilder output = new StringBuilder(); output.append("\t" + TileMatrixSet.COLUMN_TABLE_NAME + ": " + tileMatrixSet.getTableName()); output.append("\n" + textOutput(tileMatrixSet.getSrs())); output.append("\n\t" + TileMatrixSet.COLUMN_MIN_X + ": " + tileMatrixSet.getMinX()); output.append("\n\t" + TileMatrixSet.COLUMN_MIN_Y + ": " + tileMatrixSet.getMinY()); output.append("\n\t" + TileMatrixSet.COLUMN_MAX_X + ": " + tileMatrixSet.getMaxX()); output.append("\n\t" + TileMatrixSet.COLUMN_MAX_Y + ": " + tileMatrixSet.getMaxY()); return output.toString(); }
.getContents().getId()); TestCase.assertEquals(contents.getSrsId().longValue(), queryTileMatrixSet.getSrs().getId());
+ Contents.class.getSimpleName()); if (tileMatrixSet.getSrs() == null) { throw new GeoPackageException(TileMatrixSet.class.getSimpleName() + " " + tileMatrixSet.getId() + " has null "
SpatialReferenceSystem srs = tileMatrixSet.getSrs(); TestCase.assertNotNull(srs); TestCase.assertNotNull(srs.getSrsName());
+ Contents.class.getSimpleName()); if (tileMatrixSet.getSrs() == null) { throw new GeoPackageException(TileMatrixSet.class.getSimpleName() + " " + tileMatrixSet.getId() + " has null "
SpatialReferenceSystem srs = tileMatrixSet.getSrs(); TestCase.assertNotNull(srs); TestCase.assertNotNull(srs.getSrsName());
+ tileMatrixSet.getSrs().getOrganizationCoordsysId()); pw.println(GEOPACKAGE_PROPERTIES_MIN_X + "=" + tileMatrixSet.getMinX());
SpatialReferenceSystem srs = tileDao.getTileMatrixSet().getSrs(); Projection projection = srs.getProjection();
Projection tileMatrixProjection = tileMatrixSet.getSrs() .getProjection(); if (!tileMatrixProjection.equals(projection)) {
long geoPackageEpsg = tileMatrixSet.getSrs().getOrganizationCoordsysId();
long geoPackageEpsg = tileMatrixSet.getSrs().getOrganizationCoordsysId();