Skip to content

Releases: creof/wkb-parser

v2.4.0

24 Mar 18:01
97ac770
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.3.0...v2.4

v2.3.0

22 May 22:49
Compare
Choose a tag to compare

[2.3.0] - 2016-05-22

Added

  • Tests for empty geometry objects.
  • getCurrentPosition() and getLastPosition methods in Reader to get position in byte stream.
  • Support for OCG 1.2 encoding of 3D and 4D geometry.
  • Method getBadTypeInTypeMessage() in Parser to generate helpful and descriptive exception message.
  • Badge and configuration for Coveralls.

Changed

  • NaN coordinates are not returned in point value array, empty point value now array().
  • Reader::readDouble() now deprecated and calls Reader::readFloat().
  • Reader::readDoubles() now deprecated and calls Reader::readFloats().
  • unpack() errors are now caught in unpackInput() and a library exception thrown.
  • Inner types (points in multipoint, etc.) are now checked for same dimensions of parent object.
  • The search for 'x' in hex values beginning with 'x' or '0x' is now case-insensitive.
  • Supported encoding and input formats added to documentation.
  • References for encodings added to documentation.
  • Lots of additional test data and cases, and cleanup.
  • Library exceptions now caught in readGeometry() and rethrown appending Reader position in message.
  • All thrown exceptions now have a message.
  • Now a single return for all code paths in Parser::getMachineByteOrder().
  • Tweaked tests and code for 100% coverage.
  • Updated travis config for coveralls.

2.2.0

03 May 12:59
Compare
Choose a tag to compare

[2.2.0] - 2016-05-03

Added

  • Added Tests namespace to Composer PSR-0 dev autoload.
  • Added 'dimension' key to returned array containing object dimensions (Z, M, or ZM).
  • Reader::getMachineByteOrder method to detect running platform endianness.

Changed

  • Parser property with Reader instance no longer static.
  • Replaced sprintf function call in Reader::unpackInput() with string concatenation.
  • Updated PHPUnit config to be compliant with XSD.
  • Updated PHPUnit config to use Composer autoload.
  • Updated documentation with new usage pattern.
  • Type name in returned array now contains only base type without dimensions (Z, M, and ZM).
  • Reader::readDouble() now checks running platform endianness before byte-swapping values instead of assuming little-endian.

Removed

  • Removed now unused TestInit