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

MariuszK
Valued 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.