Package mapnik :: Class Projection

Class Projection

 object --+    
          |    
??.instance --+
              |
             Projection
Known Subclasses:

Represents a map projection.

Instance Methods
 
__getinitargs__(...)
__getinitargs__( (Projection)arg1) -> tuple :
 
__init__(...)
__init__( (object)arg1 [, (str)proj4_string]) -> None : Constructs a new projection from its PROJ.4 string representation.
 
__reduce__(...)
helper for pickle
 
__repr__(self)
repr(x)
 
forward(self, obj)
Projects the given object (Envelope or Coord) from the geographic space into the cartesian space.
 
inverse(self, obj)
Projects the given object (Envelope or Coord) from the cartesian space into the geographic space.
 
params(...)
params( (Projection)arg1) -> str : Returns the PROJ.4 string for this projection.

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Class Variables
  __instance_size__ = 16
  __safe_for_unpickling__ = True
Properties
  geographic
This property is True if the projection is a geographic projection (i.e.

Inherited from object: __class__

Method Details

__getinitargs__(...)

 

__getinitargs__( (Projection)arg1) -> tuple :

    C++ signature :
        boost::python::tuple __getinitargs__(mapnik::projection)

__init__(...)
(Constructor)

 

__init__( (object)arg1 [, (str)proj4_string]) -> None :
    Constructs a new projection from its PROJ.4 string representation.
    
    The parameterless version of this constructor is equivalent to
       Projection('+proj=latlong +ellps=WGS84')
    
    The constructor will throw a RuntimeError in case the projection
    cannot be initialized.
    

    C++ signature :
        void __init__(_object* [,std::string])

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

forward(self, obj)

 

Projects the given object (Envelope or Coord) 
from the geographic space into the cartesian space.

See also:
  Envelope.forward(self, projection),
  Coord.forward(self, projection).

inverse(self, obj)

 

Projects the given object (Envelope or Coord) 
from the cartesian space into the geographic space.

See also:
  Envelope.inverse(self, projection),
  Coord.inverse(self, projection).

params(...)

 

params( (Projection)arg1) -> str :
    Returns the PROJ.4 string for this projection.
    

    C++ signature :
        std::string params(mapnik::projection {lvalue})


Property Details

geographic

This property is True if the projection is a geographic projection (i.e. it uses lon/lat coordinates)

Get Method:
unreachable(...)