コード例 #1
0
ファイル: LineString.php プロジェクト: h-sn/geophp
 public function __construct($srid = null, $with_z = false, $with_m = false)
 {
     parent::__construct($srid, $with_z, $with_m);
     $this->binary_type = 2;
     $this->text_type = 'LINESTRING';
     $this->points = array();
 }
コード例 #2
0
ファイル: Polygon.php プロジェクト: h-sn/geophp
 public function __construct($srid = null, $with_z = false, $with_m = false)
 {
     parent::__construct($srid, $with_z, $with_m);
     $this->binary_type = 3;
     $this->text_type = 'POLYGON';
     $this->rings = array();
 }
コード例 #3
0
ファイル: GeometryCollection.php プロジェクト: h-sn/geophp
 public function __construct($srid = null, $with_z = false, $with_m = false)
 {
     parent::__construct($srid, $with_z, $with_m);
     $this->binary_type = 7;
     $this->text_type = 'GEOMETRYCOLLECTION';
     $this->geometries = array();
 }
コード例 #4
0
ファイル: Point.php プロジェクト: h-sn/geophp
 public function __construct($srid = null, $with_z = false, $with_m = false)
 {
     parent::__construct($srid, $with_z, $with_m);
     $this->binary_type = 1;
     $this->text_type = 'POINT';
     $this->x = 0;
     $this->y = 0;
     $this->z = 0;
     $this->m = 0;
 }
コード例 #5
0
ファイル: Point.class.php プロジェクト: rccc/simpleGeo
 public function __construct($x, $y)
 {
     $this->x = $x;
     $this->y = $y;
     parent::__construct(__CLASS__);
 }