Class: LinearRing

ol/geom/LinearRing~LinearRing


import LinearRing from 'ol/geom/LinearRing';

Linear ring geometry. Only used as part of polygon; cannot be rendered on its own.

new LinearRing(coordinates, opt_layout)

geom/LinearRing.js, line 21
Name Type Description
coordinates Array.<module:ol/coordinate~Coordinate> | Array.<number>

Coordinates. For internal use, flat coordinates in combination with opt_layout are also accepted.

layout module:ol/geom/GeometryLayout

Layout.

Methods

clone(){module:ol/geom/LinearRing~LinearRing}

geom/LinearRing.js, line 58

Make a complete copy of the geometry.

Returns:
Clone.

getArea(){number}

geom/LinearRing.js, line 84

Return the area of the linear ring on projected plane.

Returns:
Area (on projected plane).

getCoordinates(){Array.<module:ol/coordinate~Coordinate>}

geom/LinearRing.js, line 94

Return the coordinates of the linear ring.

Returns:
Coordinates.

getType()

geom/LinearRing.js, line 114

setCoordinates(coordinates, opt_layout)

geom/LinearRing.js, line 130

Set the coordinates of the linear ring.

Name Type Description
coordinates Array.<module:ol/coordinate~Coordinate>

Coordinates.

layout module:ol/geom/GeometryLayout

Layout.