RAVE
|
Module for defining projections using the Proj module. More...
Classes | |
class | Lib.rave_projection.interface |
Object for interfacing with PROJ.4. More... | |
class | Lib.rave_projection.usgs |
PROJ 4.7.0 and higher interface (requires Proj.py, _proj.so) More... | |
Namespaces | |
namespace | Lib.rave_projection |
Functions | |
Lib.rave_projection.init () | |
Initializer. | |
Lib.rave_projection.register (id, pcs) | |
Adds a projection to the registry. | |
Lib.rave_projection.keys () | |
Returns a list of keys in the registry. | |
Lib.rave_projection.items () | |
Returns a list of tuples containing key:item pairs in the registry where the key is the projection identifier and the item is its usgs object. | |
Lib.rave_projection.pcs (Id) | |
Object factory. | |
Lib.rave_projection.define (id, description, definition) | |
Register utility function for pre-defined projection definitions in PROJECTIONS. | |
Lib.rave_projection.add (id, description, definition, filename=PROJECTION_REGISTRY) | |
Adds a projection to the registry. | |
Lib.rave_projection.remove (id, filename=PROJECTION_REGISTRY) | |
Removes a projection from the registry. | |
Lib.rave_projection.write (filename=PROJECTION_REGISTRY) | |
Writes the contents of the registry to file. | |
Lib.rave_projection.describe (id) | |
Prints the identifier, description, and PROJ.4 definition to stdout. | |
Variables | |
bool | Lib.rave_projection.got_projregistry = True |
Lib.rave_projection.PROJECTIONS = os.path.join(RAVECONFIG, '*projection_registry.xml') | |
There's only one official projection registry, but this module allows greater flexibility as long as files use the same naming convention. | |
int | Lib.rave_projection.initialized = 0 |
dict | Lib.rave_projection._registry = {} |
Empty registry to be filled. | |
Module for defining projections using the Proj module.
Reads projection definitions from XML using the _projectionregistry module. Based on pcs.py