League\Geotools\Coordinate\Ellipsoid::getAvailableEllipsoidNames PHP Method

getAvailableEllipsoidNames() public static method

Returns the list of available ellipsoids sorted by alphabetical order.
public static getAvailableEllipsoidNames ( ) : string
return string The list of available ellipsoids comma separated.
    public static function getAvailableEllipsoidNames()
    {
        ksort(self::$referenceEllipsoids);
        return implode(', ', array_keys(self::$referenceEllipsoids));
    }

Usage Example

Esempio n. 1
0
    protected function configure()
    {
        $availableEllipsoids = Ellipsoid::getAvailableEllipsoidNames();
        $this->setName('vertex:final-bearing')->setDescription('Compute the final bearing in degrees between 2 coordinates')->addArgument('origin', InputArgument::REQUIRED, 'The origin "Lat,Long" coordinate')->addArgument('destination', InputArgument::REQUIRED, 'The destination "Lat,Long" coordinate')->addOption('ellipsoid', null, InputOption::VALUE_REQUIRED, 'If set, the name of the ellipsoid to use', Ellipsoid::WGS84)->setHelp(<<<EOT
<info>Available ellipsoids</info>: {$availableEllipsoids}

<info>Example with GRS_1980 ellipsoid</info>:

    %command.full_name% "40° 26.7717, -79° 56.93172" "30°16′57″N 029°48′32″W" <comment>--ellipsoid=GRS_1980</comment>
EOT
);
    }
All Usage Examples Of League\Geotools\Coordinate\Ellipsoid::getAvailableEllipsoidNames