2017-02-16 74 views
0

我有一個表,一列GEOM和數據是像下面如何分割的geom到Lat Long網

Geom 

MDSYS.SDO_GEOMETRY(2001,32638,MDSYS.SDO_POINT_TYPE(732321.244349674,2669885.06999747,NULL),NULL,NULL) 
MDSYS.SDO_GEOMETRY(2001,32638,MDSYS.SDO_POINT_TYPE(732561.034224563,2671216.49530935,NULL),NULL,NULL) 
MDSYS.SDO_GEOMETRY(2001,32638,MDSYS.SDO_POINT_TYPE(732420.714474628,2671059.35918443,NULL),NULL,NULL) 

我要查看上面的數據,像下面

LAT_LONG 
732321.244349674,2669885.06999747 
732561.034224563,2671216.49530935 
732420.714474628,2671059.35918443 
+0

你使用MySQL或Oracle? (不要標記不涉及的產品。) – jarlh

回答

0

你可以得到geometry.sdo_point.x和y的值。

Select table_alias.geometry_column.sdo_point.x, 
     table_alias.geometry_column.sdo_point.y 
from your_table as table_alias; 

或者形式,你問:

Select table_alias.geometry_column.sdo_point.x||','|| 
      table_alias.geometry_column.sdo_point.y as lat_long 
    from your_table as table_alias;