Java Code Examples for mil.nga.geopackage.extension.scale.TileScaling#setZoomOut()
The following examples show how to use
mil.nga.geopackage.extension.scale.TileScaling#setZoomOut() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GeoPackageExample.java From geopackage-android with MIT License | 6 votes |
private static void createTileScalingExtension(GeoPackage geoPackage) { for (String tileTable : geoPackage.getTileTables()) { TileTableScaling tileTableScaling = new TileTableScaling( geoPackage, tileTable); TileScaling tileScaling = new TileScaling(); tileScaling.setZoomIn(2l); FeatureTileTableLinker linker = new FeatureTileTableLinker( geoPackage); if (linker.has() && !linker.getFeatureTablesForTileTable(tileTable) .isEmpty()) { tileScaling.setScalingType(TileScalingType.IN); } else { tileScaling.setScalingType(TileScalingType.IN_OUT); tileScaling.setZoomOut(2l); } tileTableScaling.create(tileScaling); } }
Example 2
Source File: GeoPackageExample.java From geopackage-java with MIT License | 6 votes |
private static void createTileScalingExtension(GeoPackage geoPackage) { for (String tileTable : geoPackage.getTileTables()) { TileTableScaling tileTableScaling = new TileTableScaling(geoPackage, tileTable); TileScaling tileScaling = new TileScaling(); tileScaling.setZoomIn(2l); FeatureTileTableLinker linker = new FeatureTileTableLinker( geoPackage); if (linker.has() && !linker.getFeatureTablesForTileTable(tileTable) .isEmpty()) { tileScaling.setScalingType(TileScalingType.IN); } else { tileScaling.setScalingType(TileScalingType.IN_OUT); tileScaling.setZoomOut(2l); } tileTableScaling.create(tileScaling); } }