| DBIx-Class-GeomColumns documentation | view source | Contained in the DBIx-Class-GeomColumns distribution. |
DBIx::Class::GeomColumns - Filter of geometry columns to access with WKT
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;
This module allows you to access geometry columns by WKT or KML format.
OHTSUKA Ko-hei <nene@kokogiko.net>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
| DBIx-Class-GeomColumns documentation | view source | Contained in the DBIx-Class-GeomColumns distribution. |