Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
- Module categories: Developer Tools, Integrations
- 16 sites report using this module
- Created by Jelle_S on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.0
released 13 April 2016
Works with Drupal: 7.x
Development version: 7.x-1.x-dev updated 6 Jul 2016 at 20:22 UTC