Package eoxserver :: Package resources :: Package coverages :: Module data :: Class TileIndexWrapper
[hide private]
[frames] | no frames]

Class TileIndexWrapper

source code


This class wraps a tile index. It inherits from :class:`~.RecordWrapper`. .. method:: initialize(**kwargs) Apart from the mandatory ``record`` keyword argument, this method accepts a ``storage_dir`` argument which will be saved as instance attribute. An :exc:`~.InternalError` will be raised if neither of the two is given. The ``storage_dir`` denotes the path to the local directory where to find a tile index shape file as well as the actual tiles (usually stored in a directory tree under that directory).
Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getSourceFormat(self)
Return the source data file format.
source code
 
getType(self)
Returns ``"index"``.
source code
 
getDataStructureType(self)
Returns ``"index"``.
source code
 
getStorageDir(self)
Returns the path to the directory where to find the tile index shape file as well as the actual tiles.
source code
 
getShapeFilePath(self)
Returns the path to the tile index shape file.
source code
 
_validate_record(self, record) source code
 
_validate_attrs(self, **kwargs) source code
 
_set_attrs(self, **kwargs) source code
 
_fetch_unique_record(self) source code
 
_get_query(self, fields=None) source code
 
_get_query_set(self, query) source code
 
_create_record(self) source code

Inherited from core.records.RecordWrapper: delete, getRecord, setAttrs, setRecord, sync

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

Class Variables [hide private]
  REGISTRY_CONF = {'factory_ids': ('resources.coverages.data.Til...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

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

getType(self)

source code 
Returns ``"index"``.
Overrides: core.records.RecordWrapper.getType

_validate_record(self, record)

source code 
Overrides: core.records.RecordWrapper._validate_record

_validate_attrs(self, **kwargs)

source code 
Overrides: core.records.RecordWrapper._validate_attrs

_set_attrs(self, **kwargs)

source code 
Overrides: core.records.RecordWrapper._set_attrs

_fetch_unique_record(self)

source code 
Overrides: core.records.RecordWrapper._fetch_unique_record

_get_query(self, fields=None)

source code 
Overrides: core.records.RecordWrapper._get_query

_get_query_set(self, query)

source code 
Overrides: core.records.RecordWrapper._get_query_set

_create_record(self)

source code 
Overrides: core.records.RecordWrapper._create_record

Class Variable Details [hide private]

REGISTRY_CONF

Value:
{'factory_ids': ('resources.coverages.data.TileIndexFactory'),
 'impl_id': 'resources.coverages.data.TileIndexWrapper',
 'name': 'Tile Index Wrapper'}