Igor Zinovyev > Eve > Eve::PgSqlType::Geometry

Download:
Eve-0.06.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Eve::PgSqlType::Geometry - a generic PostGIS geometry type wrapper.

SYNOPSIS ^

    my $bigint = Eve::PgSqlType::Geometry->new();
    $bigint->serialize(value => $geometry);

DESCRIPTION ^

Eve::PgSqlType::Geometry is a generic PostGIS type that allows basic conversion from PostGIS internal format to a simple Eve::Geometry object.

METHODS ^

get_type()

Returns

The PG_ANY type.

wrap()

Wraps an expression with CAST statement.

Arguments

expression

Returns

CAST (expression AS geometry)

serialize()

Formats a Eve::Geometry object into the appropriate string representation.

Arguments

value

Returns

The string like 'geomfromtext('POINT(XXX YYY)', 4001)'.

deserialize()

Parses a geometry string representation into the appropriate Eve::Geometry object.

Arguments

value

Returns

A Eve::Geometry object.

SEE ALSO ^

Eve::Geometry
DBD::Pg
Eve::PgSqlType

LICENSE AND COPYRIGHT ^

Copyright 2012 Igor Zinovyev.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

AUTHOR ^

Igor Zinovyev
syntax highlighting: