You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Ram,
very interesting project.
so, i have a DF with neighborhoods represented as ZCurves in index column:
var index1 = neighborhoods.withColumn("index", $"polygon" index 30)
how to obtain the list of geohashes that represent each zone instead.
same issue as mentioned here: #193
he said he could solve it using the toBase32 function but he did not mention how.
can you tell me how to use this functionality (for example with my index1 dataframe above)
thanks a lot and wishing all the best for the project.
The text was updated successfully, but these errors were encountered:
hey!
A ZOrderCurve has a function called .toBase32() that returns the geo hash string (which is nothing but a base 32 encoded string).
So all you'd need to do is write a UDF that does something like
geohashUDF = udf{(curve: Seq[ZOrderCurve]) => curve.map(_.toBase32())} and use it as:
df.withColumn("geohashes", geohashUDF($"index.curve"))
I haven't tested the above syntax but morally it should do the right thing...
Hi Ram,
very interesting project.
so, i have a DF with neighborhoods represented as ZCurves in index column:
var index1 = neighborhoods.withColumn("index", $"polygon" index 30)
how to obtain the list of geohashes that represent each zone instead.
same issue as mentioned here:
#193
he said he could solve it using the toBase32 function but he did not mention how.
can you tell me how to use this functionality (for example with my index1 dataframe above)
thanks a lot and wishing all the best for the project.
The text was updated successfully, but these errors were encountered: