Classes
Namespaces
Methods
-
<static> getElevationFromPixel(pixel)
-
Convert pixel (terrain-RGB) to elevation
Parameters:
Name Type Description pixelArray.<number> the pixel value
Returns:
elevation (-12000 if no data)
- Type
- number
-
<static> getMapCanvas(map)
-
Get a canvas overlay for a map (non rotated, on top of the map)
Parameters:
Name Type Description mapol.Map Returns:
- Type
- canvas
-
<static> getPixelFromElevation(height)
-
Convert elevation to pixel as terrain-RGB Encode elevation data in raster tiles
- max deep watter trench min > -12000 m
- 2 digits (0.01 m)
Parameters:
Name Type Description heightnumber elevation
Returns:
pixel value
- Type
- Array.<number>
-
<static> getVectorContextStyle(e, s)
-
Get style to use in a VectorContext
Parameters:
Name Type Description esol.style.Style Returns:
- Type
- ol.style.Style
-
<static> TextStreamReader(options)
-
Text file reader (chunk by chunk, line by line). Large files are read in chunks and returned line by line to handle read progress and prevent memory leaks.
Parameters:
Name Type Description optionsObject Properties
Name Type Argument Default Description fileFile <optional>
chunkSizenumber <optional>
1E6