geogtran¶
- geodetic_engine.persistablereference.geogtran(operation, name='')[source]¶
State one coordinate transformation as an ESRI
GEOGTRAN.- Parameters:
operation (
CoordinateOperation) – A single step transformation between two geographic CRSs.name (
str, default:"") – Name to state, defaulting to the operation’s own.
- Return type:
- Returns:
The
GEOGTRAN, ready to be written bywrite().- Raises:
UnsupportedMethodError – If ESRI has no equivalent for the method or one of its parameters.
UnsupportedReferenceError – If the operation is not a single step between two geographic CRSs, states offsets across a prime meridian change that ESRI cannot state unambiguously, or states an accuracy that is not one non-negative number of metres.
MalformedReferenceError – If PROJ will not write either CRS as ESRI WKT.
Example
>>> operation = CoordinateOperation.from_authority("EPSG", "1612") >>> esriwkt.write(geogtran(operation))[:31] 'GEOGTRAN["ED50 to WGS 84 (23)",'