Home

Awesome

GeoJSON to Image

This is a PHP class for generate Image from GeoJSON.

How to use

include(__DIR__ . '/GeoJSON2Image.php');
$max_size = 1000;
$ret = GeoJSON2Image::json2image($json, $max_size);
$ret->image;   // GD Image object
$ret->boundry; // array(min_x, max_x, min_y, max_y) boundry

Files