0.6.0
✨ New features
- Proper support for
Feature
andFeatureCollection
inGeoJSONReader
andGeoJSONWriter
- Support for auto-calculating the
bbox
attribute inGeoJSONWriter
- New method:
Geometry::transform()
transformsGeometry
coordinates to a new SRID - New method:
Geometry::toXY()
returns a newGeometry
with noZ
andM
coordinates - New method:
Geometry::withoutZ()
returns a newGeometry
with theZ
coordinate removed - New method:
Geometry::withoutM()
returns a newGeometry
with theM
coordinate removed - New method:
Geometry::getBoundingBox()
returns the south-west and north-east bounds of a Geometry - New method:
CoordinateSystem::isEqualTo()
compares against anotherCoordinateSystem
🐛 Fixes
- Doctrine types could hydrate a parent Geometry proxy class, but now hydrate the correct Geometry proxy sub-class by introspecting the WKB without fully loading it
✨ Improvements
- Proxy data is now always sent as is to the
DatabaseEngine
💥 BC breaks
- Minimum PHP version is now 7.4
- New signature for
CoordinateSystemException::sridMix()
- New signature for
CoordinateSystemException::dimensionalityMix()
The following breaks only affect you if you use the GeoJSON reader/writer:
GeoJSONReader
now instantiates Features and FeatureCollections asFeature
andFeatureCollection
objects, instead ofGeometry
andGeometryCollection
objectsGeoJSONWriter
will now write GeometryCollections asGeometryCollection
type, instead ofFeatureCollection
The following breaks will only affect you if you're writing your own geometry engine, or your own WKB reader:
AbstractWKBReader::readGeometryHeader()
signature was changedWKBReader::read()
signature was changedGeometryEngine
has a newtransform()
methodProxyInterface
has a newisProxyBinary()
method