Module: TileCache

Defined in:
lib/tile_cache.rb,
lib/tile_cache/tile.rb,
lib/tile_cache/layer.rb,
lib/tile_cache/bounds.rb,
lib/tile_cache/caches.rb,
lib/tile_cache/layers.rb,
lib/tile_cache/meta_tile.rb,
lib/tile_cache/meta_layer.rb,
lib/tile_cache/caches/disk.rb,
lib/tile_cache/services/wms.rb,
lib/tile_cache/layers/map_server.rb

Defined Under Namespace

Modules: Caches, Layers, Services Classes: Bounds, CacheError, InvalidBounds, InvalidConfiguration, InvalidResolution, Layer, LayerNotFound, MetaLayer, MetaTile, Tile

Constant Summary collapse

CONFIG_PATHS =
[
  Pathname.new("/etc/tilecache.yml"), 
  Pathname.new("#{ENV['HOME']}/.tilecache.yml"),
  Pathname.new("#{Dir.pwd}/config/tilecache.yml")
]

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cacheObject

Returns the value of attribute cache.



27
28
29
# File 'lib/tile_cache.rb', line 27

def cache
  @cache
end

.layersObject

Returns the value of attribute layers.



27
28
29
# File 'lib/tile_cache.rb', line 27

def layers
  @layers
end

Class Method Details

.initialize!Object

Initialize TileCache framework, read out configuration and setup cache and layer classes



30
31
32
33
34
35
# File 'lib/tile_cache.rb', line 30

def initialize!
  read_configuration
  
  initialize_cache
  initialize_layers_pool
end