for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace League\Geotools\Polygon;
use League\Geotools\Coordinate\CoordinateInterface;
use League\Geotools\GeometryCollection;
class MultiPolygon extends GeometryCollection implements PolygonInterface
{
const TYPE = 'MULTIPOLYGON';
/**
* @return string
*/
public function getGeometryType()
return self::TYPE;
}
* @param CoordinateInterface $coordinate
* @return boolean
public function pointInPolygon(CoordinateInterface $coordinate)
/** @var PolygonInterface $polygon */
foreach ($this->elements as $polygon) {
if ($polygon->pointInPolygon($coordinate)) {
return true;
return false;
public function pointOnBoundary(CoordinateInterface $coordinate)
if ($polygon->pointOnBoundary($coordinate)) {
public function pointOnVertex(CoordinateInterface $coordinate)
if ($polygon->pointOnVertex($coordinate)) {