Module: src/getGjson

Methods

(static) getGjson(gr, toProjection, shape, scale) → {object}

Given a grid reference (British National Grid, Irish Grid or UTM zone 30N shorthand), a two-letter code defining the requested output projection, and a string indicating the shape of the required 'symbol', this function returns a GeoJson pth geometry object.
Parameters:
Name Type Description
gr string the grid reference.
toProjection string two letter code specifying the required output CRS.
shape string string specifying the requested output shape type.
scale number number between 0 and 1 to scale the output object.
Source:
To Do:
  • Extend to return all symbol types
Returns:
- a GeoJson path geometry object.
Type
object