Convert wkt to oracle geometry

﹥>﹥吖頭↗ 提交于 2019-12-11 15:33:52

问题


How to convert wkt to oracle sql I am using:

SELECT SDO_GEOMETRY('POINT(-121.909315288067 37.3618668002592)',4326) as station_geom_oracle FROM dual

i got MDSYS.SDO_GEOMETRY

Run on:

Java(TM) Platform   1.8.0_151
Oracle IDE  19.1.0.094.2042
Versioning Support  19.1.0.094.2042


回答1:


I came here from your other question, and you've done it right. The query result is just telling you that you've created a geometry object. There's no way of showing a geometry object in a table so it just gives the data type in square brackets. You could try converting it back into WKT to confirm that it's worked using the SDO_UTILS.TO_WKTGEOMETRY(geom) function. If that looks ok try using SDO_UTILS.SDO_DISTANCE to calculate distance between them.



来源:https://stackoverflow.com/questions/57434591/convert-wkt-to-oracle-geometry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!