Skip to content

Releases: teamzac/laravel-shapefiles

v0.6.1

02 Apr 16:56

Choose a tag to compare

Bug Fixes

  • Fixed coordinate transformation for all geometry types. The previous implementation hardcoded two levels of array nesting, which only worked for simple Polygons. Coordinate transformation now recursively walks the coordinate tree, correctly handling Points, LineStrings, Polygons (with holes), and MultiPolygons.
  • asJson() now respects transform(). Previously, asJson() always returned raw coordinates even after calling transform(). It now returns transformed coordinates, consistent with asGeoJson().

Added

  • GeometryContract interface and FakeGeometry implementation for easier testing
  • FakeReader and ReaderContract for stubbing shapefile reads in tests
  • Shapefiles facade and updated service provider
  • Comprehensive test coverage for geometry transformation across all GeoJSON geometry types

v0.6.0

26 Mar 16:37

Choose a tag to compare

Laravel 13 support

v0.5.0

25 Feb 18:27

Choose a tag to compare

Upgrade to Laravel 12 support