Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: DBI placeholders for spatial data

by Bod (Parson)
on Jun 26, 2021 at 22:00 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-03-29 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found