Package pygeodesy :: Module css :: Class Css |
[frames] | no frames]

# Class Css

      object --+
               |
    bases._Named --+
                   |
        bases._Based --+
                       |
                      Css

Cassini-Soldner East-/Northing location.

Instance Methods
__init__(self, e, n, h=0, cs0=None, name=`'````'`) New Css position. |
copy(self) Copy this Css location. |
toLatLon(self, LatLon=None, height=None) Convert this Css to an (ellipsoidal) geodetic point. |
toStr(self, prec=6, sep=`'``` `'`, m=`'``m``'`) Return a string representation of this Css position. |
toStr2(self, prec=6, fmt=`'``[%s]``'`, sep=`'``,` `'`, m=`'``m``'`, C=False) Return a string representation of this Css position. |
Inherited from `bases._Based`: `__repr__`, `__str__`, `classof`, `others` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
| azi Get the azimuth of easting direction (`degrees`).
| cs0 Get the projection (CassiniSoldner).
| easting Get the easting (`meter`).
| height Get the height (`meter`).
| latlon Get the lat- and longitude (`degrees`, `degrees`).
| northing Get the northing (`meter`).
| rk Get the reciprocal of azimuthal northing scale (`float`).
Inherited from `bases._Named`: `classname`, `classnaming`, `name` Inherited from `object`: `__class__`

Method Details

### __init__(self, e, n, h=0, cs0=None, name=`'````'`) (Constructor) |
New Css position. Parameters: `e` - Easting (`meter`). `n` - Northing (`meter`). `h` - Optional height (`meter`). `cs0` - Optional, the Cassini-Soldner projection (CassiniSoldner). `name` - Optional name (`str`). Returns: The Cassini-Soldner location (Css). Raises: `ImportError` - Package GeographicLib missing. `TypeError` - If cs0 is not CassiniSoldner. `ValueError` - If e or n is invalid. Overrides: object.__init__ Example:
    >>> cs = Css(448251, 5411932.0001)

### copy(self) |
Copy this Css location. Returns: The copy (Css or subclass thereof). Overrides: bases._Named.copy

### toLatLon(self, LatLon=None, height=None) |
Convert this Css to an (ellipsoidal) geodetic point. Parameters: `LatLon` - Optional, ellipsoidal (sub-)class to return the geodetic point (`LatLon`) or `None`. `height` - Optional height for the point, overriding the default height (`meter`). Returns: The point (LatLon) or 4-tuple (`degrees90`, `degrees180`, height, datum) if LatLon is `None`. Raises: `TypeError` - If LatLon or datum is not ellipsoidal.

### toStr(self, prec=6, sep=`'``` `'`, m=`'``m``'`) |
Return a string representation of this Css position. Parameters: `prec` - Optional number of decimal, unstripped (`int`). `sep` - Optional separator to join (`str`). `m` - Optional height units, default `meter` (`str`). Returns: This Css as "easting nothing" `str` in `meter` plus " height" and 'm' if heigth is non-zero (`str`). Overrides: bases._Based.toStr

### toStr2(self, prec=6, fmt=`'``[%s]``'`, sep=`'``,` `'`, m=`'``m``'`, C=False) |
Return a string representation of this Css position. Parameters: `prec` - Optional number of decimals, unstripped (`int`). `fmt` - Optional, enclosing backets format (`str`). `sep` - Optional separator between name:values (`str`). `m` - Optional unit of the height, default meter (`str`). `C` - Optionally, include name of projection (`bool`). Returns: This Css as "[E:meter, N:meter, H:m, name:'', C:Conic.Datum]" (`str`). Overrides: bases._Based.toStr2

Property Details

### azi Get the azimuth of easting direction (`degrees`). Get Method: azi(self) - Get the azimuth of easting direction (`degrees`). Set Method: Read_Only(self, ignored) - Throws an `AttributeError`, always.

### cs0 Get the projection (CassiniSoldner). Get Method: cs0(self) - Get the projection (CassiniSoldner). Set Method: Read_Only(self, ignored) - Throws an `AttributeError`, always.

### easting Get the easting (`meter`). Get Method: easting(self) - Get the easting (`meter`). Set Method: Read_Only(self, ignored) - Throws an `AttributeError`, always.

### height Get the height (`meter`). Get Method: height(self) - Get the height (`meter`). Set Method: Read_Only(self, ignored) - Throws an `AttributeError`, always.

### latlon Get the lat- and longitude (`degrees`, `degrees`). Get Method: latlon(self) - Get the lat- and longitude (`degrees`, `degrees`). Set Method: Read_Only(self, ignored) - Throws an `AttributeError`, always.

### northing Get the northing (`meter`). Get Method: northing(self) - Get the northing (`meter`). Set Method: Read_Only(self, ignored) - Throws an `AttributeError`, always.

### rk Get the reciprocal of azimuthal northing scale (`float`). Get Method: rk(self) - Get the reciprocal of azimuthal northing scale (`float`). Set Method: Read_Only(self, ignored) - Throws an `AttributeError`, always.