GeographicCoordinateSystem
gma.crs.GeographicCoordinateSystem
class GeographicCoordinateSystem(name = "GMA GCS", angular_unit = "degree", primem = "Greenwich", ellipsoid = "WGS_84", datum = None):
geographic coordinate system Create a geographic coordinate system!
Optional:
name = str. Default 'GMA GCS'.
Name of the new geographical coordinate system.
angular_unit = float||str. Default 'Degree'.
Angular unit value. See more default angular units: AngularUnits class! If you need to customize the angle unit, you can enter a real number.
primem = float||str. Default 'Greenwich'.
Prime meridian. See more default prime meridians: PRIMEMs class! If you need to customize the prime meridian, you can enter a real number.
ellipsoid = str||aclassofEllipsoid. Default 'WGS84'.
Ellipsoid. See more default prime ellipsoids: Ellips class! If you need to customize the ellipsoid, please use the Ellipsoid class to initialize.
datum = None||aclassofDatum. Default None.
Datum. If None, the ellipsoid is automatically configured based on the datum.
If it is a class of Datum, the parameter of Ellipsoid will be ignored.
Methods
copy
[method] .copy():
Clone crs. --> CoordinateReferenceSystem
get_proj_parms
[method] .get_proj_parms():
Get projection parameters.
Returns:
Type: dict.
plot
[method] .plot(ax = None, **kwargs):
Make area of use of the CoordinateReferenceSystem in world.
Optional:
ax = None||matplotlib.~.AxesSubplot. Default None.
A matplotlib subplot. If None, a default axes will be created.
**kwargs.
Other plotting parameters of CoordinateReferenceSystem's geometry. For more, see: ~.carto.utils.PolyCollection.
Returns:
Type: matplotlib.~.AxesSubplot.
to_dict
[method] .to_dict():
Export projection to dict(json).
Returns:
Type: dict.
to_list
[method] .to_list(ctype = "PCI"):
Export projection to list.
Optional:
ctype = str. Default 'PCI'.
Export format. Can be 'PCI', 'USGS'.
Returns:
Type: list.
to_str
[method] .to_str(ctype = "Wkt"):
Export projection to string.
Optional:
ctype = str. Default 'Wkt'.
Export format. Can be 'MICoordSys', 'PrettyWkt', 'Proj4', 'Wkt', 'XML'.
Returns:
Type: str.
Property
WKID
Well-known ID Code and name. --> tuple(float, str)
angular_units
Angular units. --> tuple(float, str)
area_of_interest
The area of use's geometry of the crs in WGS84. --> Geometry.
area_of_use
Get the area where the coordinate system is used. --> tuple(West, South, East, North in degree).
axes_count
Number of coordinate axes. --> int
central_longitude
Get the longitude of the central meridian. --> float
change_longitude
Date Line --> float
datum_name
Datum name. --> str
gcs
Get projection parameters. --> CoordinateReferenceSystem
inv_flattening
Inverse flattening. --> float
linear_units
Linear units and name. --> tuple(float, str).
name
Name of the coordinate system. --> str
planet
The planet of the coordinate system. --> str
primem
The prime meridian and name. --> tuple(float, str)
proj_method
The project method name. --> str
radius
Ellipsoid radius. --> float
semi_major
Semi-major axis. --> float
semi_minor
Semi-minor axis. --> float
spheroid_name
Spheroid name. --> str
type
Space Reference Type. --> str