Package pygeodesy :: Module lcc :: Class Lcc |
[frames] | no frames]

# Class Lcc

      object --+
               |
    named._Named --+
                   |
    named._NamedBase --+
                       |
                      Lcc

Lambert conformal conic East-/Northing location.

Instance Methods
__init__(self, e, n, h=0, conic=Conic(name='WRF_Lb', lat0=40, lon0=-97, par1=33, par2=45, E0=0`...`, name=`'````'`) New Lcc Lamber conformal conic position. |
to3lld(self, datum=None) Convert this Lcc to a geodetic lat- and longitude. |
toLatLon(self, LatLon=None, datum=None, height=None) Convert this Lcc to an (ellipsoidal) geodetic point. |
toStr(self, prec=0, sep=`'``` `'`, m=`'``m``'`) Return a string representation of this Lcc position. |
toStr2(self, prec=0, fmt=`'``[%s]``'`, sep=`'``,` `'`, m=`'``m``'`, C=False) Return a string representation of this Lcc position. |
Inherited from `named._NamedBase`: `__repr__`, `__str__`, `others` Inherited from `named._Named`: `_dot_`, `attrs`, `classof`, `copy` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
| conic An immutable property (`Read Only`).
| easting An immutable property (`Read Only`).
| height An immutable property (`Read Only`).
| northing An immutable property (`Read Only`).
Inherited from `named._Named`: `classname`, `classnaming`, `name`, `named`, `named2` Inherited from `object`: `__class__`

Method Details

### __init__(self, e, n, h=0, conic=Conic(name='WRF_Lb', lat0=40, lon0=-97, par1=33, par2=45, E0=0`...`, name=`'````'`) (Constructor) |
New Lcc Lamber conformal conic position. Parameters: `e` - Easting (`meter`). `n` - Northing (`meter`). `h` - Optional height (`meter`). `conic` - Optional, the conic projection (Conic). `name` - Optional name (`str`). Returns: The Lambert location (Lcc). Raises: `TypeError` - If `conic` is not Conic. `LCCError` - Invalid or negative `e` or `n`. Overrides: object.__init__ Example:
    >>> lb = Lcc(448251, 5411932.0001)

### to3lld(self, datum=None) |
Convert this Lcc to a geodetic lat- and longitude. Parameters: `datum` - Optional datum to use, otherwise use this `Lcc`'s conic.datum (`Datum`). Returns: A LatLonDatum3Tuple`(lat, lon, datum)`. Raises: `TypeError` - If `datum` is not ellipsoidal.

### toLatLon(self, LatLon=None, datum=None, height=None) |
Convert this Lcc to an (ellipsoidal) geodetic point. Parameters: `LatLon` - Optional, ellipsoidal (sub-)class to return the geodetic point (`LatLon`) or `None`. `datum` - Optional datum to use, otherwise use this `Lcc`'s conic.datum (`Datum`). `height` - Optional height for the point, overriding the default height (`meter`). Returns: The point (`LatLon`) or a LatLon4Tuple`(lat, lon, height, datum)` if `LatLon` is `None`. Raises: `TypeError` - If `LatLon` or `datum` is not ellipsoidal.

### toStr(self, prec=0, sep=`'``` `'`, m=`'``m``'`) |
Return a string representation of this Lcc position. Parameters: `prec` - Optional number of decimal, unstripped (`int`). `sep` - Optional separator to join (`str`). `m` - Optional height units, default `meter` (`str`). Returns: This Lcc as "easting nothing" `str` in `meter` plus " height" and 'm' if heigth is non-zero (`str`). Raises: `AssertionError` - Always, see function notOverloaded. Overrides: named._Named.toStr Example:
    >>> lb = Lcc(448251, 5411932.0001)
    >>> lb.toStr(4)  # 448251.0 5411932.0001
    >>> lb.toStr(sep=', ')  # 448251, 5411932

### toStr2(self, prec=0, fmt=`'``[%s]``'`, sep=`'``,` `'`, m=`'``m``'`, C=False) |
Return a string representation of this Lcc 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 conic and datum (`bool`). Returns: This Lcc as "[E:meter, N:meter, H:m, C:Conic.Datum]" (`str`). Overrides: named._Named.toStr2

Property Details

### conic An immutable property (`Read Only`). Get Method: conic(self) - Get the conic projection (Conic). Set Method: immutable(inst, value) - Throws an `AttributeError`, always.

### easting An immutable property (`Read Only`). Get Method: easting(self) - Get the easting (`meter`). Set Method: immutable(inst, value) - Throws an `AttributeError`, always.

### height An immutable property (`Read Only`). Get Method: height(self) - Get the height (`meter`). Set Method: immutable(inst, value) - Throws an `AttributeError`, always.

### northing An immutable property (`Read Only`). Get Method: northing(self) - Get the northing (`meter`). Set Method: immutable(inst, value) - Throws an `AttributeError`, always.