Copied!

Convert interface

Abstract Interface
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 abstract toDecimalMinutes ( $format = '%P%D %N%L, %p%d %n%l' League\Geotools\Convert\ConvertInterface::DEFAULT_DM_FORMAT)
 

Convert and format a decimal degree coordinate to decimal minutes coordinate.

  • param string $format The way to format the DMS coordinate.
  • return string Converted and formatted string.
public abstract toDegreeDecimalMinutes ( $format = '%L %P%D° %N %l %p%d° %n' League\Geotools\Convert\ConvertInterface::DEFAULT_DDM_FORMAT)
 

Convert and format a decimal degree coordinate to degree decimal minutes coordinate.

  • param string $format The way to format the DDM coordinate.
  • return string Converted and formatted string.
public abstract toDegreesMinutesSeconds ( $format = '%D°%M′%S″%L, %d°%m′%s″%l' League\Geotools\Convert\ConvertInterface::DEFAULT_DMS_FORMAT)
 

Convert and format a decimal degree coordinate to degrees minutes seconds coordinate.

  • param string $format The way to format the DMS coordinate.
  • return string Converted and formatted string.
public abstract toUniversalTransverseMercator ()
 

Converts a WGS84 decimal degrees coordinate in the Universal Transverse Mercator projection (UTM).

  • return string The converted UTM coordinate in meters.
  • see http://www.uwgb.edu/dutchs/UsefulData/UTMFormulas.HTM
  • see http://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration