Skip to content

About

Spatial Encoder is a PHP library that encodes spatial geometry objects into standardized interchange formats such as WKT, EWKT, WKB, EWKB, GeoJSON, and MySQL’s internal binary format.

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Spatial Encoder

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.

Current status

longitude-one/spatial--encoder Stable release Minimum PHP Version Packagist License

Last integration test Downloads codecov

Installation

composer require longitude-one/spatial-encoder:1.0.0-RC.0

About

Spatial Encoder is a PHP library that encodes spatial geometry objects into standardized interchange formats such as WKT, EWKT, WKB, EWKB, GeoJSON, and MySQL’s internal binary format.

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages