You are here

public function WktGeneratorInterface::wktGeneratePolygon in Geofield 8

Returns a WKT format polygon feature.

Parameters

array $start: The starting point. If not provided, will be randomly generated.

int $segments: Number of segments. If not provided, will be randomly generated.

Return value

string The WKT polygon feature.

1 method overrides WktGeneratorInterface::wktGeneratePolygon()
WktGenerator::wktGeneratePolygon in src/WktGenerator.php
Returns a WKT format polygon feature.

File

src/WktGeneratorInterface.php, line 104

Class

WktGeneratorInterface
Defines an interface for WktGenerator.

Namespace

Drupal\geofield

Code

public function wktGeneratePolygon(array $start = NULL, $segments = NULL);