Class: ChartUtils
Defined in: src/sdk/charts/ChartUtils.ts:9
A utility class for working with charts.
Constructors
Constructor
new ChartUtils():
ChartUtils
Returns
ChartUtils
Methods
setGeoProjectionFromChartArea()
staticsetGeoProjectionFromChartArea(projection,area):LambertConformalConicProjection
Defined in: src/sdk/charts/ChartUtils.ts:27
Sets the parameters of a Lambert conformal conic projection such that the projection is equivalent to that of a given georeferenced chart area. After the projection parameters have been set, the projection can be used to project world coordinates within the georeferenced area to their corresponding chart coordinates.
Parameters
| Parameter | Type | Description |
|---|---|---|
projection | LambertConformalConicProjection | The projection to set. |
area | GeoReferencedChartArea | The georeferenced chart area whose projection is the one to which the given projection should be matched. |
Returns
LambertConformalConicProjection
The specified projection, after it has been set to be equivalent to the projection of the specified georeferenced chart area.