Skip to content
Advertisement

Get XY coordinates from GEOM_SEGMENT_START_PT() output

Oracle 18c:

How can I get the X & Y coordinates from GEOM_SEGMENT_START_PT()‘s resulting LRS point?

Note: The coordinates are stored in the SDO_ORDINATE_ARRAY( ), not the SDO_POINT.

Desired output:

Normally, I’d use something like a.shape.sdo_point.x. But I don’t think that applies here since the coordinates aren’t stored in the SDO_POINT.

Related: Oracle Spatial Community – Get X & Y coordinates from GEOM_SEGMENT_START_PT()

Advertisement

Answer

Use the below SQL for getting X and Y coordinates

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement