/** * Test Bounding Box to geometry * * @return void */ public function test_toGeometry() { $bb = new Util_BoundingBox(-180, -90, 180, 90); $geom = $bb->toGeometry(); $this->assertEquals('POLYGON((-180 -90,180 -90,180 90,-180 90,-180 -90))', $geom->toWKT()); $bb = new Util_BoundingBox(-1, -1, 1, 1); $geom = $bb->toGeometry(); $this->assertEquals('POLYGON((-1 -1,1 -1,1 1,-1 1,-1 -1))', $geom->toWKT()); }