|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.servlet.IlvManagerTiler
public class IlvManagerTiler
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.
| Field Summary | |
|---|---|
static String |
SCALE_LEVELS
Deprecated. Beginning with ILOG JViews 8.1, use the constant IlvMapTileGeneratorConstants.SCALE_LEVELS_PROPERTY instead. |
static String |
TILE_SIZE
Deprecated. Beginning with ILOG JViews 8.1, use the constant IlvMapTileGeneratorConstants.TILE_SIZE_PROPERTY instead. |
| Constructor Summary | |
|---|---|
IlvManagerTiler()
Creates a new IlvManagerTiler. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String TILE_SIZE
IlvMapTileGeneratorConstants.TILE_SIZE_PROPERTY instead.
public static String SCALE_LEVELS
IlvMapTileGeneratorConstants.SCALE_LEVELS_PROPERTY instead.
| Constructor Detail |
|---|
public IlvManagerTiler()
IlvManagerTiler.
| Method Detail |
|---|
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.IlvAreaOfInterest
public 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
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||