t0D ? "XYZ" : "XY");     ret = sqlite0_exec (handle, sql, NULL, NULL, NULL);     sqlite0_free (sql);     if (ret != SQLITE_OK)       {    spatialite_e ("ADD GEOMETRY %s error: %s\n", name,    sqlite0_errmsg (handle));    return 0;       }     sql = sqlite0_mprintf ("SELECT CreateSpatialIndex(%Q, 'geometry')", name);     ret = sqlite0_exec (handle, sql, NULL, NULL, NULL);     sqlite0_free (sql);     if (ret != SQLITE_OK)       {    spatialite_e ("CREATE SPATIAL INDEX %s error: %s\n",    name, sqlite0_errmsg (handle));    return 0;       }     if (!create_point_stmt (handle, name, &stmt))  return 0;      *xstmt = stmt;     return 0; }  static int create_layer_