lib/CrEOF/Geo/WKT/Parser.php
public function parse($input = null)
    {
        if (null !== $input) {
            $this->input = $input;
        }

        $this->lexer->setInput($this->input);
        $this->lexer->moveNext();

        $this->srid      = null;
        $this->dimension = null;

        if ($this->lexer->isNextToken(Lexer::T_SRID)) {
            $this->srid = $this->srid();
        }

        $geometry              = $this->geometry();
        $geometry['srid']      = $this->srid;
        $geometry['dimension'] = '' === $this->dimension ? null : $this->dimension;

        return $geometry;
    }
public function parse($input = null)
    {
        if (null !== $input) {
            $this->input = $input;
        }

        $this->lexer->setInput($this->input);
        $this->lexer->moveNext();

        $this->srid      = null;
        $this->dimension = null;

        if ($this->lexer->isNextToken(Lexer::T_SRID)) {
            $this->srid = $this->srid();
        }

        $geometry              = $this->geometry();
        $geometry['srid']      = $this->srid;
        $geometry['dimension'] = '' === $this->dimension ? null : $this->dimension;

        return $geometry;
    }
@param string|null $input

@return array