Releases: dvdoug/PHPCoord
v4.6.0
v4.5.0
Changed
- Updates to data for Canada, Costa Rica, France, French Southern Territories, Kyrgistan, Liechtenstein, Poland, Russia, Switzerland, Tonga, UK, USA, Wallis and Futuna
- Many internal simplifications and optimisations, leading to faster conversions and a corresponding update of the maximum chain depth from 5 to 7
Fixed
- Some PHP8.1 deprecations
Deprecated
Compound::EPSG_RGF93_LAMBERT_93_PLUS_NGF_IGN69_HEIGHT
, useCompound::EPSG_RGF93_V1_LAMBERT_93_PLUS_NGF_IGN69_HEIGHT
insteadCompound::EPSG_RGF93_LAMBERT_93_PLUS_NGF_IGN78_HEIGHT
, useCompound::EPSG_RGF93_V1_LAMBERT_93_PLUS_NGF_IGN78_HEIGHT
insteadCompound::EPSG_RGF93_PLUS_NGF_IGN69_HEIGHT
, useCompound::EPSG_RGF93_V2_PLUS_NGF_IGN69_HEIGHT
insteadCompound::EPSG_RGF93_PLUS_NGF_IGN78_HEIGHT
, useCompound::EPSG_RGF93_V2_PLUS_NGF_IGN78_HEIGHT
insteadGeocentric::EPSG_CHTRF95
, useGeocentric::EPSG_CHTRS95
insteadGeocentric::EPSG_RGF93
, useGeocentric::EPSG_RGF93_V1
insteadGeographic2D::EPSG_CHTRF95
, useGeographic2D::EPSG_CHTRS95
insteadGeographic2D::EPSG_RGF93
, useGeographic2D::EPSG_RGF93_V1
insteadGeographic2D::EPSG_RGF93_LON_LAT
, useGeographic2D::EPSG_RGF93_V1_LON_LAT
insteadGeographic3D::EPSG_CHTRF95
, useGeographic3D::EPSG_CHTRS95
insteadGeographic3D::EPSG_RGF93
, useGeographic3D::EPSG_RGF93_V1
insteadGeographic3D::EPSG_RGF93_LON_LAT
, useGeographic3D::EPSG_RGF93_V1_LON_LAT
insteadProjected::EPSG_RGF93_CC42
, useProjected::EPSG_RGF93_V1_CC42
insteadProjected::EPSG_RGF93_CC43
, useProjected::EPSG_RGF93_V1_CC43
insteadProjected::EPSG_RGF93_CC44
, useProjected::EPSG_RGF93_V1_CC44
insteadProjected::EPSG_RGF93_CC45
, useProjected::EPSG_RGF93_V1_CC45
insteadProjected::EPSG_RGF93_CC46
, useProjected::EPSG_RGF93_V1_CC46
insteadProjected::EPSG_RGF93_CC47
, useProjected::EPSG_RGF93_V1_CC47
insteadProjected::EPSG_RGF93_CC48
, useProjected::EPSG_RGF93_V1_CC48
insteadProjected::EPSG_RGF93_CC49
, useProjected::EPSG_RGF93_V1_CC49
insteadProjected::EPSG_RGF93_CC50
, useProjected::EPSG_RGF93_V1_CC50
insteadProjected::EPSG_RGF93_LAMBERT_93
, useProjected::EPSG_RGF93_V1_LAMBERT_93
insteadDatum::EPSG_SWISS_TERRESTRIAL_REFERENCE_FRAME_1995
, useDatum::EPSG_SWISS_TERRESTRIAL_REFERENCE_SYSTEM_1995
insteadDatum::EPSG_RESEAU_GEODESIQUE_FRANCAIS_1993
, useDatum::EPSG_RESEAU_GEODESIQUE_FRANCAIS_1993_V1
instead
v4.4.0
Added
- Support for NTv2, OSTN15/OSGM15 and NADCON5 grid files. These require a relevant datapack
Changed
- Updates to data for Argentina, Belgium, Canada, Costa Rica, Czechia, Greenland, Italy, Russia, UK and USA
- Performance optimisations
- Supported PHP versions changed to
^7.4||^8.0
Deprecated
Compound::EPSG_BELGE_1972_BELGIAN_LAMBERT_72_PLUS_OSTEND_HEIGHT
, useCompound::EPSG_BD72_BELGIAN_LAMBERT_72_PLUS_OSTEND_HEIGHT
insteadGeographic2D::EPSG_BELGE_1950
, useGeographic2D::EPSG_BD50
insteadGeographic2D::EPSG_BELGE_1950_BRUSSELS
, useGeographic2D::EPSG_BD50_BRUSSELS
insteadGeographic2D::EPSG_BELGE_1972
, useGeographic2D::EPSG_BD72
insteadProjected::EPSG_BELGE_1950_BRUSSELS_BELGE_LAMBERT_50
, useProjected::EPSG_BD50_BRUSSELS_BELGE_LAMBERT_50
insteadProjected::EPSG_BELGE_1972_BELGE_LAMBERT_72
, useProjected::EPSG_BD72_BELGE_LAMBERT_72
insteadProjected::EPSG_BELGE_1972_BELGIAN_LAMBERT_72
, useProjected::EPSG_BD72_BELGIAN_LAMBERT_72
insteadVertical::EPSG_GENOA_HEIGHT
, useVertical::EPSG_GENOA_1942_HEIGHT
insteadDatum::EPSG_GENOA
, useDatum::EPSG_GENOA_1942
instead
v4.3.0
v4.2.0
Added
- More accurate extent data
Fixed
- Ensure projections still work even when origin points are on the other side of the antimeridian
Changed
- Updates to data for Australia, Poland, UK and US Gulf of Mexico
Deprecated
Compound::EPSG_OSGB_1936_BRITISH_NATIONAL_GRID_PLUS_ODN_HEIGHT
, useCompound::EPSG_OSGB36_BRITISH_NATIONAL_GRID_PLUS_ODN_HEIGHT
insteadGeographic2D::EPSG_OSGB_1936
, useGeographic2D::EPSG_OSGB36
insteadProjected::EPSG_OSGB_1936_BRITISH_NATIONAL_GRID
, useProjected::EPSG_OSGB36_BRITISH_NATIONAL_GRID
insteadProjected::EPSG_ETRS89_POLAND_CS2000_ZONE_5
, useProjected::EPSG_ETRF2000_PL_CS2000_15
insteadProjected::EPSG_ETRS89_POLAND_CS2000_ZONE_6
, useProjected::EPSG_ETRF2000_PL_CS2000_18
insteadProjected::EPSG_ETRS89_POLAND_CS2000_ZONE_7
, useProjected::EPSG_ETRF2000_PL_CS2000_21
insteadProjected::EPSG_ETRS89_POLAND_CS2000_ZONE_8
, useProjected::EPSG_ETRF2000_PL_CS2000_24
insteadProjected::EPSG_ETRS89_POLAND_CS92
, useProjected::EPSG_ETRF2000_PL_CS92
insteadDatum::EPSG_OSGB_1936
, useDatum::EPSG_ORDNANCE_SURVEY_OF_GREAT_BRITAIN_1936
instead
v4.1.0
Added
- Added
UTMPoint
as a better way of handling UTM zones than the EPSG model does it - Improved conversion chaining for
CompoundPoint
s
Changed
- Moved
verticalOffsetAndSlope
method fromCompoundPoint
toVerticalPoint
. This is technically a breaking change, but since the code is only 2 days old shouldn't affect anyone.
v4.0.1
4.0.0
PHPCoord v4 is a ground-up rewrite of the entire project starting over with a clean slate. The rewrite is based around the EPSG dataset, providing support for over 6200 worldwide coordinate systems (up from just 10 in PHPCoord v3).
For usage guide, see documentation.
License change: Please note with v4 the code has been relicensed from GPL to MIT. The EPSG dataset is made available under the EPSG license, see license.txt
for full details.
4.0.0 beta 1
PHPCoord v4 is a ground-up rewrite of the entire project starting over with a clean slate. The rewrite is based around the EPSG dataset, providing support for over 6200 worldwide coordinate systems (up from just 10 in PHPCoord v3).
This is a beta release, although there are no known bugs, there are some rough edges and missing features - in particular the following:
- Documentation is a big TODO (there is none). For now, please see the test suite for examples of usage (look for
->convert
) - Automatic "chaining" of coordinate conversions are not yet supported. For example, the software knows how to convert from the British National Grid to WGS84. The software also knows how to convert from WGS84 to the UTM zone system. However if you ask it to convert a British National Grid coordinate directly into its UTM equivalent it will error. You can work around this by explicitly doing the conversion in 2 steps.
- In v3, a UTM conversion resulted in a object with an explicit (and automatically calculated) zone id. With this beta, you must first specify whether the point is in the north or south hemisphere, and the automatically calculated zone is then prefixed to the x/easting coordinate rather than being made available seperately. This is in alignment with the EPSG methodology. A method to get an "old-style" result object will be added back soon.
License change: Please note with v4 the code has been relicensed from GPL to MIT. The EPSG dataset is made available under the EPSG license, see license.txt
for full details.