Re: Getting spatial data?
- From: scoles@xxxxxxxxxxx (John Scoles)
- Date: Thu, 22 Jun 2006 14:39:33 -0400
Tricky one.
The sdo_geometry is a very Oracle specific binary field as DBI and
DBD::Oracle basically default of strings so the program dies.
You may want to define the field as an "ora_type => ORA_CLOB" or "ORA_BLOB"
and get it that way.
If may work.
I might have write a patch for it and treat it as a BLOB. (Tomorrow is my
DBD::Oracle day so I may get to look at it)
cheers John Scoles
----- Original Message -----
From: "Todd Chisholm" <todd.chisholm@xxxxxxxxx>
To: <dbi-users@xxxxxxxx>
Sent: Thursday, June 22, 2006 1:54 PM
Subject: Getting spatial data?
Hi all,where
I'm trying to get some sdo data, but running into trouble. The program
snippet:
my $connect = DBI->connect( "dbi:Oracle:****",
'****',
'****',
) || die "No connect";
#my $query = "select update_date from processed_product where id=15601";
my $query = "select geometry from processed_product where id=15601";
my $sth = $connect->prepare($query);
$sth->execute();
The result:
DBD::Oracle::db prepare failed: ERROR OCIDefineObject call needed but not
implemented yet [for Statement "select geometry from processed_product
id=15601"] at /home/corp14/tchishol/oracleTst.pl line 11.type
Can't call method "execute" on an undefined value at ...oracleTst.pl line
12.
The 'geometry' type is sdo_geometry. Anyone had luck working with this
of data?
Thanks,
Todd
.
- Follow-Ups:
- Re: Getting spatial data?
- From: Todd Chisholm
- Re: Getting spatial data?
- References:
- Getting spatial data?
- From: Todd Chisholm
- Getting spatial data?
- Prev by Date: RE: Getting spatial data?
- Next by Date: DBI compile on AIX 5.2
- Previous by thread: Getting spatial data?
- Next by thread: Re: Getting spatial data?
- Index(es):