Re: ASTERIXDB-1371: Geo data type format question

2017-05-14 Thread Preston Carman
Nice discussion. In my work with Intervals, we standardized the format to be consistent between ADM and AQL. The discussion is here: http://www.mail-archive.com/dev@asterixdb.incubator.apache.org/msg03180.html Documentation links: http://asterixdb.apache.org/docs/0.9.1/datamodel.html#PrimitiveT

Re: ASTERIXDB-1371: Geo data type format question

2017-05-14 Thread Wail Alkowaileet
Just for reference, two years ago we had a discussion about serialization for clean JSON: http://www.mail-archive.com/dev@asterixdb.incubator.apache.org/msg00882.html On Sun, May 14, 2017 at 9:08 PM, Preston Carman wrote: > Thanks for pointing out we have functions that provide a way to create

Re: ASTERIXDB-1371: Geo data type format question

2017-05-14 Thread Preston Carman
Thanks for pointing out we have functions that provide a way to create the data using numeric values. As a review, we have functions to create points using numeric types and the serialized form (ADM) holds the special string format. function: create_point(47.44,80.65) adm: point("47.44,80.65") On

Re: ASTERIXDB-1371: Geo data type format question

2017-05-14 Thread Wail Alkowaileet
Sorry ! For some reason I missed a whole page. On Sun, May 14, 2017 at 8:54 PM, Yingyi Bu wrote: > Hi Wail, > > They're documented at: > https://ci.apache.org/projects/asterixdb/aql/ > builtins.html#SpatialFunctions > The prefixes in the documentation are "create_". > > Best, > Yingyi >

Re: ASTERIXDB-1371: Geo data type format question

2017-05-14 Thread Yingyi Bu
Hi Wail, They're documented at: https://ci.apache.org/projects/asterixdb/aql/builtins.html#SpatialFunctions The prefixes in the documentation are "create_". Best, Yingyi On Sun, May 14, 2017 at 10:51 AM, Wail Alkowaileet wrote: > Previously, AsterixDB used to have such functions [1] pr

Re: ASTERIXDB-1371: Geo data type format question

2017-05-14 Thread Wail Alkowaileet
Previously, AsterixDB used to have such functions [1] prefixed with "create-*()". The functions are still in the master [2] .. but not documented. For the current spatial constructors, I think they're inspired by WKT. I cannot be helpful on explaining the reason why... sorry! [1] https://github.co

ASTERIXDB-1371: Geo data type format question

2017-05-14 Thread Preston Carman
I have question about the format used by AsterixDB to store points, lines, etc.[1]. As we are adding support for other formats [2], I wanted to ask a question about our current format. In the current format, we use a keyword to specify the type followed by parenthesis around a specially formatted s