longitude-one / binary-writer
This library convert any spatial interfaces to different binary and/or string format.
0.0.0-alpha
2024-08-08 17:50 UTC
Requires
- php: ^8.1
- longitude-one/spatial-types: 0.0.*
Requires (Dev)
- jetbrains/phpstorm-attributes: ^1.1
- phpunit/phpunit: ^10
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-14 18:18:38 UTC
README
The writer module provide an interface to convert any SpatialInterfaces to other formats.
This library provides five strategies to convert spatial interfaces to other formats:
- A strategy to convert any spatial interfaces to extended well known binary (EWKB).
- Another one to convert any spatial interfaces to ISO well known binary (WKB).
- A strategy to convert spatial interfaces to the internal MySQL storage format.
- A strategy to convert spatial interfaces to well-known text (WKT).
- A strategy to convert spatial interfaces to extended well-known text (EWKT), including a nonzero SRID.
Feel free to provide any other strategy to convert spatial interfaces to other formats.
See the strategy guide for a comparison of the five formats, usage examples, implementation limits, and links to reference documentation.
Current status
Installation
composer require longitude-one/spatial-writer