Title: newocp Stationery
you are not updating any table either ...
 
Raj
______________________________________________________

Rajendra Jamadagni              MIS, ESPN Inc.

Rajendra dot Jamadagni at ESPN dot com

Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art!

-----Original Message-----
From: Robert Morrison [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 08, 2002 11:29 AM
To: Multiple recipients of list ORACLE-L
Subject: updating sdo_ordinate array

Hi,
 
a query for all the spatial experts out there.
 
My ordinate array has values stored in metres, ie
 
SDO_GEOMETRY(3, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 3, 1), SDO_ORDINATE_ARRAY(100066.781, 203070.305, 100574.094, 202339.257, 100170.282, 200904.413)
 
I need them stored in mm, ie
 
SDO_GEOMETRY(3, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 3, 1), SDO_ORDINATE_ARRAY(100066781, 203070305, 100574094, 202339257, 100170282, 200904413)
 
I have tried the following, however although it executes ok it doesn't actually update anything.
 
DECLARE
i number;
BEGIN
FOR rec IN (SELECT area FROM sdo_test) LOOP
i := 1;
while i < rec.area.sdo_ordinates.count LOOP
rec.area.sdo_ordinates(i):=(rec.area.sdo_ordinates(i) * 1000);
i := i + 1;
end loop;
END LOOP;
commit;
END;
/
Can anyone point me in the right direction.
 
TIA
 
Robert Morrison
********************************************************************This e-mail 
message is confidential, intended only for the named recipient(s) above and may 
contain information that is privileged, attorney work product or exempt from 
disclosure under applicable law. If you have received this message in error, or are 
not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 
and delete this e-mail message from your computer, Thank 
you.*********************************************************************2


Reply via email to