Get midpoint of SDO.GEOMETRY polyline
问题 I have a table in Oracle 18c that has an SDO_GEOMETRY column with polylines. I want to query the X and Y coordinates of the polyline midpoints using SQL. Is there a way to do this with Oracle Spatial? 回答1: Oracle Spatial has a linear referencing package called SDO_LRS. It can be used to find the midpoint coordinates of a polyline. --In this case, 'sdo' is the name of the sdo_geometry column. sdo_lrs.convert_to_std_geom(sdo_lrs.locate_pt(sdo_lrs.convert_to_lrs_geom(sdo,3) ,sdo_geom.sdo_length