public function coordinateDimension() : int
    {
        $coordinateDimension = 2;

        if ($this->hasZ) {
            $coordinateDimension++;
        }

        if ($this->hasM) {
            $coordinateDimension++;
        }

        return $coordinateDimension;
    }
public function coordinateDimension() : int
    {
        $coordinateDimension = 2;

        if ($this->hasZ) {
            $coordinateDimension++;
        }

        if ($this->hasM) {
            $coordinateDimension++;
        }

        return $coordinateDimension;
    }
public function coordinateDimension ( ) : int { $ coordinateDimension = 2 ; if ( $ this -> hasZ ) { $ coordinateDimension ++ ; } if ( $ this -> hasM ) { $ coordinateDimension ++ ; } return $ coordinateDimension ; }
Returns the coordinate dimension of this coordinate system.

The coordinate dimension is the total number of coordinates in the coordinate system.

@return int 2 for (X,Y), 3 for (X,Y,Z) and (X,Y,M), 4 for (X,Y,Z,M).
Returns the coordinate dimension of this coordinate system .