cartopy.crs.Projection#
- class cartopy.crs.Projection(*args, **kwargs)[source]#
 Define a projected coordinate system with flat topology and Euclidean distance.
- __init__(*args, **kwargs)[source]#
 - Parameters:
 proj4_params (iterable of key-value pairs) – The proj4 parameters required to define the desired CRS. The parameters should not describe the desired elliptic model, instead create an appropriate Globe instance. The
proj4_paramsparameters will override any parameters that the Globe defines.globe (
Globeinstance, optional) – If omitted, the default Globe instance will be created. SeeGlobefor details.
Methods
__init__(*args, **kwargs)- param proj4_params:
 The proj4 parameters required to define the
as_geocentric()Return a new Geocentric CRS with the same ellipse/datum as this CRS.
as_geodetic()Return a new Geodetic CRS with the same ellipse/datum as this CRS.
cs_to_cf()New in version 3.0.0.
equals(other[, ignore_axis_order])New in version 2.5.0.
from_authority(auth_name, code)New in version 2.2.0.
from_cf(in_cf[, ellipsoidal_cs, ...])New in version 2.2.0.
from_dict(proj_dict)New in version 2.2.0.
from_epsg(code)Make a CRS from an EPSG code
from_json(crs_json)New in version 2.4.0.
from_json_dict(crs_dict)New in version 2.4.0.
from_proj4(in_proj_string)New in version 2.2.0.
from_string(in_crs_string)Make a CRS from:
from_user_input(value, **kwargs)Initialize a CRS class instance with:
from_wkt(in_wkt_string)New in version 2.2.0.
get_geod()- returns:
 pyproj.geod.Geod -- Geod object based on the ellipsoid.
is_exact_same(other)Check if the CRS objects are the exact same.
is_geodetic()list_authority([auth_name, min_confidence])New in version 3.2.0.
project_geometry(geometry[, src_crs])Project the given geometry into this projection.
quick_vertices_transform(vertices, src_crs)Where possible, return a vertices array transformed to this CRS from the given vertices array of shape
(n, 2)and the source CRS.to_3d([name])New in version 3.1.0.
to_authority([auth_name, min_confidence])New in version 2.2.0.
to_cf([wkt_version, errcheck])New in version 2.2.0.
to_dict()New in version 2.2.0.
to_epsg([min_confidence])Return the EPSG code best matching the CRS or None if it a match is not found.
to_json([pretty, indentation])New in version 2.4.0.
to_json_dict()New in version 2.4.0.
to_proj4([version])Convert the projection to a PROJ string.
to_string()New in version 2.2.0.
to_wkt([version, pretty])Convert the projection to a WKT string.
transform_point(x, y, src_crs)Transform the given float64 coordinate pair, in the given source coordinate system (
src_crs), to this coordinate system.transform_points(src_crs, x, y[, z])Transform the given coordinates, in the given source coordinate system (
src_crs), to this coordinate system.transform_vectors(src_proj, x, y, u, v)Transform the given vector components, with coordinates in the given source coordinate system (
src_proj), to this coordinate system.Attributes
area_of_usereturns: AreaOfUse -- The area of use object with associated attributes.
axis_infoRetrieves all relevant axis information in the CRS.
boundaryccw_boundarycoordinate_operationNew in version 2.2.0.
coordinate_systemNew in version 2.2.0.
cw_boundarydatumNew in version 2.2.0.
domainellipsoidNew in version 2.2.0.
geodetic_crsNew in version 2.2.0.
is_boundreturns: bool -- True if CRS is bound.
is_compoundNew in version 3.1.0.
is_derivedNew in version 3.2.0.
is_engineeringNew in version 2.2.0.
is_geocentricThis checks if the CRS is geocentric and takes into account if the CRS is bound.
is_geographicThis checks if the CRS is geographic.
is_projectedThis checks if the CRS is projected.
is_verticalNew in version 2.2.0.
namereturns: str -- The name of the CRS (from
proj_get_name()).prime_meridianNew in version 2.2.0.
proj4_paramsremarksNew in version 2.4.0.
scopeNew in version 2.4.0.
source_crsThe base CRS of a BoundCRS or a DerivedCRS/ProjectedCRS, or the source CRS of a CoordinateOperation.
sub_crs_listIf the CRS is a compound CRS, it will return a list of sub CRS objects.
target_crsNew in version 2.2.0.
thresholdtype_namereturns: str -- The name of the type of the CRS object.
utm_zoneNew in version 2.6.0.
x_limitsy_limits