Repository navigation
Releases
Releases · willvincent/polyclip
1.2
🐞 Fixed:
-
Return NULL instead of Polygon without coordinates.
If no coordinates are set, the return should be null instead of a Polygon with no coordinates.
The reasoning behind this is that you cannot call
getCoordinates()on a Geometry with no coordinates,
but you can callgetGeometry()on a Feature with no geometry. This is important as coordinates is a
private property and we can't otherwise check if a geometry has coordinates or not without json encoding
looking at the resulting object/array.