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

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

updating sdo_ordinate array

From: Robert Morrison <RMorrison_at_espatial.com>
Date: Fri, 08 Nov 2002 08:29:00 -0800
Message-ID: <F001.004FEDAB.20021108082900@fatcity.com>


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: Robert Morrison
  INET: RMorrison_at_espatial.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 - 10:29:00 CST

Original text of this message

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