GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Geo::JSON::CRS(3) User Contributed Perl Documentation Geo::JSON::CRS(3)

Geo::JSON::CRS - Co-ordinate Reference System object

    use Geo::JSON::CRS;
    
    # A named CRS
    my $wgs84 = Geo::JSON::CRS->new(
        {   type       => 'name',
            properties => { name => 'urn:ogc:def:crs:OGC:1.3:CRS84' }
        }
    );
    # older formats are also possible, e.g. "urn:ogc:def:crs:EPSG::4326"
    
    # A linked CRS
    my $crs = Geo::JSON::CRS->new(
        {   type       => 'link',
            properties => {
                href => 'http://example.com/crs/42',
                type => 'proj4'
            }
        }
    );
    
    # A relative link
    my $crs = Geo::JSON::CRS->new(
        {   type       => 'link',
            properties => {
                href => 'data.crs',
                type => 'ogcwkt'
            }
        }
    );

Perl class to represent a Coordinate Reference System object. The default GeoJSON CRS "is a geographic coordinate reference system, using the WGS84 datum, and with longitude and latitude units of decimal degrees."

Set a CRS value on a GeoJSON object to change this.

See Geo::JSON for more details.

Either 'name' or 'link'

Hashref.

For objects of type 'name', a 'name' key is required, the value being a string identifying the CRS.

For objects of type 'link', 'href' and 'type' keys are required. Link types are not restricted, examples include "proj4", "ogcwkt", "esriwkt",

2015-02-16 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.