Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: DBI placeholders for spatial data

by Bod (Curate)
on Jun 26, 2021 at 22:00 UTC ( #11134352=note: print w/replies, xml ) Need Help??

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)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11134352]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2022-05-17 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (65 votes). Check out past polls.

    Notices?