public function WktGenerator::wktBuildPolygon in Geofield 8
Returns a WKT format polygon feature given an array of points.
Parameters
array $points: The polygon components.
Return value
string The WKT polygon feature.
Overrides WktGeneratorInterface::wktBuildPolygon
1 call to WktGenerator::wktBuildPolygon()
- WktGenerator::wktGeneratePolygon in src/
WktGenerator.php - Returns a WKT format polygon feature.
File
- src/
WktGenerator.php, line 281
Class
- WktGenerator
- Helper class that generates WKT format geometries.
Namespace
Drupal\geofieldCode
public function wktBuildPolygon(array $points) {
return $this
->buildWkt(GEOFIELD_TYPE_POLYGON, $this
->buildPolygon($points));
}