hello,
I'm trying to use PL SQL to insert a feature into an Oracle Spatial table and am getting the following error messages:
ORA-29875: Failed in the execution of the ODCINDEXINSERT routine
ORA-13364: layer dimensionality does not match geometry dimensions
ORA-06512: at "MDSYS.SDO_IDX", line 167
ORA-06512: at "MDSYS.SDO_IDEX_METHOD_10l" line 227
I think the second error (13364) is the most telling. I got my coordinates from the map as lat/long. I see that it needs to be Cartesian-coordinate data. Am I already in this or do I need to convert the values? The map is in Nad 83 State Plane Colorado North.
thanks for your help!
Sarah
INSERT INTO OVERVIEW_LT (
FEATUREID,
CLASSID,
REVISIONNUMBER,
GEOMETRY,
VERSION,
NEXTVER,
DELSTATUS)
VALUES (
220563,
183,
0,
SDO_GEOMETRY(
2003, -- two-dimensional polygon
40990, -- the Spatial Reference Id (SRID), leave null for unspecified
NULL, -- I'm not sure
SDO_ELEM_INFO_ARRAY(1,1003,3), -- one rectangle (1003 = exterior)
SDO_ORDINATE_ARRAY(-104.4, 39.9, -103.2, 40.6) -- only 2 points needed to
-- define rectangle (lower left and upper right) with
-- Cartesian-coordinate data
),
'0',
-1,
10)