Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SDO_GEOMETRY Equivalent in Postgresql

I am trying copy an oracle table into postgres. One of the columns in the oracle table is of "sdo_geometry" type. I want to know what is the equivalent for that data type in postgresql and how I can copy that data into my postgres table and if it requires any transformation etc. I am not looking for any migration tool as it is just one table and I am manually copying the data which is very small in size.

Thanks!

like image 461
PKU Avatar asked Oct 17 '25 07:10

PKU


1 Answers

PostgreSQL has a number of geometrical data types built in, see the documentation. These offer limited functionality, but if these types and the functions and operators available for them do the trick for you, it would be the simplest solution.

If you need more advanced geometry support, you'll have to install the PostGIS extension.

like image 139
Laurenz Albe Avatar answered Oct 19 '25 23:10

Laurenz Albe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!