Help for this page

Select Code to Download


  1. or download this
    my $test = 'POINT( 20 10 )';
    $dbh->do("INSERT INTO Test SET start = ST_GeomFromText(?, 4326), end =
    + ST_GeomFromText(?, 4326)", undef, $test, $test);
    ...
        print "SUCCESS!";
    }
    print "\n";
    
  2. or download this
    SELECT ST_AsText(start) FROM Test
    
    ------------
    POINT(20 10)