Fixed bug where spatialcol was substituted for tablename, and fixed a bug where there was a comma instead of a space in the POINT declaration