Example #1
0
 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();
 }
Example #2
0
 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();
 }
Example #3
0
 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();
 }
Example #4
0
 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;
 }
Example #5
0
 public function __construct($x, $y)
 {
     $this->x = $x;
     $this->y = $y;
     parent::__construct(__CLASS__);
 }