public class IlvManagerTiler extends Object
IlvManagerTiler is used to generate a pyramid of tile images
from a map. These images can be used by a map servlet as pregenerated tiles
for thin-client applications.| Modifier and Type | Field and Description |
|---|---|
static String |
SCALE_LEVELS
Deprecated.
Beginning with Rogue Wave JViews 8.1, use the constant
IlvMapTileGeneratorConstants.SCALE_LEVELS_PROPERTY instead. |
static String |
TILE_SIZE
Deprecated.
Beginning with Rogue Wave JViews 8.1, use the constant
IlvMapTileGeneratorConstants.TILE_SIZE_PROPERTY instead. |
| Constructor and Description |
|---|
IlvManagerTiler()
Creates a new
IlvManagerTiler. |
| Modifier and Type | Method and Description |
|---|---|
void |
createTiles(String ivl,
IlvRect areaToTile,
File outputBase,
long maxDiskSize)
Creates a set of tiled images from an existing map.
|
void |
createTiles(String ivl,
IlvRect areaToTile,
File outputBase,
long maxDiskSize,
int tileSize,
double[] scaleLevels)
Create a set of tiled images for the specified map.
|
int |
getImageFormat()
Returns the compression format used to write the tiled images.
|
static void |
main(String[] args)
The command line method used to generate tiles for a map.
|
void |
setImageFormat(int format)
Sets the compression format used to write the image tiles.
|
@Deprecated public static String TILE_SIZE
IlvMapTileGeneratorConstants.TILE_SIZE_PROPERTY instead.@Deprecated public static String SCALE_LEVELS
IlvMapTileGeneratorConstants.SCALE_LEVELS_PROPERTY instead.public void createTiles(String ivl, IlvRect areaToTile, File outputBase, long maxDiskSize) throws IOException, IlvReadFileException, IlvCoordinateTransformationException
ivl - The filename of the map to open.areaToTile - The area of interest in the map for which tiles should
be rendered. Set this value to null so the tiling process is not
limited to a region.outputBase - The output folder where tile images are created.maxDiskSize - The maximum disk space allocated to tile creation. The
tile creation process stops as soon as this limit is reached, no matter
how many tiles remain to be generated.IOException - if an I/O exception occurs while the map file is
being read.IlvReadFileException - if a reading exception occurs during map file
reading.IlvCoordinateTransformationException - if the specified area of
interest is not compatible with the current map projection.IlvAreaOfInterestpublic void createTiles(String ivl, IlvRect areaToTile, File outputBase, long maxDiskSize, int tileSize, double[] scaleLevels) throws IOException, IlvReadFileException, IlvCoordinateTransformationException
ivl - The filename for the map to be opened.areaToTile - The area of interest in the map for which tiles will
be rendered. Set this value to null so the tiling process is not
limited to a region.outputBase - The output folder where tile images are created.maxDiskSize - The maximum disk space allocated to tile creation. The
tile creation process stops as soon as this limit is reached, no matter
how many tiles remain to be generated.tileSize - The size of the tiled images to generate. This value is
set in pixels.scaleLevels - the scale levels of the map for which tiles will be
created. If this value is set to to null, this parameter
should be embedded in the map.IOException - if an I/O exception occurs while the map file is
being read.IlvReadFileException - if a reading exception occurs while the map
file is being read.IlvCoordinateTransformationException - if the specified area of
interest is not compatible with the current map projection.public void setImageFormat(int format)
Note: if format in not compatible,
IlvFileTileManager.JPEG_FORMAT is used.
format - The image format.public int getImageFormat()
setImageFormat(int )public static void main(String[] args)
args - The arguments to pass to this method. These arguments are in
the following order:
mapFilename outputDirectory maxDiskSize
© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.