constructors
Last updated
Was this helpful?
Last updated
Was this helpful?
This module contains functions that create new geographies from coordinates or already existing geographies.
Description
Takes a line and returns a curved version of it by applying a Bezier spline algorithm. Note that the resulting geography will be a LineString with additional points inserted.
geog
: GEOGRAPHY
input LineString.
resolution
: INT64
|NULL
total time in milliseconds assigned to the line. If NULL
the default value 10000
is used. Internal curve vertices are generated in 10 ms increments, so the maximum number of resulting points will be resolution/10
(close points may be merged resulting in less points). A higher number will increase the accuracy of the result but will increase the computation time and number of points.
sharpness
: FLOAT64
|NULL
a measure of how curvy the path should be between splines. If NULL
the default value 0.85
is used.
Example
Description
Takes a Point and calculates the ellipse polygon given two semi-axes expressed in variable units and steps for precision.
center
: GEOGRAPHY
center point.
xSemiAxis
: FLOAT64
semi (major) axis of the ellipse along the x-axis.
ySemiAxis
: FLOAT64
semi (minor) axis of the ellipse along the y-axis.
angle
: FLOAT64
|NULL
angle of rotation (along the horizontal axis), from East in decimal degrees, positive clockwise. If NULL
the default value 0
is used.
units
: STRING
|NULL
units of length, the supported options are: miles, kilometers, and degrees. If NULL
the default value kilometers
is used.
steps
: INT64
|NULL
number of steps. If NULL
the default value 64
is used.
Example
Description Creates a rectangular Polygon from the minimum and maximum values for X and Y.
xmin
: FLOAT64
minimum value for X.
ymin
: FLOAT64
minimum value for Y.
xmax
: FLOAT64
maximum value for X.
ymax
: FLOAT64
maximum value for Y.
Return type
GEOGRAPHY
Example
zoomLevel
: INT64
zoom level of the tile.
xTile
: INT64
X index of the tile.
yTile
: INT64
Y index of the tile.
Return type
GEOGRAPHY
Example
Description Returns the boundary polygon of a given its zoom level and its X and Y indices.
This project has received funding from the research and innovation programme under grant agreement No 960401.