[Geojson] GeoJSON in php - proposed implementation

Pierre GIRAUD bluecarto at gmail.com
Mon Nov 24 05:53:02 PST 2008


Hi all,

With this message I'm trying to get help or at least comments by
people interested in having a GeoJSON implementation in PHP.

A new project of ours necessitates that we implement the GeoJSON specs
in PHP (to be available as a symfony plugin).

We would like to implement this as a library into mapfish, and with a
possible standalone use.

First of all, we would be happy to have feedbacks by people who
already tried such an implementation.

In case there are none, following is detailed the classes we'll write
to achieve this :

 /*
  * A class to let us convert geometry coordinates into wkb
  * and back
  */
 - class WKB
  - method decode
  - method encode

 /**
  * Classes to manage geometries
  */
 - class Geometry
 - class Point extends Geometry
 - class LineString extends Geometry

 /**
  * Class to read or write GeoJSON features
  */
 - class GeoJSON
  - method decode
  - method encode

Any comment or feedback on this appreciated.

Regards,
Pierre



More information about the GeoJSON mailing list