コード例 #1
0
ファイル: FeatureTest.php プロジェクト: rickogden/Location
 public function testBBox()
 {
     $line = new LineString([[2, 3], [4, 5]]);
     $feature = new Feature();
     $feature->setGeometry($line);
     $feature->enableBBox();
     $json = $feature->jsonSerialize();
     $this->assertTrue(is_array($json['bbox']));
 }