The wkt codec: a WKT string ("POINT(-79.38 43.65)") to a frozen GeoJSON geometry, with
betterknown. It needs no Buffer, so it loads in a browser. Serialize writes WKT in the
betterknown form ("POINT (-79.38 43.65)"). equals compares the WKT form. The codec does
not read EWKT (SRID=4326;…), because GeoJSON has no SRID and a write would drop it. It
does not read EMPTY, because betterknown gives no geometry for it.
The
wktcodec: a WKT string ("POINT(-79.38 43.65)") to a frozen GeoJSON geometry, with betterknown. It needs noBuffer, so it loads in a browser. Serialize writes WKT in the betterknown form ("POINT (-79.38 43.65)").equalscompares the WKT form. The codec does not read EWKT (SRID=4326;…), because GeoJSON has no SRID and a write would drop it. It does not readEMPTY, because betterknown gives no geometry for it.