forked from pyproj4/pyproj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_crs.pyi
248 lines (233 loc) · 7.66 KB
/
_crs.pyi
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
from typing import Any, Iterable, List, NamedTuple, Optional, Tuple, Union
from pyproj.crs.enums import CoordinateOperationType
from pyproj.enums import ProjVersion, WktVersion
class Axis:
name: str
abbrev: str
direction: str
unit_conversion_factor: float
unit_name: str
unit_auth_code: str
unit_code: str
def __str__(self) -> str: ...
def __repr__(self) -> str: ...
class AreaOfUse:
west: float
south: float
east: float
north: float
name: str
def __str__(self) -> str: ...
def __repr__(self) -> str: ...
@property
def bounds(self) -> Tuple[float, float, float, float]: ...
class Base:
name: str
@property
def remarks(self) -> str: ...
@property
def scope(self) -> str: ...
def to_wkt(
self,
version: Union[WktVersion, str] = WktVersion.WKT2_2019,
pretty: bool = False,
) -> str: ...
def to_json(self, pretty: bool = False, indentation: int = 2) -> str: ...
def to_json_dict(self) -> dict: ...
def __str__(self) -> str: ...
def __repr__(self) -> str: ...
def __eq__(self, other: Any) -> bool: ...
def is_exact_same(self, other: Any) -> bool: ...
class _CRSParts(Base):
@classmethod
def from_user_input(cls, user_input: Any) -> "_CRSParts": ...
class Ellipsoid(_CRSParts):
semi_major_metre: float
semi_minor_metre: float
is_semi_minor_computed: float
inverse_flattening: float
@staticmethod
def from_authority(auth_name: str, code: Union[int, str]) -> "Ellipsoid": ...
@staticmethod
def from_epsg(code: Union[int, str]) -> "Ellipsoid": ...
@staticmethod
def from_string(ellipsoid_string: str) -> "Ellipsoid": ...
@staticmethod
def from_json_dict(ellipsoid_dict: dict) -> "Ellipsoid": ...
@staticmethod
def from_json(ellipsoid_json_str: str) -> "Ellipsoid": ...
@staticmethod
def from_name(
ellipsoid_name: str, auth_name: Optional[str] = None
) -> "Ellipsoid": ...
class PrimeMeridian(_CRSParts):
longitude: float
unit_conversion_factor: str
unit_name: str
@staticmethod
def from_authority(auth_name: str, code: Union[int, str]) -> "PrimeMeridian": ...
@staticmethod
def from_epsg(code: Union[int, str]) -> "PrimeMeridian": ...
@staticmethod
def from_string(prime_meridian_string: str) -> "PrimeMeridian": ...
@staticmethod
def from_json_dict(prime_meridian_dict: dict) -> "PrimeMeridian": ...
@staticmethod
def from_json(prime_meridian_json_str: str) -> "PrimeMeridian": ...
@staticmethod
def from_name(
prime_meridian_name: str, auth_name: Optional[str] = None
) -> "PrimeMeridian": ...
class Datum(_CRSParts):
type_name: str
@property
def ellipsoid(self) -> Optional[Ellipsoid]: ...
@property
def prime_meridian(self) -> Optional[PrimeMeridian]: ...
@staticmethod
def from_authority(auth_name: str, code: Union[int, str]) -> "Datum": ...
@staticmethod
def from_epsg(code: Union[int, str]) -> "Datum": ...
@staticmethod
def from_string(datum_string: str) -> "Datum": ...
@staticmethod
def from_json_dict(datum_dict: dict) -> "Datum": ...
@staticmethod
def from_json(datum_json_str: str) -> "Datum": ...
@staticmethod
def from_name(datum_name: str, auth_name: Optional[str] = None) -> "Datum": ...
class CoordinateSystem(_CRSParts):
def __init__(self) -> None: ...
@property
def axis_list(self) -> Iterable[Axis]: ...
@staticmethod
def from_string(coordinate_system_string: str) -> "CoordinateSystem": ...
@staticmethod
def from_json_dict(coordinate_system_dict: dict) -> "CoordinateSystem": ...
@staticmethod
def from_json(coordinate_system_json_str: str) -> "CoordinateSystem": ...
def to_cf(self, rotated_pole: bool = False) -> List[dict]: ...
class Param:
name: str
auth_name: str
code: str
value: str
unit_conversion_factor: float
unit_name: str
unit_auth_name: str
unit_code: str
unit_category: str
def __str__(self) -> str: ...
def __repr__(self) -> str: ...
class Grid:
short_name: str
full_name: str
package_name: str
url: str
direct_download: str
open_license: str
available: str
def __str__(self) -> str: ...
def __repr__(self) -> str: ...
class CoordinateOperation(_CRSParts):
method_name: str
method_auth_name: str
method_code: str
accuracy: float
is_instantiable: bool
has_ballpark_transformation: bool
type_name: str
@property
def params(self) -> Iterable[Param]: ...
@property
def grids(self) -> Iterable[Grid]: ...
@property
def area_of_use(self) -> Optional[AreaOfUse]: ...
@property
def towgs84(self) -> Iterable[float]: ...
@property
def operations(self) -> Tuple["CoordinateOperation"]: ...
def __init__(self) -> None: ...
def __repr__(self) -> str: ...
@staticmethod
def from_authority(
auth_name: str, code: Union[int, str]
) -> "CoordinateOperation": ...
@staticmethod
def from_epsg(code: Union[int, str]) -> "CoordinateOperation": ...
@staticmethod
def from_string(ellipsoid_string: str) -> "CoordinateOperation": ...
@staticmethod
def from_json_dict(ellipsoid_dict: dict) -> "CoordinateOperation": ...
@staticmethod
def from_json(ellipsoid_json_str: str) -> "CoordinateOperation": ...
def to_proj4(
self, version: Union[ProjVersion, int] = ProjVersion.PROJ_5
) -> str: ...
@staticmethod
def from_name(
coordinate_operation_name: str,
auth_name: Optional[str] = None,
coordinate_operation_type: Union[
CoordinateOperationType, str
] = CoordinateOperationType.CONVERSION,
) -> "CoordinateOperation": ...
class AuthorityMatchInfo(NamedTuple):
auth_name: str
code: str
confidence: int
class _CRS(Base):
srs: str
type_name: str
def __init__(self, proj_string: str) -> None: ...
@property
def ellipsoid(self) -> Optional[Ellipsoid]: ...
@property
def area_of_use(self) -> Optional[AreaOfUse]: ...
@property
def axis_info(self) -> List[Axis]: ...
@property
def prime_meridian(self) -> Optional[PrimeMeridian]: ...
@property
def datum(self) -> Optional[Datum]: ...
@property
def sub_crs_list(self) -> Iterable["_CRS"]: ...
@property
def source_crs(self) -> Optional["_CRS"]: ...
@property
def target_crs(self) -> Optional["_CRS"]: ...
@property
def geodetic_crs(self) -> Optional["_CRS"]: ...
@property
def coordinate_system(self) -> Optional[CoordinateSystem]: ...
@property
def coordinate_operation(self) -> Optional[CoordinateOperation]: ...
def to_proj4(
self, version: Union[ProjVersion, int] = ProjVersion.PROJ_5
) -> str: ...
def to_epsg(self, min_confidence: int = 70) -> Optional[int]: ...
def to_authority(
self, auth_name: Optional[str] = None, min_confidence: int = 70
): ...
def list_authority(
self, auth_name: Optional[str] = None, min_confidence: int = 70
) -> List[AuthorityMatchInfo]: ...
def to_3d(self, name: Optional[str] = None) -> "_CRS": ...
@property
def is_geographic(self) -> bool: ...
@property
def is_projected(self) -> bool: ...
@property
def is_vertical(self) -> bool: ...
@property
def is_bound(self) -> bool: ...
@property
def is_compound(self) -> bool: ...
@property
def is_engineering(self) -> bool: ...
@property
def is_geocentric(self) -> bool: ...
def equals(self, other: Any, ignore_axis_order: bool) -> bool: ...
def is_proj(proj_string: str) -> bool: ...
def is_wkt(proj_string: str) -> bool: ...
def _load_proj_json(in_proj_json: str) -> dict: ...