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
- proj4php library (download to sites/all/libraries/proj4php).
- Libraries API
- X Autoload
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
- Project categories: Developer tools, Integrations
8 sites report using this module
- Created by jelle_s on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
