PHP Class League\Geotools\Convert\Convert

Author: Antoine Corcy ([email protected])
Inheritance: extends League\Geotools\AbstractGeotools, implements League\Geotools\Convert\ConvertInterface
Datei anzeigen Open project: toin0u/geotools Class Usage Examples

Protected Properties

Property Type Description
$coordinates League\Geotools\Coordinate\CoordinateInterface The coordinate to convert.

Public Methods

Method Description
__construct ( League\Geotools\Coordinate\CoordinateInterface $coordinates ) Set the coordinate to convert.
toDM ( string $format = ConvertInterface::DEFAULT_DM_FORMAT ) : string Alias of toDecimalMinutes function.
toDMS ( string $format = ConvertInterface::DEFAULT_DMS_FORMAT ) : string Alias of toDegreesMinutesSeconds function.
toDecimalMinutes ( $format = ConvertInterface::DEFAULT_DM_FORMAT ) {@inheritDoc}
toDegreesMinutesSeconds ( $format = ConvertInterface::DEFAULT_DMS_FORMAT ) {@inheritDoc}
toUTM ( ) : string Alias of toUniversalTransverseMercator function.
toUniversalTransverseMercator ( ) {@inheritDoc}

Private Methods

Method Description
parseCoordinate ( string $coordinate ) : array Parse decimal degrees coordinate to degrees minutes seconds and decimal minutes coordinate.

Method Details

__construct() public method

Set the coordinate to convert.
public __construct ( League\Geotools\Coordinate\CoordinateInterface $coordinates )
$coordinates League\Geotools\Coordinate\CoordinateInterface The coordinate to convert.

toDM() public method

Alias of toDecimalMinutes function.
public toDM ( string $format = ConvertInterface::DEFAULT_DM_FORMAT ) : string
$format string The way to format the DMS coordinate.
return string Converted and formatted string.

toDMS() public method

Alias of toDegreesMinutesSeconds function.
public toDMS ( string $format = ConvertInterface::DEFAULT_DMS_FORMAT ) : string
$format string The way to format the DMS coordinate.
return string Converted and formatted string.

toDecimalMinutes() public method

{@inheritDoc}
public toDecimalMinutes ( $format = ConvertInterface::DEFAULT_DM_FORMAT )

toDegreesMinutesSeconds() public method

{@inheritDoc}
public toDegreesMinutesSeconds ( $format = ConvertInterface::DEFAULT_DMS_FORMAT )

toUTM() public method

Alias of toUniversalTransverseMercator function.
public toUTM ( ) : string
return string The converted UTM coordinate in meters

toUniversalTransverseMercator() public method

{@inheritDoc}

Property Details

$coordinates protected_oe property

The coordinate to convert.
protected CoordinateInterface,League\Geotools\Coordinate $coordinates
return League\Geotools\Coordinate\CoordinateInterface