Oracle 21c:
I have a JSON polyline:
{
"spatialdimension" : 2,
"line" : {"datapoints" : [[1,2,0],[3,4,2.82]]}
}
I want to convert that JSON to SDO_GEOMETRY:
select
SDO_UTIL.FROM_GEOJSON('{ "spatialdimension" : 2, "line" : {"datapoints" : [[1,2,0],[3,4,2.82]]}}')
from
dual
https://dbfiddle.uk/?rdbms=oracle_21&fiddle=287ebaddbad6021d160140b3d5e2ece6
I get an error: ORA-13050: unable to construct spatial object
What am I doing wrong? Thanks.