Oracle 18c:
The following query works (2d; LRS; has SRID; from WKT):
with data as (
select sdo_lrs.convert_to_lrs_geom(sdo_geometry ('linestring (10 20, 30 40)', 26917)) shape from dual)
select * from data
Result:
[MDSYS.SDO_GEOMETRY]
However, if I add Z-values to the line, then it throws an error:
with data as (
select sdo_lrs.convert_to_lrs_geom(sdo_geometry ('linestring (10 20 1, 30 40 2)', 26917)) shape from dual)
select * from data -- ^ ^
Error:
ORA-13029: Invalid SRID in the SDO_GEOMETRY object
ORA-06512: at "MDSYS.SDO_LRS", line 5300
ORA-06512: at "MDSYS.SDO_LRS", line 5183
ORA-06512: at "MDSYS.SDO_LRS", line 1569
ORA-06512: at "MDSYS.SDO_LRS", line 777
ORA-06512: at "MDSYS.MD", line 1723
ORA-06512: at "MDSYS.MDERR", line 8
ORA-06512: at "MDSYS.SDO_GEOM", line 2208
ORA-06512: at "MDSYS.SDO_LRS", line 773
ORA-06512: at "MDSYS.SDO_LRS", line 1524
ORA-06512: at "MDSYS.SDO_LRS", line 5174
ORA-06512: at "MDSYS.SDO_LRS", line 5297
13029. 00000 - "Invalid SRID in the SDO_GEOMETRY object"
*Cause: There is an invalid SDO_SRID in the SDO_GEOMETRY object.
The specified SRID may be outside the valid SRID range.
*Action: Verify that the geometries have valid SRIDs.
Why does a 3d LRS line with an SRID cause an error?