You are here

public function WktGenerator::wktBuildMultipolygon in Geofield 8

Returns a WKT format multipolygon feature given an array of polygon points.

Parameters

array $rings: The array of polygon arrays.

Return value

string The WKT multipolygon feature.

Overrides WktGeneratorInterface::wktBuildMultipolygon

File

src/WktGenerator.php, line 332

Class

WktGenerator
Helper class that generates WKT format geometries.

Namespace

Drupal\geofield

Code

public function wktBuildMultipolygon(array $rings) {
  return $this
    ->buildWkt(GEOFIELD_TYPE_MULTIPOLYGON, $this
    ->buildMultipolygon($rings));
}