cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Geometry Point and WKB based on latitude and longitude

SanSam
New Contributor

Hi

What is the best method to generate Geometry Point and WKB based on latitude and longitude stored in a Databricks table?

 

Thanks,

Sam

1 REPLY 1

MariuszK
Contributor III

Hi,
Spark has function to work with geospatial data, for instance ST_GeomFromWKB. You can use it to convert it human readable form. You can also create UDFs if something is missing. In my project I stored latitude and longitude as separate columns.