At the moment, I'm cleaning up the wkt parser and my, simpler, implementation does not do this (yet?). I've been using the postgis the implementations of a wkt {en,de}coder and it seems that it is inconsistent with itself. I believe the fidelity of the structure of the geometries should be kept, but it seems the convention is to remove pointless geometries.
Currently, the encoder will clean up "pointless" (hehe) geometries and count them as empty. For example, from the wkt tests:
At the moment, I'm cleaning up the wkt parser and my, simpler, implementation does not do this (yet?). I've been using the postgis the implementations of a wkt {en,de}coder and it seems that it is inconsistent with itself. I believe the fidelity of the structure of the geometries should be kept, but it seems the convention is to remove pointless geometries.
postgis output: