cancel
Showing results for 
Search instead for 
Did you mean: 

Convert data type DECIMAL to ST_GEOMETRY

0 Kudos

Hi Folks,

I have two columns in decimals for Latitude and Longitude data. How do I convert the two columns into one column having ST_GEOMETRY data type?

For ex:

Latitude (Decimal) = '10.3121'

Longitude (Decimal) = '15.2030'

Convert to:

LongLat (ST_GEOMETRY) = (10.3121 15.2030)

Appreciate if you can help? Please provide SQL Script or expression.

Regards,

Ricky

lbreddemann
Active Contributor
0 Kudos

Search before posting questions!

By simply reading SAP HANA Spatial Reference you can work it out yourself, instead of just dumping your requirement here.

Accepted Solutions (0)

Answers (1)

Answers (1)

ravicondamoor
Advisor
Advisor
0 Kudos

update <table> set latlong = NEW ST_Point(long,lat) where...

should work. latlong is of type ST_GEOMETRY