Search by

longitude-one / spatial-writer

Alexandre-T

This library convert any spatial interfaces to different binary and/or string format.

Package info

github.com/longitude-one/spatial-writer

pkg:composer/longitude-one/spatial-writer

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

0.0.0-alpha 2024-08-08 17:50 UTC

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

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

Last integration test Downloads codecov

Installation

composer require longitude-one/spatial-writer