org.geotoolkit.image.io.mosaic
Enum TileLayout

Object
  extended by Enum<TileLayout>
      extended by TileLayout
All Implemented Interfaces:
Serializable, Comparable<TileLayout>

public enum TileLayout
extends Enum<TileLayout>

The layout of tiles in a TileManager. This is an enumeration that specify how MosaicBuilder should lay out the new tiles relative to each other. For example if the pixels in an image overview cover a geographic area 2 time larger (in width and height) than the pixels in an original image, then we have a choice:

Since:
2.5
Version:
3.00
Author:
Martin Desruisseaux (Geomatys)
See Also:
MosaicBuilder
Module:
coverage/geotk-coverageio (download)    View source code for this class

Enum Constant Summary
CONSTANT_GEOGRAPHIC_AREA
          All tiles cover the same geographic area.
CONSTANT_TILE_SIZE
          All tiles have the same width and height in pixels.
GENERIC
          A generic layout with heteregenous tile size or geographic area.
 
Method Summary
static TileLayout valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TileLayout[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GENERIC

public static final TileLayout GENERIC
A generic layout with heteregenous tile size or geographic area. This enum is returned when no other enum fit.


CONSTANT_TILE_SIZE

public static final TileLayout CONSTANT_TILE_SIZE
All tiles have the same width and height in pixels. Consequently the levels at the finest resolution have more tiles than levels at lower resolution. In other words, the tiles at the finest resolution cover smaller geographic area. This is the most efficient tile layout.


CONSTANT_GEOGRAPHIC_AREA

public static final TileLayout CONSTANT_GEOGRAPHIC_AREA
All tiles cover the same geographic area. Consequently, tiles at the finest resolution may be very big while tiles at lower resolutions are smaller. This is the simplest tile layout, easy to manage but inefficient. It is provided for testing purpose and compatibility with some external softwares using such layout.

Method Detail

values

public static TileLayout[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TileLayout c : TileLayout.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TileLayout valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.