geovista.crs#
Coordinate reference system (CRS) utility functions.
ノート#
Added in version 0.1.0.
属性#
Type alias for a Coordinate Reference System. |
|
WGS84 / Plate Carree (Equidistant Cylindrical). |
|
Geographic WGS84. |
Functions#
|
Get the |
|
Retrieve the longitude of natural origin of the CRS. |
|
Determine whether the provided mesh has a CRS serialized as WKT attached. |
|
Determine if the mesh is a planar projection. |
|
Replace the longitude of natural origin in the |
|
Attach serialized |
モジュール内容#
- geovista.crs.from_wkt(mesh)[ソース]#
Get the
CRSassociated with the mesh.- Parameters:
- Returns:
CRSThe Coordinate Reference System.
ノート
Added in version 0.1.0.
- geovista.crs.get_central_meridian(crs)[ソース]#
Retrieve the longitude of natural origin of the CRS.
THe natural origin is also known as the central meridian.
- Parameters:
- crs
CRS The Coordinate Reference System.
- crs
- Returns:
floatThe central meridian, or
Noneif the crs has no such parameter.
ノート
Added in version 0.1.0.
- geovista.crs.has_wkt(mesh)[ソース]#
Determine whether the provided mesh has a CRS serialized as WKT attached.
- Parameters:
- Returns:
ノート
Added in version 0.4.0.
- geovista.crs.projected(mesh)[ソース]#
Determine if the mesh is a planar projection.
Simple heuristic approach achieved by attempting to inspect the associated
CRSof the mesh. If the meshCRSis unavailable then the weaker contract of inspecting the mesh geometry is used to detect for a flat plane.ノート
Added in version 0.1.0.
- geovista.crs.set_central_meridian(crs, meridian)[ソース]#
Replace the longitude of natural origin in the
CRS.The natural origin is also known as the central meridian.
Note that the crs is immutable, therefore a new instance will be returned with the specified central meridian.
- Parameters:
- Returns:
ノート
Added in version 0.1.0.
- geovista.crs.to_wkt(mesh, crs)[ソース]#
Attach serialized
CRSas Well-Known-Text (WKT) to the mesh.The serialized OGC WKT is attached to the
field_dataof the mesh in-place.- Parameters:
ノート
Added in version 0.2.0.
- type geovista.crs.CRSLike = int | str | dict[str, Any] | pyproj.crs.crs.CRS#
Type alias for a Coordinate Reference System.
- geovista.crs.PlateCarree#
WGS84 / Plate Carree (Equidistant Cylindrical).
- geovista.crs.WGS84#
Geographic WGS84.