Class GeographicCRS
Object
AbstractCRS
GeographicCRS
- All Implemented Interfaces:
CoordinateReferenceSystem
Represents a Geographic Coordinate Reference System in PROJJSON.
A geographic CRS is a coordinate reference system based on an ellipsoidal approximation of the Earth's surface. Coordinates are expressed in angular units (degrees or radians).
Example PROJJSON representation:
{
"$schema": "https://proj.org/schemas/v0.7/projjson.schema.json",
"type": "GeographicCRS",
"name": "WGS 84",
"datum": {
"type": "GeodeticReferenceFrame",
"name": "World Geodetic System 1984",
"ellipsoid": {
"name": "WGS 84",
"semi_major_axis": 6378137,
"inverse_flattening": 298.257223563
}
},
"coordinate_system": {
"type": "ellipsoidal",
"axes": [
{
"name": "Geodetic latitude",
"abbreviation": "Lat",
"direction": "north",
"unit": "degree"
},
{
"name": "Geodetic longitude",
"abbreviation": "Lon",
"direction": "east",
"unit": "degree"
}
]
},
"id": {
"authority": "EPSG",
"code": 4326
}
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the coordinate system that describes how coordinates are expressed.getDatum()Gets the geodetic datum defining this geographic CRS.getType()Gets the type of coordinate reference system.voidsetCoordinateSystem(CoordinateSystem coordinateSystem) Sets the coordinate system that describes how coordinates are expressed.voidsetDatum(GeodeticReferenceFrame datum) Sets the geodetic datum defining this geographic CRS.Methods inherited from class AbstractCRS
getArea, getBbox, getId, getName, getRemarks, getScope, setArea, setBbox, setId, setName, setRemarks, setScope
-
Constructor Details
-
GeographicCRS
public GeographicCRS()Creates a new GeographicCRS with default values.
-
-
Method Details
-
getType
Gets the type of coordinate reference system.- Returns:
- Always "GeographicCRS" for this implementation
-
getDatum
Gets the geodetic datum defining this geographic CRS.- Returns:
- The geodetic reference frame
-
setDatum
Sets the geodetic datum defining this geographic CRS.- Parameters:
datum- The geodetic reference frame
-
getCoordinateSystem
Gets the coordinate system that describes how coordinates are expressed.- Returns:
- The coordinate system
-
setCoordinateSystem
Sets the coordinate system that describes how coordinates are expressed.- Parameters:
coordinateSystem- The coordinate system
-