Class: ChartViewLambertConformalConicProjection
Defined in: src/sdk/charts/LambertConformalConicProjection.ts:8
A Lambert Conformal Conic projection for use with chart viewing
Constructors
Constructor
new ChartViewLambertConformalConicProjection():
ChartViewLambertConformalConicProjection
Returns
ChartViewLambertConformalConicProjection
Properties
valid
readonly
valid:Subscribable
<boolean
>
Defined in: src/sdk/charts/LambertConformalConicProjection.ts:13
Methods
project()
project(
lat
,lon
,out
):void
Defined in: src/sdk/charts/LambertConformalConicProjection.ts:83
Projects a lat/lon point using the current parameters to an array of x and y coordinates, in metres.
Parameters
Parameter | Type | Description |
---|---|---|
lat | number | the latitude of the point to project |
lon | number | the longitude of the point to project |
out | Float64Array | the array to output the projected x and y coordinates |
Returns
void
Throws
if the projection parameters are not set
reset()
reset():
void
Defined in: src/sdk/charts/LambertConformalConicProjection.ts:67
Resets this LCC projection's parameters
Returns
void
setParameters()
setParameters(
standardParallel1
,standardParallel2
,originLat
,originLon
):void
Defined in: src/sdk/charts/LambertConformalConicProjection.ts:30
Sets the parameters of this LCC projection, after which points can be projected
Parameters
Parameter | Type | Description |
---|---|---|
standardParallel1 | number | The first standard parallel. |
standardParallel2 | number | The second standard parallel. |
originLat | number | The origin (central) latitude. |
originLon | number | The origin (central) longitude. |
Returns
void
setParametersFromChartAreaProjection()
setParametersFromChartAreaProjection(
projection
):void
Defined in: src/sdk/charts/LambertConformalConicProjection.ts:55
Sets the parameters of this LCC projection from a chart area projection, after which points can be projected
Parameters
Parameter | Type | Description |
---|---|---|
projection | ChartLambertConformalConicProjection | the chart area projection to take the LCC parameters from |
Returns
void