Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: updating sdo_ordinate array

RE: updating sdo_ordinate array

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Fri, 08 Nov 2002 10:08:48 -0800
Message-ID: <F001.004FF0F4.20021108100848@fatcity.com>


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-----
Sent: Friday, November 08, 2002 11:29 AM To: Multiple recipients of list ORACLE-L

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


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Received on Fri Nov 08 2002 - 12:08:48 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US