cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Discussions
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Mosaic library not supported in db13 and unity catalog

DB_learn
New Contributor II

I want to use gepatial functions which uses mosaic library. How can I use it without using mosaic library and import functions available ?

Example st_aswkt

3 REPLIES 3

Kaniz
Community Manager
Community Manager

Hi @DB_learnIf you want to use geospatial functions without the mosaic library, you can use the built-in H3 expressions for geospatial processing in Databricks. These are available in SQL, Scala, and Python.

DB_learn
New Contributor II

Thanks for the response! 

I tried using it. In sql it is working fine

but when I tried in python it is failing

Syntax 

from pyspark.databricks.sql.functions import *
from math import *

h3_pointash3('POINT("lat","lan")',13))

 

this is giving me syntax error

sean_owen
Honored Contributor II
Honored Contributor II

You have a syntax error there indeed - extra parenthesis.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.