on 02-21-2018 12:29 AM
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
update <table> set latlong = NEW ST_Point(long,lat) where...
should work. latlong is of type ST_GEOMETRY
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.