Provides a drupal module to load the proj4php library with the Libraries API.

Uses the X Autoload module to autoload the PSR-4 classes of the proj4php library.

Dependencies

Usage

libraries_load('proj4php');
// Initialise Proj4
$proj4 = new proj4php\Proj4php();

// Create two different projections.
$projL93    = new proj4php\Proj('EPSG:2154', $proj4);
$projWGS84  = new proj4php\Proj('EPSG:4326', $proj4);

// Create a point.
$pointSrc = new proj4php\Point(6630849.4941, 414287.565, $projL93);

// Transform the point between datums.
$pointDest = $proj4->transform($projWGS84, $pointSrc);

Project information

Releases