SRID = $geometry->getSRID(); $this->hasSRID = $this->SRID !== null; return parent::write($geometry, $writeAsHex, $bigEndian); } protected function writeType($type, $writeSRID = false) { return parent::writeType($type, true); } }