Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Anyone a PL SQL Expert that can help me figure this out? Problem in Oracle Spatial
I have a script that needs to read the longitude and latitude values
out of my database, the result of this query needs to be dynamic as it
is used to build mapped locations in Oracle Spatial. I just can not
seem to get the values of X1, Y1, X2, Y2, to be passed tothe array. Can
anyone help?
Here is what it looks like:
The data I need is returned looking like the following:
X1 Y1 X2 Y2
-76.217,39.452,-76.742,39.108,
-76.217,39.452,-76.742,39.108,
-96.546,32.657,-98.407,34.659,
-93.200,45.900,-97.384,47.962......
The PLSQL I am running to try and do this is as follows:
DECLARE
v_dml LONG;
v_array MDSYS.SDO_GEOMETRY;
x1 NUMBER(8,6); y1 NUMBER(9,6); x2 NUMBER(8,6); y2 NUMBER(9,6);
a.latitude, b.longitude, b.latitude
AND d_loc_id = location_id AND d_ops_status <= 2)a, (SELECT d_dest_id,
ERROR at line 44:
ORA-06550: line 44, column 13: PLS-00382: expression is of wrong type ORA-06550: line 44, column 2:
ORA-06550: line 46, column 20: PLS-00306: wrong number or types of arguments in call to '||' ORA-06550: line 46, column 9:
ORA-06550: line 50, column 12: PLS-00306: wrong number or types of arguments in call to '||' ORA-06550: line 50, column 3:
![]() |
![]() |