geo.crs
2 functions / 0 types
Index
| Function | Description |
|---|---|
| describe | Describe a supported CRS and its coordinate units without creating a map or loading a service. |
| register | Register one coordinate reference system, or one coordinate operation, under the identifier its definition names, and answer that identifier, such as IAU_2015:49900. |
describe
describe(args: { crs: GeoCrsId }, transactionId?: string): Promise<GeoCrsDescriptor>Describe a supported CRS and its coordinate units without creating a map or loading a service.
Returns Promise<GeoCrsDescriptor>.
crs : GeoCrsId
transactionId optional : string
register
register(args: { definition: string }, transactionId?: string): Promise<GeoCrsId>Register one coordinate reference system, or one coordinate operation, under the identifier
its definition names, and answer that identifier, such as IAU_2015:49900.
definition is WKT2 or PROJJSON with a top-level identifier, as projinfo prints a registry
entry, or a WKT2 coordinate operation with a Helmert method. A system defined on a datum the
registry holds, by identifier or by name, converts with that datum’s operations. Registering
the same definition again does nothing. Fails with InvalidArgument for a definition with no
identifier, one the engine cannot represent, such as longitude counted west, and one that
differs from what the registry holds under its identifier.
Returns: A coordinate reference system identifier, such as EPSG:3857 or IAU_2015:30100.
Returns Promise<GeoCrsId>.
definition : string
transactionId optional : string