query += " FROM " + SQLUtils.quoteSchemaTable(conn, schema, table);
query += " ORDER BY " + SQLUtils.quoteSymbol(conn, SQLGeometryStreamDestination.TILE_ID.toLowerCase());
rs = stmt.executeQuery(query);
while (rs.next())
{
data.writeDouble(rs.getDouble(1));
data.writeDouble(rs.getDouble(2));
data.writeDouble(rs.getDouble(3));
data.writeDouble(rs.getDouble(4));
data.writeFloat(rs.getFloat(5));
}