Package mapproxy :: Package tms :: Class TileServer
[hide private]
[frames] | no frames]

Class TileServer

source code

        object --+    
                 |    
core.server.Server --+
                     |
                    TileServer

A Tile Server. Supports strict TMS and non-TMS requests. The difference is the support for profiles. The our internal tile cache starts with one tile at the first level (like KML, etc.), but the global-geodetic and global-mercator start with two and four tiles. The tile_request should set use_profiles accordingly (eg. False if first level is one tile)
Instance Methods [hide private]
 
__init__(self, layers, md)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
Response
map(self, tile_request)
Returns: the requested tile
source code
 
layer(self, tile_request) source code
Response
tms_capabilities(self, tms_request)
Returns: the rendered tms capabilities
source code
 
_service_md(self, map_request) source code
 
_render_template(self, service) source code
 
_render_layer_template(self, layer, service) source code

Inherited from core.server.Server: handle, parse_request

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]
 
request_parser(req) source code
Class Variables [hide private]
  names = ('tiles', 'tms')
  request_methods = ('map', 'tms_capabilities')
  template_file = 'tms_capabilities.xml'
  layer_template_file = 'tms_tilemap_capabilities.xml'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

request_parser(req)
Static Method

source code 
Overrides: core.server.Server.request_parser

__init__(self, layers, md)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

map(self, tile_request)

source code 
Returns: Response
the requested tile

tms_capabilities(self, tms_request)

source code 
Returns: Response
the rendered tms capabilities