class CoordinateReferenceSystem: Any

Representation of a coordinate reference system. See the wikipedia article of Spatial Reference System.

Fields

Name Description
val name: String

Name of CRS

val epsgCode: Int

EPSG code of the CRS. See the wikipedia article of EPSG.

val srsName: String

GML compliant srsName of the CRS

Constructors

<init>

constructor(crs: ProjCoordinateReferenceSystem)

Representation of a coordinate reference system. See the wikipedia article of Spatial Reference System.

Parameters

Name Description
crs: ProjCoordinateReferenceSystem

adapted CRS class from PROJ

CompanionObject

CoordinateReferenceSystem

class CoordinateReferenceSystem: Any

Representation of a coordinate reference system. See the wikipedia article of Spatial Reference System.

Methods

of

fun of(epsgCode: Int): Result<CoordinateReferenceSystem, Exception>

Creates a CoordinateReferenceSystem based on the provided epsgCode.

Parameters

Name Description
epsgCode: Int

ReturnValue

Name Description
Result<CoordinateReferenceSystem, Exception>

of

fun of(crsName: String): Result<CoordinateReferenceSystem, Exception>

Creates a CoordinateReferenceSystem based on the provided crsName.

Parameters

Name Description
crsName: String

ReturnValue

Name Description
Result<CoordinateReferenceSystem, Exception>

ofParameters

fun ofParameters(parameters: String): Result<CoordinateReferenceSystem, Exception>

Creates a CoordinateReferenceSystem based on the provided PROJ.4 string.

Parameters

Name Description
parameters: String

PROJ.4 projection parameter string

ReturnValue

Name Description
Result<CoordinateReferenceSystem, Exception>