Class: ZeroElevationModel

ZeroElevationModel()

Represents an elevation model whose elevations are zero at all locations.

Constructor

new ZeroElevationModel()

Constructs a Zero elevation model whose elevations are zero at every location.
Source:

Extends

Members

(readonly) cachePath :String

A unique string identifying this elevation model relative to other elevation models in use.
Type:
  • String
Inherited From:
Source:

(readonly) coverageSector :Sector

The sector this elevation model spans.
Type:
Inherited From:
Source:

displayName :string

Indicates this elevation model's display name.
Type:
  • string
Overrides:
Default Value:
  • "Zero Elevations"
Source:

(readonly) levels :LevelSet

The LevelSet created during construction of this elevation model.
Type:
  • LevelSet
Inherited From:
Source:

(readonly) maxElevation :number

This elevation model's maximum elevation, which is always 0.
Type:
  • number
Overrides:
Default Value:
  • 0
Source:

(readonly) minElevation :number

This elevation model's minimum elevation, which is always 0.
Type:
  • number
Overrides:
Default Value:
  • 0
Source:

pixelIsPoint :Boolean

Indicates whether the data associated with this elevation model is point data. A value of false indicates that the data is area data (pixel is area).
Type:
  • Boolean
Inherited From:
Default Value:
  • true
Source:

(readonly) retrievalImageFormat :String

The mime type to use when retrieving elevations.
Type:
  • String
Inherited From:
Source:

(readonly) timestamp :number

Indicates the last time this elevation model changed. Since a zero elevation model never changes, this property always returns the date and time at which the elevation model was constructed, in milliseconds since midnight Jan 1, 1970.
Type:
  • number
Overrides:
Default Value:
  • Date.getTime() at construction
Source:

Methods

elevationAtLocation(latitude, longitude) → {Number}

Returns 0 as the elevation at a specified location.
Parameters:
Name Type Description
latitude Number The location's latitude in degrees.
longitude Number The location's longitude in degrees.
Overrides:
Source:
Returns:
0.
Type
Number

elevationsForGrid(sector, numLat, numLon, targetResolution, result) → {Number}

Returns the elevations at locations within a specified sector. For this elevation model they are all 0.
Parameters:
Name Type Description
sector Sector The sector for which to determine the elevations.
numLat Number The number of latitudinal sample locations within the sector.
numLon Number The number of longitudinal sample locations within the sector.
targetResolution Number The desired elevation resolution.
result Array.<Number> An array of size numLat x numLon to contain the requested elevations. This array must be allocated when passed to this function.
Overrides:
Source:
Throws:
If the specified sector or result array is null or undefined, if either of the specified numLat or numLon values is less than 1, or the result array is not of sufficient length to hold numLat x numLon values.
Type
ArgumentError
Returns:
The resolution actually achieved, which may be greater than that requested if the elevation data for the requested resolution is not currently available.
Type
Number

minAndMaxElevationsForSector(sector) → {Array.<Number>}

Returns minimum and maximum elevations of 0.
Parameters:
Name Type Description
sector Sector The sector for which to determine extreme elevations.
Overrides:
Source:
Returns:
An array containing minimum and maximum elevations of 0.
Type
Array.<Number>