The encoder module provides an interface for encoding any SpatialInterface into other formats.
This library provides five strategies for encoding spatial interfaces into other formats:
- A strategy for encoding any spatial interface into Extended Well-Known Binary (EWKB).
- A strategy for encoding any spatial interface into ISO Well-Known Binary (WKB).
- A strategy for encoding spatial interfaces into the internal MySQL storage format.
- A strategy for encoding spatial interfaces into Well-Known Text (WKT).
- A strategy for encoding spatial interfaces into Extended Well-Known Text (EWKT), including a non-zero SRID.
Feel free to provide additional strategies for encoding spatial interfaces into other formats.
See the strategy guide for a comparison of the five formats, usage examples, implementation limitations, and links to reference documentation.
composer require longitude-one/spatial-encoder:1.0.0-RC.0