Well-Known Text apparently supports 'EMPTY' values, i.e. POLYGON EMPTY. This BNF notation shows that all types support 'EMPTY' and the OGC library seems to support it.
If I try the following for example in cqlsh:
I get back 'POLYGON()' instead of 'POLYGON EMPTY', which is not valid.
In addition, constructors don't handle 0 parameters, so you can't construct empty shapes either.
It seems that DSE supports empty Polygons and LineStrings, but not Points or Circle, opened DSP-8369 for that.
Couple of notes.
Point still doesn't work with the EMPTY keyword. This is a serverside problem. I'm not sure if that's expected to change or not.
Ran into a little snag here with Polygon types,
When I ran them agains the POLYGON type, I saw this des error pop up.
This appears to be from ring deserialization portion of the code.
The fix was pretty straight forward. I simply added a check for the deserialized ring size. It's here.
Let me know what you think, about the fix, and about point types not being supported.
Thanks for the code review, Moving to done.