Michael Jemmeson > Geo-JSON-0.006 > Geo::JSON::Polygon

Download:
Geo-JSON-0.006.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.006   Source  

NAME ^

Geo::JSON::Polygon - object representing a geojson Polygon

VERSION ^

version 0.006

SYNOPSIS ^

    use Geo::JSON::Polygon;
    my $pg = Geo::JSON::Polygon->new({
        coordinates => [ [ 51.50101, -0.14159 ], ... ],
                       [ [ 54.0, 0 ], ... ],
    });
    my $json = $pg->to_json;

DESCRIPTION ^

A GeoJSON object with a coordinates attribute of an arrayref of arrayrefs of positions. This represents a multiple LinearRing coordinate arrays, the first defining the exterior ring or the polygon, and the others any interior ring(s) or holes.

See Geo::JSON for more details.

AUTHOR ^

Michael Jemmeson <mjemmeson@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Michael Jemmeson <mjemmeson@cpan.org>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: