Skip to content

Releases: dvdoug/PHPCoord

v5.5.0

07 Jul 21:45
Compare
Choose a tag to compare

Added

  • Support for Lambert Cylindrical Equal Area (Spherical) projection

Changed

  • Infer a current epoch when doing time-dependant transforms and no explicit epoch is supplied
  • Updates to data for Polar regions, Algeria and Spain

Deprecated

  • The namespace of all *Point classes have been tidied up and changed to from PHPCoord to PHPCoord\Point e.g.
    PHPCoord\GeographicPoint is now PHPCoord\Point\GeographicPoint. An alias has been provided, all existing
    code referencing the old names will continue to work

v5.4.0

27 May 22:13
Compare
Choose a tag to compare

Added

  • Added getSupportedSRIDsWithHelp() as a version of getSupportedSRIDs() that returns at runtime the inline help
    available within the source code

Changed

  • Updates to data for Algeria, Bosnia and Herzegovina, Denmark, Germany, Latvia and USA

v5.3.1

20 Feb 22:02
Compare
Choose a tag to compare

Changed

  • Further enhancements to coordinate conversion from a CompoundPoint

v5.3.0

19 Feb 23:08
Compare
Choose a tag to compare

Added

  • Support for converting coordinates from a CompoundPoint where the horizontal component is Projected to a 3D CRS

Changed

  • Updates to data for ETRS89, Colombia, Slovenia, USA and UK

Fixed

  • Don't use 2D CRS as intermediate in a chain when converting from/to a 3D CRS

v5.2.0

08 Jan 16:45
Compare
Choose a tag to compare

Changed

  • Updates to data for IGS, Japan and UK

Fixed

  • Improved handling of extent polygon buffering involving complex shapes (e.g. Netherlands)
  • Fixed longitude wraparound issue with GTX grids

v5.1.0

10 Nov 20:09
Compare
Choose a tag to compare

Added

  • Support for 3D projected coordinates
  • Support for custom coordinate reference systems and custom conversions

Changed

  • Updates to data for ITRF, WGS84, Australia, Belgium, Canada, France, Germany, Iceland, Indonesia, Ireland, Japan, Luxembourg, Norway, North Macedonia, UK and USA
  • Some internal simplifications and optimisations

Fixed

  • Improved handling of longitudes greater than 180 degrees
  • Corrected conversion of geocentric coordinates to geographic coordinates when using a non-Greenwich prime meridian

v4.7.0

26 Jun 14:23
Compare
Choose a tag to compare

The v4.x series is receiving basic maintenance only. All feature development takes place in v5.x.
This is because one of PHP8.1's new deprecations required a significant non-backwards compatible change to address.

Fixed

  • Improved handling of longitudes greater than 180 degrees
  • Corrected conversion of geocentric coordinates to geographic coordinates when using a non-Greenwich prime meridian

Changed

  • Updates to data for ITRF, WGS84, Australia, Belgium, Canada, France, Germany, Iceland, Ireland, Japan, Luxembourg, Norway, North Macedonia, UK and USA

v5.0.1

29 Jan 17:51
Compare
Choose a tag to compare

Fixed

  • Guard against divide by zero issues when calculating distance between two points

v4.6.1

29 Jan 16:29
Compare
Choose a tag to compare

Fixed

  • Guard against divide by zero issues when calculating distance between two points

v5.0.0

12 Nov 14:03
Compare
Choose a tag to compare

Added

  • Support for IGN France geocentric translation by grid interpolation. This requires the Europe datapack
  • Support for vertical grid files. These require a relevant datapack

Changed

  • The signatures of all *Point::create*() methods have been changed to put the CRS first. Previously the distance/direction values came first. This is to ensure that all optional parameters are at the end of the signature, addressing a PHP8.1 deprecation.

    Example:

    // in v4
    GeographicPoint::create(
        Angle $latitude,
        Angle $longitude,
        ?Length $height = null,
        Geographic $crs, // was after distance/direction
        ?DateTimeInterface $epoch = null
    ): GeographicPoint
    
    // in v5
    GeographicPoint::create(
        Geographic $crs, // now goes first
        Angle $latitude,
        Angle $longitude,
        ?Length $height = null,
        ?DateTimeInterface $epoch = null
    ): GeographicPoint
    
  • Updates to data for Canada, Norway, UK

  • Some internal simplifications and optimisations

  • Supported PHP versions changed to ^8.0