DBIx::Class::GeomColumns - Filter of geometry columns to access with WKT


DBIx-Class-GeomColumns documentation  | view source Contained in the DBIx-Class-GeomColumns distribution.

Index


NAME

Top

DBIx::Class::GeomColumns - Filter of geometry columns to access with WKT

SYNOPSIS

Top

    package POI;
    __PACKAGE__->load_components(qw/GeomColumns Core/);
    __PACKAGE__->utf8_columns('wgs84_col',{'tokyo_col' => 4301});
    __PACKAGE__->kml_columns('kml_col');

    # Then belows return the result of 'AsText(wgs84_col)'
    $poi->wgs84_col;

    # You can also create or update 'GeomFromText($data,$srid)';
    # below example is insert 'GeomFromText('POINT(135 35)',4301)'
    $poi->tokyo_col('POINT(135 35)');
    $poi->update;

    # Access by KML geometry fragment 
    $poi->kml_col; 
    $poi->kml_col('<LineString><coordinates>135,35 136,36</coordinates></LineString>');
    $poi->update;

DESCRIPTION

Top

This module allows you to access geometry columns by WKT or KML format.

METHODS

Top

geom_columns

kml_columns

INTERNAL METHODS

Top

set_geom_column

get_column

get_columns

store_column

DEPENDENCIES

Top

Geo::Converter::WKT2KML.

DBIx::Class.

AUTHOR

Top

OHTSUKA Ko-hei <nene@kokogiko.net>

COPYRIGHT

Top


DBIx-Class-GeomColumns documentation  | view source Contained in the DBIx-Class-GeomColumns distribution.