Releases: dvdoug/PHPCoord
Releases · dvdoug/PHPCoord
v5.5.0
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 fromPHPCoord
toPHPCoord\Point
e.g.
PHPCoord\GeographicPoint
is nowPHPCoord\Point\GeographicPoint
. An alias has been provided, all existing
code referencing the old names will continue to work
v5.4.0
v5.3.1
v5.3.0
Added
- Support for converting coordinates from a
CompoundPoint
where the horizontal component isProjected
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
v5.1.0
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
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
v4.6.1
v5.0.0
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