Spatial and Geographic Data with PostGIS and Doctrine.
New major release which introduces a new dependency version support matrix.
Dependency | Supported Versions |
---|---|
PHP | ^8.0 |
PostGIS | 3.0 and 3.1 |
PostgreSQL | 11, 12 and 13 |
Doctrine ORM | ^2.9 |
Doctrine DBAL | ^2.13 and ^3.1 |
The following DQL functions have been removed, mostly because they are also no longer available in PostGIS:
ST_MakeBox3D
(use ST_3DMakeBox
instead)ST_AsKML
ST_Distance_Sphere
(use ST_DistanceSphere
instead)ST_Distance_Spheroid
(use ST_DistanceSpheroid
instead)ST_Length3D
(use ST_3DLength
instead)ST_Length_Spheroid
(use ST_LengthSpheroid
instead)ST_Length2D_Spheroid
ST_Shift_Longitude
(use ST_ShiftLongitude
instead)The dummy RasterType
has been removed. Register a custom type mapping
instead, e.g. $platform->registerDoctrineTypeMapping('raster', 'string')
.
Add parameter and return type declarations.
Switch from Travis CI to GitHub Actions for running CI pipeline.
Add Docker setup to allow running tests against the different supported PostgreSQL / PostGIS versions.
This release now allows installation on PHP 8.
Note: While it is possible to install this library on PHP 8, it is not officially support right now. Use with care and at your own risk.
primary
option when creating the Doctrine\DBAL\Schema\Column
object. This prevents triggering a deprecation error for DBAL >= 2.7. Thanks @simonwelsh (#38).ST_DistanceSphere
, ST_DistanceSpheroid
and ST_LengthSpheroid
. Those functions should be used in PostGIS 2.2 and onwards instead of the deprecated functions ST_Distance_Sphere
, ST_Distance_Spheroid
and ST_Length_Spheroid
. Thanks to @JunkMyFunk for the report (#32).ST_AddPoint
. Thanks @ltsstar (#26).Geography
.