2017 © Pedro Peláez
 

library crs

Coordinate Reference System (CRS) utilities.

image

geo-io/crs

Coordinate Reference System (CRS) utilities.

  • Tuesday, February 9, 2016
  • by jsor
  • Repository
  • 1 Watchers
  • 1 Stars
  • 304 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Geo I/O CRS

Build Status Coverage Status, (*1)

Coordinate Reference System (CRS) utilities., (*2)

Installation

Install through composer. Check the packagist page for all available versions., (*3)

composer require geo-io/crs

Usage

def_to_srid

Converts a CRS definition to a Spatial Reference System Identifier (SRID)., (*4)

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";

The above example will produce the following output., (*5)

4326
4322

If the definition can't be converted to a SRID, it throws a GeoIO\CRS\Exception\UnknownDefinitionException., (*6)

srid_to_urn

Converts a Spatial Reference System Identifier (SRID) to an URN., (*7)

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

The above example will produce the following output., (*8)

urn:ogc:def:crs:OGC:1.3:CRS84
urn:ogc:def:crs:EPSG::4322

License

Copyright (c) 2016-2022 Jan Sorgalla. Released under the MIT License., (*9)

The Versions

09/02 2016

dev-master

9999999-dev

Coordinate Reference System (CRS) utilities.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

geo io spatial crs srs srid

27/01 2016

v1.0.0

1.0.0.0

Coordinate Reference System (CRS) utilities.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

geo io spatial crs srs srid