e 0.16; #Polygon
=head1 NAME
Geo-GoogleEarth-Pluggable-Plugin-AsGeoJSON-example.pl - Geo::GoogleEarth::Pluggable::Plugin:AsGeoJSON Examaple
=head2 Configuration
Update the PostgreSQL connetion inf
isdata = $database->sqlarrayhash(&gis_data_sql);
foreach my $row (@gisdata) {
$document->AsGeoJSON(%$row);
}
print $document->render;
sub gis_data_sql {
return qq{
SELECT 'LineString'
ST_AsGeoJSON(ST_GeomFromText('LINESTRING(77.29 29.07,77.42 29.26,77.27 29.31,77.29 29.07)')) AS "json" /* alias column for function here */
UNION ALL
SELECT 'LineString', ST_AsGeoJSON(ST_GeomFro
Geo::GoogleEarth::Pluggable::Plugin::AsGeoJSON;
use strict;
use warnings;
use Geo::GoogleEarth::Pluggable 0.16; #for Polygon and MultiPolygon support
use JSON::XS qw{};
our $VERSION = '0.05';
our $PA
Plugin::AsGeoJSON - PostgreSQL ST_AsGeoJSON plugin for Geo::GoogleEarth::Pluggable
=head1 SYNOPSIS
use Geo::GoogleEarth::Pluggable;
use Geo::GoogleEarth::Pluggable::Plugin::AsGeoJSON; #can be ru
$object = $document->AsGeoJSON(name => $text,
description => $html,
json => $json_string,