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.
Geo::Converter::WKT2KML.
DBIx::Class.
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.
To install DBIx::Class::GeomColumns, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::GeomColumns
CPAN shell
perl -MCPAN -e shell install DBIx::Class::GeomColumns
For more information on module installation, please visit the detailed CPAN module installation guide.