public boolean createOrUpdate ( TileScaling tileScaling ) { boolean success = false ; tileScaling . setTableName ( tableName ) ; getOrCreateExtension ( ) ; try { if ( ! tileScalingDao . isTableExists ( ) ) { geoPackage . createTileScalingTable ( ) ; } CreateOrUpdateStatus status = tileScalingDao . createOrUpdate ( tileScaling ) ; success = status . isCreated ( ) || status . isUpdated ( ) ; } catch ( SQLException e ) { throw new GeoPackageException ( "Failed to create or update tile scaling for GeoPackage: " + geoPackage . getName ( ) + ", Tile Table: " + tableName , e ) ; } return success ; }
Create or update the tile scaling