You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stefan Miklosovic (Jira)" <ji...@apache.org> on 2022/09/30 11:42:00 UTC

[jira] [Commented] (CASSANDRA-17942) GeoHashing

    [ https://issues.apache.org/jira/browse/CASSANDRA-17942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17611528#comment-17611528 ] 

Stefan Miklosovic commented on CASSANDRA-17942:
-----------------------------------------------

Hi [~MichaelJ] , what is the problem you have?

> GeoHashing
> ----------
>
>                 Key: CASSANDRA-17942
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17942
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Mr M.
>            Priority: Normal
>
> Dears,
> I am trying to do a GeoHash when importing data of longitude & latitude using DSBULK. 
> My idea was to call the javascript of GeoHash using a Cassandra Function
> [http://www.movable-type.co.uk/scripts/geohash.html]
>  
>  
> CREATE or replace FUNCTION datacrowd.bounds(lat double, lng double, lth int)
>     RETURNS NULL ON NULL INPUT
>     RETURNS text
>     LANGUAGE javascript
>     AS $$
>            'Geohash.GeoHash.encode(lat,lng,lth);'
> $$
>  
> Cassandra version i am using is 4.0.6
> Thanks in advance



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org