Class ProjectedCRS
Object
AbstractCRS
ProjectedCRS
- All Implemented Interfaces:
CoordinateReferenceSystem
Represents a Projected Coordinate Reference System in PROJJSON.
A projected CRS is derived from a geographic CRS by applying a map projection to transform spherical coordinates into a plane. Coordinates are typically expressed in linear units (meters, feet, etc.).
Example PROJJSON representation:
{
"$schema": "https://proj.org/schemas/v0.7/projjson.schema.json",
"type": "ProjectedCRS",
"name": "WGS 84 / UTM zone 31N",
"base_crs": {
"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"
}
]
}
},
"conversion": {
"name": "UTM zone 31N",
"method": {
"name": "Transverse Mercator",
"id": {
"authority": "EPSG",
"code": 9807
}
},
"parameters": [
{
"name": "Latitude of natural origin",
"value": 0,
"unit": "degree"
},
{
"name": "Longitude of natural origin",
"value": 3,
"unit": "degree"
},
{
"name": "Scale factor at natural origin",
"value": 0.9996,
"unit": "unity"
},
{
"name": "False easting",
"value": 500000,
"unit": "metre"
},
{
"name": "False northing",
"value": 0,
"unit": "metre"
}
]
},
"coordinate_system": {
"type": "Cartesian",
"axes": [
{
"name": "Easting",
"abbreviation": "E",
"direction": "east",
"unit": "metre"
},
{
"name": "Northing",
"abbreviation": "N",
"direction": "north",
"unit": "metre"
}
]
},
"id": {
"authority": "EPSG",
"code": 32631
}
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the base CRS that this projected CRS is derived from.Gets the conversion (map projection) used to derive this CRS from the base CRS.Gets the coordinate system that describes how coordinates are expressed.getType()Gets the type of coordinate reference system.voidsetBaseCrs(CoordinateReferenceSystem baseCrs) Sets the base CRS that this projected CRS is derived from.voidsetConversion(Conversion conversion) Sets the conversion (map projection) used to derive this CRS from the base CRS.voidsetCoordinateSystem(CoordinateSystem coordinateSystem) Sets the coordinate system that describes how coordinates are expressed.Methods inherited from class AbstractCRS
getArea, getBbox, getId, getName, getRemarks, getScope, setArea, setBbox, setId, setName, setRemarks, setScope
-
Constructor Details
-
ProjectedCRS
public ProjectedCRS()Creates a new ProjectedCRS with default values.
-
-
Method Details
-
getType
Gets the type of coordinate reference system.- Returns:
- Always "ProjectedCRS" for this implementation
-
getBaseCrs
Gets the base CRS that this projected CRS is derived from.- Returns:
- The base CRS (typically a GeographicCRS)
-
setBaseCrs
Sets the base CRS that this projected CRS is derived from.- Parameters:
baseCrs- The base CRS (typically a GeographicCRS)
-
getConversion
Gets the conversion (map projection) used to derive this CRS from the base CRS.- Returns:
- The conversion
-
setConversion
Sets the conversion (map projection) used to derive this CRS from the base CRS.- Parameters:
conversion- The conversion
-
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
-