arenevier/gisconverter.php — pull request #4 by rjmackay (2013-07-15 07:01:08+00:00)
Title: Split toGeoJSON into 2 functions

Splits toGeoJSON into 1 function to build the array, another to encode.

This means you can get the array to push into another GeoJSON array
before encoding, and avoid decoding just to reencode.