Copied!

Convert class

CloneableInstantiable
Constants
public League\Geotools\Convert\ConvertInterface::DECIMAL_MINUTES_MODE = 3
 

Round mode ofr decimal minutes values.

  • var string
public League\Geotools\Convert\ConvertInterface::DECIMAL_MINUTES_PRECISION = 5
 

Round precision for decimal minutes values.

  • var int
public League\Geotools\Convert\ConvertInterface::DEFAULT_DDM_FORMAT = '%L %P%D° %N %l %p%d° %n'
 

The default format for degree decimal minutes coordinates.

  • var string
public League\Geotools\Convert\ConvertInterface::DEFAULT_DM_FORMAT = '%P%D %N%L, %p%d %n%l'
 

The default format for decimal minutes coordinates.

  • var string
public League\Geotools\Convert\ConvertInterface::DEFAULT_DMS_FORMAT = '%D°%M′%S″%L, %d°%m′%s″%l'
 

The default format for degrees minutes seconds coordinates.

  • var string
public League\Geotools\Convert\ConvertInterface::DEGREE_DECIMAL_MINUTES_PRECISION = 3
 

Round precision for degree decimal minutes values.

  • var int
public League\Geotools\Convert\ConvertInterface::LATITUDE_DECIMAL_MINUTES = '%N'
 

Latitude in decimal minutes.

  • var string
public League\Geotools\Convert\ConvertInterface::LATITUDE_DEGREES = '%D'
 

Latitude in degrees.

  • var string
public League\Geotools\Convert\ConvertInterface::LATITUDE_DIRECTION = '%L'
 

The direction of the latitude.

  • var string
public League\Geotools\Convert\ConvertInterface::LATITUDE_MINUTES = '%M'
 

Latitude in minutes.

  • var string
public League\Geotools\Convert\ConvertInterface::LATITUDE_SECONDS = '%S'
 

Latitude in seconds.

  • var string
public League\Geotools\Convert\ConvertInterface::LATITUDE_SIGN = '%P'
 

The sign of the latitude.

  • var string
public League\Geotools\Convert\ConvertInterface::LONGITUDE_DECIMAL_MINUTES = '%n'
 

Longitude in decimal minutes.

  • var string
public League\Geotools\Convert\ConvertInterface::LONGITUDE_DEGREES = '%d'
 

Longitude in degrees.

  • var string
public League\Geotools\Convert\ConvertInterface::LONGITUDE_DIRECTION = '%l'
 

The direction of the longitude.

  • var string
public League\Geotools\Convert\ConvertInterface::LONGITUDE_MINUTES = '%m'
 

Longitude in minutes.

  • var string
public League\Geotools\Convert\ConvertInterface::LONGITUDE_SECONDS = '%s'
 

Longitude in seconds.

  • var string
public League\Geotools\Convert\ConvertInterface::LONGITUDE_SIGN = '%p'
 

The sign of the longitude.

  • var string
Methods
public __construct(League\Geotools\Coordinate\CoordinateInterface $coordinates)
 

Set the coordinate to convert.

  • param \CoordinateInterface $coordinates The coordinate to convert.
public toDecimalMinutes( $format = '%P%D %N%L, %p%d %n%l'League\Geotools\Convert\ConvertInterface::DEFAULT_DM_FORMAT)
 
    public toDegreeDecimalMinutes( $format = '%L %P%D° %N %l %p%d° %n'League\Geotools\Convert\ConvertInterface::DEFAULT_DDM_FORMAT)
     
      public toDegreesMinutesSeconds( $format = '%D°%M′%S″%L, %d°%m′%s″%l'League\Geotools\Convert\ConvertInterface::DEFAULT_DMS_FORMAT)
       
        public toDM( $format = '%P%D %N%L, %p%d %n%l'League\Geotools\Convert\ConvertInterface::DEFAULT_DM_FORMAT)
         

        Alias of toDecimalMinutes function.

        • param string $format The way to format the DMS coordinate.
        • deprecated This alias is deprecated, use toDecimalMinutes()
        • return string Converted and formatted string.
        public toDMS( $format = '%D°%M′%S″%L, %d°%m′%s″%l'League\Geotools\Convert\ConvertInterface::DEFAULT_DMS_FORMAT)
         

        Alias of toDegreesMinutesSeconds function.

        • param string $format The way to format the DMS coordinate.
        • deprecated This alias is deprecated, use toDegreesMinutesSeconds()
        • return string Converted and formatted string.
        public toUniversalTransverseMercator()
         
          public toUTM()
           

          Alias of toUniversalTransverseMercator function.

          • deprecated This alias is deprecated, use toUniversalTransverseMercator()
          • return string The converted UTM coordinate in meters
          Properties
          protected $coordinates = NULL
           

          The coordinate to convert.

          • var \CoordinateInterface
          Methods
          private parseCoordinate( $coordinate)
           

          Parse decimal degrees coordinate to degrees minutes seconds and decimal minutes coordinate.

          • param string $coordinate The coordinate to parse.
          • return array The replace pairs values.
          © 2024 Bruce Wells
          Search Namespaces \ Classes
          Configuration