org.geotools.image.io.mosaic
Enum TileLayout

java.lang.Object
  extended by java.lang.Enum<TileLayout>
      extended by org.geotools.image.io.mosaic.TileLayout
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TileLayout>

public enum TileLayout
extends java.lang.Enum<TileLayout>

The layout of tiles in a TileManager. Used by TileBuilder for creating tiles in some commonly used layout.

Since:
2.5
Version:
$Id: TileLayout.java 30729 2008-06-16 09:26:48Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
TileBuilder

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(java.lang.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 java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.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 simpliest 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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 1996-2010 Geotools. All Rights Reserved.