Skip to content

Commit

Permalink
Implemented Point::boundary() in PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Mar 20, 2015
1 parent d3bf5db commit 020e6cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 10 additions & 0 deletions src/Point.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,16 @@ public function envelope()
return $this->noZM();
}

/**
* @noproxy
*
* {@inheritdoc}
*/
public function boundary()
{
return GeometryCollection::xy([], $this->srid);
}

/**
* @noproxy
*
Expand Down
3 changes: 0 additions & 3 deletions tests/PointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,6 @@ public function testBoundary($point)
{
$point = Point::fromText($point);

$this->is3D($point->is3D());
$this->isMeasured($point->isMeasured());

$this->assertWktEquals($point->boundary(), 'GEOMETRYCOLLECTION EMPTY');
$this->assertWktEquals($point->withSRID(4326)->boundary(), 'GEOMETRYCOLLECTION EMPTY', 4326);
}
Expand Down

0 comments on commit 020e6cc

Please sign in to comment.