PHP code example of amestsantim / wkt2epsg

1. Go to this page and download the library: Download amestsantim/wkt2epsg library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

amestsantim / wkt2epsg example snippets



mestsantim\wkt2epsg\Translator;

$finder = new Translator();
echo "EPSG code is " . $finder->wktToEpsg('your wkt string');

$finder = amestsantim\wkt2epsg\Translator();

$finder->epsgToWkt('epsg code');
// Equivalent WKT string or null (if not found)

$finder->wktToEpsg('wkt string');
// Equivalent EPSG code or null (if not found)