PHP code example of geo-io / crs

1. Go to this page and download the library: Download geo-io/crs 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/ */

    

geo-io / crs example snippets


echo GeoIO\CRS\def_to_srid('urn:ogc:def:crs:OGC:1.3:CRS84')."\n";
echo GeoIO\CRS\def_to_srid('http://spatialreference.org/ref/epsg/4322')."\n";

echo GeoIO\CRS\srid_to_urn(4326)."\n";
echo GeoIO\CRS\srid_to_urn(4322)."\n";