1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
import numbers
from array import array
from typing import Any, NamedTuple
from pyproj._crs import _CRS, AreaOfUse, Base, CoordinateOperation
from pyproj.enums import ProjVersion, TransformDirection
class AreaOfInterest(NamedTuple):
west_lon_degree: float
south_lat_degree: float
east_lon_degree: float
north_lat_degree: float
class Factors(NamedTuple):
meridional_scale: float
parallel_scale: float
areal_scale: float
angular_distortion: float
meridian_parallel_angle: float
meridian_convergence: float
tissot_semimajor: float
tissot_semiminor: float
dx_dlam: float
dx_dphi: float
dy_dlam: float
dy_dphi: float
class _TransformerGroup:
_transformers: Any
_unavailable_operations: list[CoordinateOperation]
_best_available: bool
def __init__(
self,
crs_from: str,
crs_to: str,
always_xy: bool,
area_of_interest: AreaOfInterest | None,
authority: str | None,
accuracy: float | None,
allow_ballpark: bool,
allow_superseded: bool,
) -> None: ...
class _Transformer(Base):
input_geographic: bool
output_geographic: bool
is_pipeline: bool
type_name: str
@property
def id(self) -> str: ...
@property
def description(self) -> str: ...
@property
def definition(self) -> str: ...
@property
def has_inverse(self) -> bool: ...
@property
def accuracy(self) -> float: ...
@property
def area_of_use(self) -> AreaOfUse: ...
@property
def source_crs(self) -> _CRS | None: ...
@property
def target_crs(self) -> _CRS | None: ...
@property
def operations(self) -> tuple[CoordinateOperation] | None: ...
def get_last_used_operation(self) -> _Transformer: ...
@property
def is_network_enabled(self) -> bool: ...
def to_proj4(
self,
version: ProjVersion | str = ProjVersion.PROJ_5,
pretty: bool = False,
) -> str: ...
@staticmethod
def from_crs(
crs_from: bytes,
crs_to: bytes,
always_xy: bool = False,
area_of_interest: AreaOfInterest | None = None,
authority: str | None = None,
accuracy: str | None = None,
allow_ballpark: bool | None = None,
force_over: bool = False,
only_best: bool | None = None,
) -> _Transformer: ...
@staticmethod
def from_pipeline(proj_pipeline: bytes) -> _Transformer: ...
def _transform(
self,
inx: Any,
iny: Any,
inz: Any,
intime: Any,
direction: TransformDirection | str,
radians: bool,
errcheck: bool,
) -> None: ...
def _transform_point(
self,
inx: numbers.Real,
iny: numbers.Real,
inz: numbers.Real,
intime: numbers.Real,
direction: TransformDirection | str,
radians: bool,
errcheck: bool,
) -> None: ...
def _transform_sequence(
self,
stride: int,
inseq: array[float],
switch: bool,
direction: TransformDirection | str,
time_3rd: bool,
radians: bool,
errcheck: bool,
) -> None: ...
def _transform_bounds(
self,
left: float,
bottom: float,
right: float,
top: float,
densify_pts: int = 21,
radians: bool = False,
errcheck: bool = False,
direction: TransformDirection | str = TransformDirection.FORWARD,
) -> tuple[float, float, float, float]: ...
def _get_factors(
self, longitude: Any, latitude: Any, radians: bool, errcheck: bool
) -> Factors: ...
|